23#ifndef __KWORD_LAYOUT_H__
24#define __KWORD_LAYOUT_H__
26#include <tqtextstream.h>
29#include "textformat.h"
55typedef enum _EType EType;
56typedef enum _EEnv EEnv;
76 static TQString _last_name;
77 static EType _last_counter;
78 bool _useHardBreakAfter;
80 bool _keepLinesTogether;
96 kdDebug(30522) << "Destruction of a layout." << endl;
102 bool isChapter () const { return (_numberingType == 1); }
103 bool isList () const { return (_numberingType == 0); }
104 bool isEnum () const { return (_counterType != TL_NONE); }
105 bool isLastSame () const { return (_name == _last_name); }
106 bool isNextSame () const { return (_following == _name); }
107 TQString getLastName () const { return _last_name; }
108 EType getLastCounter () const { return _last_counter; }
109 EType getCounterType () const { return _counterType; }
110 int getCounterDepth () const { return _counterDepth; }
111 int getCounterBullet () const { return _counterBullet; }
112 int getCounterStart () const { return _counterStart; }
113 int getNumberingType () const { return _numberingType; }
114 EEnv getEnv () const { return _env; }
115 bool isHardBreakAfter () const { return _useHardBreakAfter; }
116 bool isHardBreak () const { return _useHardBreak; }
117 bool isKeppLinesTogether() const { return _keepLinesTogether; }
122 void setName (TQString name) { _name = name; }
123 void setLastName () { _last_name = _name; }
124 void setLastCounter () { _last_counter= _counterType; }
125 void setFollowing (TQString name) { _following = name; }
126 void setCounterType ( int ct) { _counterType = (EType) ct; }
127 void setCounterDepth ( int cd) { _counterDepth = cd; }
128 void setCounterBullet( int cb) { _counterBullet = cb; }
129 void setCounterStart ( int cs) { _counterStart = cs; }
130 void setNumberingType( int nt) { _numberingType = nt; }
131 void setEnv ( int env) { _env = (EEnv) env; }
132 void useHardBreakAfter() { _useHardBreakAfter = true; }
133 void useHardBreak () { _useHardBreak = true; }
134 void keepLinesTogether() { _keepLinesTogether = true; }
143 void analyseCounter ( const TQDomNode);
144 void analyseFollowing( const TQDomNode);
145 void analyseName ( const TQDomNode);
146 void analyseEnv ( const TQDomNode);
147 void analyseBreakLine( const TQDomNode);
This class tells about a paragraph and its contents.
void analyseLayout(const TQDomNode) Helpfull functions.
void setName(TQString name) Modifiers.
bool isChapter() const Accessors.
This class holds information formating the textzone.
|