kpresenter
KPrTextObject Class Reference
Inheritance diagram for KPrTextObject:

Detailed Description
Definition at line 52 of file KPrTextObject.h.
Signals | |
void | repaintChanged (KPrTextObject *) |
Public Member Functions | |
KPrTextObject (KPrDocument *doc) | |
virtual | ~KPrTextObject () |
virtual DCOPObject * | dcopObject () |
virtual void | setSize (double _width, double _height) |
virtual void | setDrawEditRect (bool b) |
virtual void | setDrawEmpty (bool b) |
virtual ObjType | getType () const |
virtual QString | getTypeString () const |
virtual bool | getDrawEditRect () const |
virtual bool | getDrawEmpty () const |
virtual int | getSubPresSteps () const |
virtual QBrush | getBrush () const |
virtual void | setShadowParameter (int _distance, ShadowDirection _direction, const QColor &_color) |
virtual QDomDocumentFragment | save (QDomDocument &doc, double offset) |
virtual double | load (const QDomElement &element) |
virtual void | loadOasis (const QDomElement &element, KoOasisContext &context, KPrLoadingInfo *info) |
virtual void | saveOasisMarginElement (KoGenStyle &styleobjectauto) const |
virtual void | paint (QPainter *_painter, KoTextZoomHandler *_zoomHandler, int pageNum, bool drawingShadow, bool drawContour) |
void | paint (QPainter *_painter, KoTextZoomHandler *_zoomHandler, bool onlyChanged, KoTextCursor *cursor, bool resetChanged, bool drawContour) |
void | paintEdited (QPainter *_painter, KoTextZoomHandler *_zoomHandler, bool onlyChanged, KoTextCursor *cursor, bool resetChanged) |
void | drawCursor (QPainter *p, KoTextCursor *cursor, bool cursorVisible, KPrCanvas *) |
void | recalcPageNum (KPrPage *page) |
QPoint | cursorPos (KPrCanvas *, KoTextCursor *) const |
KoTextObject * | textObject () const |
virtual void | addTextObjects (QPtrList< KoTextObject > &lst) const |
KPrTextDocument * | textDocument () const |
KPrDocument * | kPresenterDocument () const |
KPrTextView * | createKPTextView (KPrCanvas *, bool temp=false) |
void | applyStyleChange (KoStyleChangeDefMap changed) |
void | removeHighlight () |
void | highlightPortion (KoTextParag *parag, int index, int length, KPrCanvas *canvas, bool repaint, KDialogBase *dialog=0) |
KCommand * | pasteOasis (KoTextCursor *cursor, const QByteArray &data, bool removeSelected) |
void | saveParagraph (QDomDocument &doc, KoTextParag *parag, QDomElement &parentElem, int from, int to) |
KoParagLayout | loadParagLayout (QDomElement &parentElem, KPrDocument *doc, bool useRefStyle) |
void | setEditingTextObj (bool _edit) |
KCommand * | textContentsToHeight () |
KCommand * | textObjectToContents () |
void | setProtectContent (bool _protect) |
bool | isProtectContent () const |
void | loadVariable (QValueList< QDomElement > &listVariable, KoTextParag *lastParag, int offset=0) |
void | layout () |
int | availableHeight () const |
void | setBLeft (double b) |
void | setBRight (double b) |
void | setBTop (double b) |
void | setBBottom (double b) |
double | bLeft () const |
double | bRight () const |
double | bTop () const |
double | bBottom () const |
void | setTextMargins (double _left, double _top, double right, double bottom) |
KoRect | innerRect () const |
double | innerWidth () const |
double | innerHeight () const |
void | resizeTextDocument (bool widthChanged=true, bool heightChanged=true) |
VerticalAlignmentType | verticalAlignment () const |
void | setVerticalAligment (VerticalAlignmentType _type) |
double | alignmentValue () const |
virtual KPrTextObject * | nextTextObject () |
QPoint | viewToInternal (const QPoint &pos, KPrCanvas *canvas) const |
Static Public Member Functions | |
static KoTextFormat | loadFormat (QDomElement &n, KoTextFormat *refFormat, const QFont &defaultFont, const QString &defaultLanguage, bool hyphen) |
static void | saveFormat (QDomElement &element, KoTextFormat *lastFormat) |
Protected Slots | |
void | slotFormatChanged (const KoTextFormat &) |
void | slotAfterFormatting (int, KoTextParag *, bool *) |
void | slotParagraphDeleted (KoTextParag *_parag) |
void | slotNewCommand (KCommand *cmd) |
void | slotAvailableHeightNeeded () |
void | slotRepaintChanged () |
Protected Member Functions | |
virtual const char * | getOasisElementName () const |
virtual bool | saveOasisObjectAttributes (KPOasisSaveContext &sc) const |
virtual QDomElement | saveKTextObject (QDomDocument &doc) |
QDomElement | saveHelper (const QString &tmpText, KoTextFormat *lastFormat, QDomDocument &doc) |
virtual void | fillStyle (KoGenStyle &styleObjectAuto, KoGenStyles &mainStyles) const |
virtual void | loadKTextObject (const QDomElement &e) |
void | drawText (QPainter *_painter, KoTextZoomHandler *zoomHandler, bool onlyChanged, KoTextCursor *cursor, bool resetChanged) |
void | drawParags (QPainter *p, KoTextZoomHandler *zoomHandler, const QColorGroup &cg, int from, int to) |
void | saveParagLayout (const KoParagLayout &layout, QDomElement &parentElem) |
void | invalidate () |
void | recalcVerticalAlignment () |
virtual KoPen | defaultPen () const |
Member Function Documentation
|
Collect all textobjects. (KPrTextObject returns the object it contains, a KPrGroupObject returns all the text objects it contains) Reimplemented from KPrObject. Definition at line 104 of file KPrTextObject.h. |
|
Reimplemented from KoTextFlow.
Definition at line 1430 of file KPrTextObject.cpp. |
|
get bottom margin size
Definition at line 160 of file KPrTextObject.h. |
|
get left margin size
Definition at line 154 of file KPrTextObject.h. |
|
get right margin size
Definition at line 156 of file KPrTextObject.h. |
|
get top margin size
Definition at line 158 of file KPrTextObject.h. |
|
Return the current text cursor position.
Definition at line 1758 of file KPrTextObject.cpp. |
|
save() only saves if the pen is different from the default pen. The default pen can vary depending on the subclass of KPrShadowObject (e.g. it's a black solidline for lines and rects, but it's NoPen for text objects Reimplemented from KPrShadowObject. Definition at line 2572 of file KPrTextObject.cpp. |
|
Get the element name for saving the object.
Implements KPrObject. Definition at line 225 of file KPrTextObject.cpp. |
|
#### Port this to KoBorder, see e.g. kword/kwframe.cc:590 Definition at line 401 of file KPrTextObject.cpp. |
|
This method is to be implemented by all KPShadowObjects, to draw themselves.
draw() took care of the shadow and of preparing
Reimplemented from KPrShadowObject. Definition at line 375 of file KPrTextObject.cpp. |
|
set bottom margin size
Definition at line 151 of file KPrTextObject.h. |
|
set left margin size
Definition at line 145 of file KPrTextObject.h. |
|
set right margin size
Definition at line 147 of file KPrTextObject.h. |
|
set top margin size
Definition at line 149 of file KPrTextObject.h. |
|
Return the contained text object.
Definition at line 103 of file KPrTextObject.h. |
The documentation for this class was generated from the following files: