47 int number(
const KoTextParag *paragraph );
51 TQString levelText(
const KoTextParag *paragraph );
56 TQString
text(
const KoTextParag *paragraph );
62 int width(
const KoTextParag *paragraph );
71 void load( TQDomElement & element );
73 void save( TQDomElement & element );
83 void loadOasis(
KoOasisContext& context,
int restartNumbering,
bool orderedList,
bool heading,
int level,
bool loadingStyle =
false );
85 void loadOasisListStyle(
const TQDomElement& listStyle,
86 const TQDomElement& listStyleProperties,
87 const TQDomElement& listStyleTextProperties,
89 bool orderedList,
bool heading,
int level,
bool loadingStyle );
91 void saveOasis(
KoGenStyle& listStyle,
bool savingStyle =
false )
const;
94 void saveOasisListLevel(
KoXmlWriter& listLevelWriter,
bool includeLevelAndProperties,
bool savingStyle =
false )
const;
97 bool operator!=(
const KoParagCounter & c2 )
const {
return !(*
this == c2); }
111 STYLE_NUM = 1, STYLE_ALPHAB_L = 2, STYLE_ALPHAB_U = 3,
112 STYLE_ROM_NUM_L = 4, STYLE_ROM_NUM_U = 5, STYLE_CUSTOMBULLET = 6,
113 STYLE_CUSTOM = 7, STYLE_CIRCLEBULLET = 8, STYLE_SQUAREBULLET = 9,
114 STYLE_DISCBULLET = 10, STYLE_BOXBULLET = 11
119 Numbering numbering()
const;
120 void setNumbering( Numbering n );
123 void setStyle( Style s );
129 bool restartCounter()
const;
130 void setRestartCounter(
bool restart );
134 bool isBullet()
const;
138 static bool isBullet( Style style );
143 unsigned int depth()
const;
144 void setDepth(
unsigned int d );
148 int displayLevels()
const;
149 void setDisplayLevels(
int l );
153 int startNumber()
const;
154 void setStartNumber(
int s );
158 TQString prefix()
const;
159 void setPrefix( TQString p );
160 TQString suffix()
const;
161 void setSuffix( TQString s );
165 TQChar customBulletCharacter()
const;
166 void setCustomBulletCharacter( TQChar c );
167 TQString customBulletFont()
const;
168 void setCustomBulletFont( TQString f );
172 TQString custom()
const;
173 void setCustom( TQString c );
177 int alignment()
const;
178 void setAlignment(
int a );
186 static TQString makeRomanNumber(
int n );
187 static TQString makeAlphaUpperNumber(
int n );
188 static TQString makeAlphaLowerNumber(
int n );
190 static int fromRomanNumber(
const TQString & );
191 static int fromAlphaUpperNumber(
const TQString & );
192 static int fromAlphaLowerNumber(
const TQString & );
195 void printRTDebug( KoTextParag* parag );
203 KoTextParag *parent(
const KoTextParag *paragraph );
205 Numbering m_numbering:3;
206 bool m_restartCounter:1;
209 char m_displayLevels;
212 short int m_startNumber;
213 TQChar m_customBulletChar;
215 TQString m_customBulletFont;
Used during loading of Oasis format (and discarded at the end of the loading).