summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextDocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/KoTextDocument.h')
-rw-r--r--lib/kotext/KoTextDocument.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kotext/KoTextDocument.h b/lib/kotext/KoTextDocument.h
index b1a1a17ee..55597c4fd 100644
--- a/lib/kotext/KoTextDocument.h
+++ b/lib/kotext/KoTextDocument.h
@@ -121,7 +121,7 @@ public:
int numSelections() const { return nSelections; }
void addSelection( int id );
- TQString selectedText( int id, bool withCustom = TRUE ) const;
+ TQString selectedText( int id, bool withCustom = true ) const;
//void copySelectedText( int id );
void removeSelectedText( int id, KoTextCursor *cursor );
@@ -152,10 +152,10 @@ public:
void draw( TQPainter *p, const TQRect& rect, const TQColorGroup &cg, const TQBrush *paper = 0 );
void drawParag( TQPainter *p, KoTextParag *parag, int cx, int cy, int cw, int ch,
TQPixmap *&doubleBuffer, const TQColorGroup &cg,
- bool drawCursor, KoTextCursor *cursor, bool resetChanged = TRUE );
+ bool drawCursor, KoTextCursor *cursor, bool resetChanged = true );
KoTextParag *draw( TQPainter *p, int cx, int cy, int cw, int ch, const TQColorGroup &cg,
- bool onlyChanged = FALSE, bool drawCursor = FALSE, KoTextCursor *cursor = 0,
- bool resetChanged = TRUE );
+ bool onlyChanged = false, bool drawCursor = false, KoTextCursor *cursor = 0,
+ bool resetChanged = true );
#endif
//void setDefaultFont( const TQFont &f );
@@ -200,7 +200,7 @@ public:
int undoDepth() const { return commandHistory->undoDepth(); }
int length() const;
- void clear( bool createEmptyParag = FALSE );
+ void clear( bool createEmptyParag = false );
KoTextParag* loadList( const TQDomElement& list, KoOasisContext& context, KoTextParag* lastParagraph, KoStyleCollection * styleColl, KoTextParag* nextParagraph );
@@ -211,7 +211,7 @@ public:
void saveOasisContent( KoXmlWriter& writer, KoSavingContext& context ) const;
- virtual KoTextParag *createParag( KoTextDocument *d, KoTextParag *pr = 0, KoTextParag *nx = 0, bool updateIds = TRUE );
+ virtual KoTextParag *createParag( KoTextDocument *d, KoTextParag *pr = 0, KoTextParag *nx = 0, bool updateIds = true );
// Whether margins are added or max'ed.
int addMargins() const { return true; }
@@ -292,9 +292,9 @@ public:
/** The main drawing method. Equivalent to KoTextDocument::draw, but reimplemented
* for wysiwyg */
KoTextParag *drawWYSIWYG( TQPainter *p, int cx, int cy, int cw, int ch, const TQColorGroup &cg,
- KoTextZoomHandler* zoomHandler, bool onlyChanged = FALSE,
- bool drawCursor = FALSE, KoTextCursor *cursor = 0,
- bool resetChanged = TRUE, uint drawingFlags = KoTextDocument::DrawSelections );
+ KoTextZoomHandler* zoomHandler, bool onlyChanged = false,
+ bool drawCursor = false, KoTextCursor *cursor = 0,
+ bool resetChanged = true, uint drawingFlags = KoTextDocument::DrawSelections );
/** Draw a single paragraph (used by drawWYSIWYG and by KWTextFrameSet::drawCursor).
* Equivalent to KoTextDocument::draw, but modified for wysiwyg */
@@ -302,7 +302,7 @@ public:
TQPixmap *&doubleBuffer, const TQColorGroup &cg,
KoTextZoomHandler* zoomHandler,
bool drawCursor, KoTextCursor *cursor,
- bool resetChanged = TRUE,
+ bool resetChanged = true,
uint drawingFlags = KoTextDocument::DrawSelections );
/** Set by drawParagWYSIWYG, used by KoTextParag::drawParagString */