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
void KPrTextObject::paint | ( | QPainter * | _painter, | |
KoTextZoomHandler * | _zoomHandler, | |||
int | pageNum, | |||
bool | drawingShadow, | |||
bool | drawContour | |||
) | [virtual] |
This method is to be implemented by all KPShadowObjects, to draw themselves.
draw() took care of the shadow and of preparing painter
for rotation. paint() must take care of the gradient itself!
- Parameters:
-
drawingShadow true if called to draw the shadow of the object. Usually objects will want to draw a simpler version of themselves in that case.
Reimplemented from KPrShadowObject.
Definition at line 375 of file KPrTextObject.cpp.
void KPrTextObject::paint | ( | QPainter * | _painter, | |
KoTextZoomHandler * | _zoomHandler, | |||
bool | onlyChanged, | |||
KoTextCursor * | cursor, | |||
bool | resetChanged, | |||
bool | drawContour | |||
) |
Definition at line 401 of file KPrTextObject.cpp.
QPoint KPrTextObject::cursorPos | ( | KPrCanvas * | , | |
KoTextCursor * | ||||
) | const |
KoTextObject* KPrTextObject::textObject | ( | ) | const [inline] |
virtual void KPrTextObject::addTextObjects | ( | QPtrList< KoTextObject > & | lst | ) | const [inline, virtual] |
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.
int KPrTextObject::availableHeight | ( | ) | const |
void KPrTextObject::setBLeft | ( | double | b | ) | [inline] |
void KPrTextObject::setBRight | ( | double | b | ) | [inline] |
void KPrTextObject::setBTop | ( | double | b | ) | [inline] |
void KPrTextObject::setBBottom | ( | double | b | ) | [inline] |
double KPrTextObject::bLeft | ( | ) | const [inline] |
double KPrTextObject::bRight | ( | ) | const [inline] |
double KPrTextObject::bTop | ( | ) | const [inline] |
double KPrTextObject::bBottom | ( | ) | const [inline] |
const char * KPrTextObject::getOasisElementName | ( | ) | const [protected, virtual] |
Get the element name for saving the object.
Implements KPrObject.
Definition at line 225 of file KPrTextObject.cpp.
KoPen KPrTextObject::defaultPen | ( | ) | const [protected, virtual] |
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.
The documentation for this class was generated from the following files: