summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoRichText.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoRichText.h')
-rw-r--r--lib/kotext/KoRichText.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/kotext/KoRichText.h b/lib/kotext/KoRichText.h
index c6ebceeb3..ac9297ed5 100644
--- a/lib/kotext/KoRichText.h
+++ b/lib/kotext/KoRichText.h
@@ -116,7 +116,7 @@ public:
bool isCustom() const { return type == Custom; }
KoTextFormat *format() const;
KoTextCustomItem *customItem() const;
- void setFormat( KoTextFormat *f,bool setFormatAgain=TRUE );
+ void setFormat( KoTextFormat *f,bool setFormatAgain=true );
void setCustomItem( KoTextCustomItem *i );
void loseCustomItem();
struct CustomData
@@ -171,13 +171,13 @@ public:
void remove( int index, int len );
void clear();
- void setFormat( int index, KoTextFormat *f, bool useCollection, bool setFormatAgain = FALSE );
+ void setFormat( int index, KoTextFormat *f, bool useCollection, bool setFormatAgain = false );
void setBidi( bool b ) { bidi = b; }
bool isBidi() const;
bool isRightToLeft() const;
TQChar::Direction direction() const;
- void setDirection( TQChar::Direction d ) { dir = d; bidiDirty = TRUE; }
+ void setDirection( TQChar::Direction d ) { dir = d; bidiDirty = true; }
/** Set dirty flag for background spell-checking */
void setNeedsSpellCheck( bool b ) { bNeedsSpellCheck = b; }
@@ -245,7 +245,7 @@ public:
KoTextParag *parag() const;
int index() const;
- void setParag( KoTextParag *s, bool restore = TRUE );
+ void setParag( KoTextParag *s, bool restore = true );
void gotoLeft();
void gotoRight();
@@ -265,7 +265,7 @@ public:
void gotoWordRight();
void insert( const TQString &s, bool checkNewLine, TQMemArray<KoTextStringChar> *formatting = 0 );
- void splitAndInsertEmptyParag( bool ind = TRUE, bool updateIds = TRUE );
+ void splitAndInsertEmptyParag( bool ind = true, bool updateIds = true );
bool remove();
bool removePreviousChar();
void killLine();
@@ -274,7 +274,7 @@ public:
bool atParagStart() const;
bool atParagEnd() const;
- void setIndex( int i, bool restore = TRUE );
+ void setIndex( int i, bool restore = true );
//void checkIndex();
@@ -323,7 +323,7 @@ template class TQPtrList<KoTextDocCommand>;
class KoTextDocCommandHistory
{
public:
- KoTextDocCommandHistory( int s ) : current( -1 ), steps( s ) { history.setAutoDelete( TRUE ); }
+ KoTextDocCommandHistory( int s ) : current( -1 ), steps( s ) { history.setAutoDelete( true ); }
virtual ~KoTextDocCommandHistory() { clear(); }
void clear() { history.clear(); current = -1; }
@@ -396,7 +396,7 @@ public:
void draw(TQPainter* p, int x, int y, int cx, int cy, int cw, int ch, const TQColorGroup& cg, bool selected );
TQString richText() const;
- bool ownLine() const { return TRUE; }
+ bool ownLine() const { return true; }
private:
int tmpheight;
@@ -547,15 +547,15 @@ public:
void draw( TQPainter* p, int x, int y, int cx, int cy, int cw, int ch,
const TQColorGroup& cg, bool selected );
- bool noErase() const { return TRUE; }
- bool ownLine() const { return TRUE; }
+ bool noErase() const { return true; }
+ bool ownLine() const { return true; }
Placement placement() const { return place; }
- bool isNested() const { return TRUE; }
+ bool isNested() const { return true; }
void resize( int nwidth );
virtual void invalidate();
/// ## TQString anchorAt( TQPainter* p, int x, int y );
- virtual bool enter( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, bool atEnd = FALSE );
+ virtual bool enter( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, bool atEnd = false );
virtual bool enterAt( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy, const TQPoint &pos );
virtual bool next( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy );
virtual bool prev( KoTextCursor *c, KoTextDocument *&doc, KoTextParag *&parag, int &idx, int &ox, int &oy );