lib
KoTextFormatInterface Class Reference
#include <KoTextObject.h>
Inheritance diagram for KoTextFormatInterface:

Detailed Description
The KoTextFormatInterface is a pure interface that allows access to the "current text format".This is implemented by both KoTextObject and KoTextView. For KoTextView, it's the format under the cursor. For KoTextObject, it's the global format. By changing this format and calling setFormat (with the appropriate flags), it's possible to implement "setBold", "setItalic" etc. only once, whether it applies to a text selection or to complete text objects.
Definition at line 48 of file KoTextObject.h.
Member Function Documentation
virtual KoTextFormat* KoTextFormatInterface::currentFormat | ( | ) | const [pure virtual] |
virtual KCommand* KoTextFormatInterface::setFormatCommand | ( | const KoTextFormat * | format, | |
int | flags, | |||
bool | zoomFont = false | |||
) | [pure virtual] |
Interface for setting the modified format.
- Parameters:
-
format can be a temporary format zoomFont set to true if the font size was used-specified (e.g. in KoFontDia) flags see enum KoTextFormat::Flags
Implemented in KoTextObject, and KoTextView.
virtual const KoParagLayout* KoTextFormatInterface::currentParagLayoutFormat | ( | ) | const [pure virtual] |
virtual KCommand* KoTextFormatInterface::setParagLayoutFormatCommand | ( | KoParagLayout * | newLayout, | |
int | flags, | |||
int | marginIndex = -1 | |||
) | [pure virtual] |
Interface for changing the paragraph layout.
- Parameters:
-
newLayout pointer to the new layout to apply flags one of the KoParagLayout flags marginIndex type of margin. Only used if flags==KoParagLayoutMargins
Implemented in KoTextObject, and KoTextView.
The documentation for this class was generated from the following files: