KoTextView.h
96 virtual KCommand* setParagLayoutFormatCommand( KoParagLayout *newLayout, int flags, int marginIndex = -1 );
99 virtual KCommand* setFormatCommand( const KoTextFormat * newFormat, int flags, bool zoomFont = false );
106 KCommand * setBordersCommand( const KoBorder& leftBorder, const KoBorder& rightBorder, const KoBorder& bottomBorder, const KoBorder& topBorder );
123 bool handleMousePressEvent( TQMouseEvent* e, const TQPoint& iPoint, bool canStartDrag = true, bool insertDirectCursor = false );
130 KoTextCursor selectWordUnderCursor( const KoTextCursor& cursor, int selectionId = KoTextDocument::Standard );
131 KoTextCursor selectParagUnderCursor( const KoTextCursor& cursor, int selectionId = KoTextDocument::Standard, bool copyAndNotify = true );
137 TQPtrList<TDEAction> dataToolActionList( TDEInstance * instance, const TQString& word, bool & _singleWord );
173 bool placeCursor( const TQPoint &pos /* in internal coordinates */, bool insertDirectCursor=false );
This class represents a border - for anything, like paragraph, or frame.
Definition KoBorder.h:34
This is the structure associated with a paragraph (KoTextParag), to define the bullet or numbering of...
Definition KoParagCounter.h:37
SpacingType
Line spacing values Assuming h is the height of the biggest char in the line, and v is the linespacin...
Definition KoParagLayout.h:86
A paragraph style is a combination of a character style and paragraph-layout attributes,...
Definition KoParagStyle.h:55
virtual KCommand * setFormatCommand(const KoTextFormat *format, int flags, bool zoomFont=false)=0
Interface for setting the modified format.
virtual const KoParagLayout * currentParagLayoutFormat() const =0
Interface for accessing the current parag layout.
virtual KCommand * setParagLayoutFormatCommand(KoParagLayout *newLayout, int flags, int marginIndex=-1)=0
Interface for changing the paragraph layout.
Each character (KoTextStringChar) points to a KoTextFormat that defines the formatting of that charac...
Definition KoTextFormat.h:53
The KoTextObject is the high-level object that contains a KoTextDocument (the list of paragraphs),...
Definition KoTextObject.h:182
void setReadWrite(bool b)
Call setReadWrite(false) to make the text view readonly.
Definition KoTextView.h:82
virtual KoTextFormat * currentFormat() const
Interface for accessing the current format.
Definition KoTextView.h:84
virtual void showFormat(KoTextFormat *format)=0
Show the settings of this format in the GUI.
bool isReadWrite() const
Return true if the view is allowed to modify the text object.
Definition KoTextView.h:80
virtual void ctrlPgDownKeyPressed()
Reimplement this to handle CTRL+PageDown.
Definition KoTextView.h:247
virtual bool openLink(KoLinkVariable *linkVariable)
Called when clicking on a link.
Definition KoTextView.cpp:1199
virtual void doAutoFormat(KoTextCursor *, KoTextParag *, int, TQChar)
Called when a character (ch) has been inserted into parag, at the given index.
Definition KoTextView.h:212
virtual void drawCursor(bool b)
Draws the cursor (or hides it if b is false).
Definition KoTextView.cpp:950
