1
/* $Id: treebuild_general.h,v 1.5 1999/10/20 10:28:31 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_GENERAL
9
#define _TREEBUILD_GENERAL
29
int value() const { return _value; }
39
int id() const { return _value; }
59
QString value() const { return _value; }
70
QString value() const { return _value; }
80
int id() const { return _value; }
116
MTypeName( const char* );
125
MText( const char* );
134
MCurrPage( const char* );
143
enum MarkerElementType { T_Unique, T_MType, T_MTypeName, T_MText,
146
MarkerElement( Unique* element );
147
MarkerElement( MType* element );
148
MarkerElement( MTypeName* element );
149
MarkerElement( MText* element );
150
MarkerElement( MCurrPage* elemente );
153
MarkerElementType _type;
158
MTypeName* _mtypename;
160
MCurrPage* _mcurrpage;
164
typedef QList<MarkerElement> MarkerElementList;
169
Marker( MarkerElementList* elements );
172
MarkerElementList* _elements;
176
class MarkerTypeCatalog
178
// PENDING(kalle) Stuff missing here
184
//PENDING(kalle) Stuff missing here
191
ShapeRect( double x, const char* unitx,
192
double y, const char* unity,
193
double w, const char* unitw,
194
double h, const char* unith );
207
BRect( double x, const char* unitx,
208
double y, const char* unity,
209
double w, const char* unitw,
210
double h, const char* unith );
212
double x() const { return _x; }
213
double y() const { return _y; }
214
double width() const { return _w; }
215
double height() const { return _h; }
225
class RectangleElement
228
enum RectangleElementType { T_Unique, T_Separation, T_ObColor,
229
T_ShapeRect, T_BRect, T_Pen,
230
T_PenWidth, T_Fill, T_DashedPattern,
231
T_RunAroundGap, T_RunAroundType, T_GroupID };
233
RectangleElement( Unique* element );
234
RectangleElement( Separation* element );
235
RectangleElement( ObColor* element );
236
RectangleElement( ShapeRect* element );
237
RectangleElement( BRect* element );
238
RectangleElement( Fill* element );
239
RectangleElement( Pen* element );
240
RectangleElement( PenWidth* element );
241
RectangleElement( DashedPattern* element );
242
RectangleElement( RunAroundType* element );
243
RectangleElement( RunAroundGap* element );
244
RectangleElement( GroupID* element );
246
RectangleElementType type() const { return _type; }
249
RectangleElementType _type;
253
Separation* _separation;
255
ShapeRect* _shaperect;
260
DashedPattern* _dashedpattern;
261
RunAroundGap* _runaroundgap;
262
RunAroundType* _runaroundtype;
269
typedef QList<RectangleElement> RectangleElementList;
274
Rectangle( RectangleElementList* elements );
276
RectangleElementList* elements() const { return _elements; }
279
RectangleElementList* _elements;
282
typedef QList<Rectangle> RectangleList;