kword
KWFormulaFrameSet Class Reference
Inheritance diagram for KWFormulaFrameSet:

Detailed Description
Definition at line 44 of file KWFormulaFrameSet.h.
Public Member Functions | |
KWFormulaFrameSet (KWDocument *doc, const QString &name) | |
KWFormulaFrameSet (KWDocument *doc, const QDomElement &frame, const QDomElement &objectTag, KoOasisContext &context) | |
virtual | ~KWFormulaFrameSet () |
virtual KWordFrameSetIface * | dcopObject () |
virtual FrameSetType | type () const |
virtual void | addFrame (KWFrame *frame, bool recalc=true) |
virtual void | deleteFrame (unsigned int num, bool remove=true, bool recalc=true) |
virtual KWFrameSetEdit * | createFrameSetEdit (KWCanvas *) |
virtual MouseMeaning | getMouseMeaningInsideFrame (const KoPoint &) |
virtual void | drawFrameContents (KWFrame *, QPainter *, const QRect &, const QColorGroup &, bool onlyChanged, bool resetChanged, KWFrameSetEdit *edit, KWViewMode *viewMode) |
virtual QDomElement | save (QDomElement &parentElem, bool saveFrames=true) |
virtual void | load (QDomElement &attributes, bool loadFrames=true) |
virtual void | saveOasis (KoXmlWriter &, KoSavingContext &, bool saveFrames) const |
void | paste (QDomNode &formulaElem) |
KFormula::Container * | getFormula () const |
void | setChanged () |
virtual void | moveFloatingFrame (int frameNum, const KoPoint &position) |
virtual int | floatingFrameBaseline (int) |
virtual void | setAnchorFormat (KoTextFormat *format, int) |
virtual void | setProtectContent (bool) |
virtual bool | protectContent () const |
Protected Slots | |
void | slotFormulaChanged (double width, double height) |
void | slotErrorMessage (const QString &msg) |
Friends | |
class | KWFormulaFrameSetEdit |
Constructor & Destructor Documentation
KWFormulaFrameSet::KWFormulaFrameSet | ( | KWDocument * | doc, | |
const QDomElement & | frame, | |||
const QDomElement & | objectTag, | |||
KoOasisContext & | context | |||
) |
Member Function Documentation
virtual FrameSetType KWFormulaFrameSet::type | ( | ) | const [inline, virtual] |
The type of frameset.
Use this to differentiate between different instantiations of the framesets. Each implementation will return a different frameType.
Reimplemented from KWFrameSet.
Definition at line 59 of file KWFormulaFrameSet.h.
void KWFormulaFrameSet::deleteFrame | ( | unsigned int | num, | |
bool | remove = true , |
|||
bool | recalc = true | |||
) | [virtual] |
Delete a frame from the set of frames this frameSet has.
- Parameters:
-
num The frameNumber to be removed. remove passing true means that there can not be an undo of the action. recalc do an updateFrames()
Reimplemented from KWFrameSet.
Definition at line 142 of file KWFormulaFrameSet.cpp.
KWFrameSetEdit * KWFormulaFrameSet::createFrameSetEdit | ( | KWCanvas * | canvas | ) | [virtual] |
Create a framesetedit object to edit this frameset in canvas
.
Reimplemented from KWFrameSet.
Definition at line 151 of file KWFormulaFrameSet.cpp.
void KWFormulaFrameSet::drawFrameContents | ( | KWFrame * | , | |
QPainter * | , | |||
const QRect & | , | |||
const QColorGroup & | , | |||
bool | onlyChanged, | |||
bool | resetChanged, | |||
KWFrameSetEdit * | edit, | |||
KWViewMode * | viewMode | |||
) | [virtual] |
Paint this frameset.
Reimplemented from KWFrameSet.
Definition at line 156 of file KWFormulaFrameSet.cpp.
QDomElement KWFormulaFrameSet::save | ( | QDomElement & | parentElem, | |
bool | saveFrames = true | |||
) | [virtual] |
save to XML - when saving
Implements KWFrameSet.
Definition at line 247 of file KWFormulaFrameSet.cpp.
void KWFormulaFrameSet::load | ( | QDomElement & | attributes, | |
bool | loadFrames = true | |||
) | [virtual] |
load from XML - when loading
Reimplemented from KWFrameSet.
Definition at line 284 of file KWFormulaFrameSet.cpp.
void KWFormulaFrameSet::saveOasis | ( | KoXmlWriter & | , | |
KoSavingContext & | , | |||
bool | saveFrames | |||
) | const [virtual] |
void KWFormulaFrameSet::moveFloatingFrame | ( | int | frameNum, | |
const KoPoint & | position | |||
) | [virtual] |
Move the frame frameNum to the given position - this is called when the frame is anchored and the anchor moves (see KWAnchor).
Reimplemented from KWFrameSet.
Definition at line 311 of file KWFormulaFrameSet.cpp.
int KWFormulaFrameSet::floatingFrameBaseline | ( | int | ) | [virtual] |
Get the 'baseline' to use for the "floating frame" identified by frameNum.
-1 means same as the height (usual case)
Reimplemented from KWFrameSet.
Definition at line 320 of file KWFormulaFrameSet.cpp.
void KWFormulaFrameSet::setAnchorFormat | ( | KoTextFormat * | format, | |
int | ||||
) | [virtual] |
Tell this frame the format of it's anchor.
Reimplemented from KWFrameSet.
Definition at line 329 of file KWFormulaFrameSet.cpp.
The documentation for this class was generated from the following files: