1
/* $Id: treebuild_textrect.h,v 1.5 1999/10/20 10:29:29 kulow Exp $
3
* This file is part of MIFParse, a MIF parser for Unix.
5
* Copyright (C) 1998 by Matthias Kalle Dalheimer <kalle@dalheimer.de>
8
#ifndef _TREEBUILD_TEXTRECT_H
9
#define _TREEBUILD_TEXTRECT_H
31
TRNumColumns( int value );
41
TRColumnGap( double value, const char* unit );
52
TRColumnBalance( const char* value );
63
TRSideheadWidth( double value, const char* unit );
73
TRSideheadGap( double value, const char* unit );
80
class TRSideheadPlacement
83
TRSideheadPlacement( const char* value );
104
class TextRectElement
107
enum TextRectElementType { T_ShapeRect, T_BRect, T_TRNext, T_TRNumColumns,
108
T_TRColumnGap, T_TRColumnBalance,
109
T_TRSideheadWidth, T_TRSideheadGap,
110
T_TRSideheadPlacement, T_FrameID, T_Unique,
111
T_Pen, T_PenWidth, T_Separation, T_ObColor,
112
T_Fill, T_DashedPattern, T_Angle,
113
T_RunAroundGap, T_RunAroundType };
115
TextRectElement( ShapeRect* element );
116
TextRectElement( BRect* element );
117
TextRectElement( TRNext* element );
118
TextRectElement( TRNumColumns* element );
119
TextRectElement( TRColumnGap* element );
120
TextRectElement( TRColumnBalance* element );
121
TextRectElement( TRSideheadWidth* element );
122
TextRectElement( TRSideheadGap* element );
123
TextRectElement( TRSideheadPlacement* element );
124
TextRectElement( FrameID* element );
125
TextRectElement( Unique* element );
126
TextRectElement( Fill* element );
127
TextRectElement( Pen* element );
128
TextRectElement( PenWidth* element );
129
TextRectElement( Separation* element );
130
TextRectElement( ObColor* element );
131
TextRectElement( DashedPattern* element );
132
TextRectElement( Angle* element );
133
TextRectElement( RunAroundType* element );
134
TextRectElement( RunAroundGap* element );
136
TextRectElementType type() const { return _type; }
138
FrameID* frameID() const { return _type == T_FrameID ?
140
BRect* bRect() const { return _type == T_BRect ? _brect : 0; }
143
TextRectElementType _type;
145
ShapeRect* _shaperect;
148
TRNumColumns* _trnumcolumns;
149
TRColumnGap* _trcolumngap;
150
TRColumnBalance* _trcolumnbalance;
151
TRSideheadWidth* _trsideheadwidth;
152
TRSideheadGap* _trsideheadgap;
153
TRSideheadPlacement* _trsideheadplacement;
159
Separation* _separation;
161
DashedPattern* _dashedpattern;
163
RunAroundGap* _runaroundgap;
164
RunAroundType* _runaroundtype;
169
typedef QList<TextRectElement> TextRectElementList;
174
TextRect( TextRectElementList* elements );
176
TextRectElementList* elements() const { return _elements; }
181
TextRectElementList* _elements;
184
typedef QList<TextRect> TextRectList;