Document Class Reference
A document that can contain a lot of formulas (container). More...
#include <kformuladocument.h>
Inheritance diagram for Document:


Public Member Functions | |
Document (QObject *parent=0, const char *name=0, const QStringList &args=QStringList()) | |
virtual Container * | createFormula (int pos=-1, bool registerMe=true) |
virtual void | registerFormula (Container *, int pos=-1) |
virtual void | unregisterFormula (Container *) |
virtual void | evaluateFormulas () |
virtual void | enableEvaluation (bool) |
bool | loadXML (const QDomDocument &doc) |
bool | loadOasis (const QDomDocument &doc) |
bool | loadDocumentPart (QDomElement node) |
QDomDocument | saveXML () |
QDomElement | saveDocumentPart (QDomDocument &doc) |
ContextStyle & | getContextStyle (bool edit=false) |
void | setZoomAndResolution (int zoom, int dpiX, int dpiY) |
void | newZoomAndResolution (bool updateViews, bool forPrint) |
void | setZoomAndResolution (int zoom, double zoomX, double zoomY, bool updateViews=false, bool forPrint=false) |
double | getXResolution () const |
double | getYResolution () const |
void | activate (Container *formula) |
void | setEnabled (bool enabled) |
KoCommandHistory * | getHistory () const |
const SymbolTable & | getSymbolTable () const |
void | updateConfig () |
QPtrListIterator< Container > | formulas () |
SymbolType | leftBracketChar () |
SymbolType | rightBracketChar () |
DocumentWrapper * | wrapper () |
Static Public Member Functions | |
static QDomDocument | createDomDocument () |
Protected Member Functions | |
int | formulaPos (Container *formula) |
Container * | formulaAt (uint pos) |
int | formulaCount () |
void | sortFormulaList () |
Friends | |
class | DocumentWrapper |
class | Container |
Detailed Description
A document that can contain a lot of formulas (container).The relationship between the document and its formulas is an open one. The document sure owns the formulas and when it vanishes the formulas will be destroyed, too. But the user will most often work with those formulas directly and not bother to ask the document. It's legal to directly create or destroy a Container object.
Definition at line 67 of file kformuladocument.h.
Constructor & Destructor Documentation
|
Creates a formula document.
Definition at line 70 of file kformuladocument.cc. |
Member Function Documentation
|
Factory method.
Definition at line 99 of file kformuladocument.cc. References Container::initialize(). |
|
Registers a new formula to be part of this document. Each formula must be part of exactly one document. Definition at line 205 of file kformuladocument.cc. |
|
Removes a formula from this document. The formula will stay alive and might be registered again. Definition at line 218 of file kformuladocument.cc. |
|
Triggers the evaluation of the whole document. This obviously required evaluation support. Definition at line 103 of file kformuladocument.h. |
|
Load a kformula DomDocument with all its formulas. This must only be called on a virgin document. Definition at line 131 of file kformuladocument.cc. References Container::load(), and loadDocumentPart(). |
|
Load a OASIS content.xml DomDocument.
Definition at line 167 of file kformuladocument.cc. |
|
Load the document settings.
Definition at line 174 of file kformuladocument.cc. Referenced by loadXML(). |
|
Save the document with all its formulae.
Definition at line 179 of file kformuladocument.cc. References createDomDocument(), and saveDocumentPart(). |
|
Save the document settings.
Definition at line 192 of file kformuladocument.cc. Referenced by saveXML(). |
|
Definition at line 261 of file kformuladocument.cc. References ContextStyle::setEdit(). Referenced by setZoomAndResolution(). |
|
Change the zoom factor to 150 for 150%) and/or change the resolution, given in DPI. Uses the KoZoomHandler. Definition at line 267 of file kformuladocument.cc. References ContextStyle::setZoomAndResolution(). Referenced by setZoomAndResolution(). |
|
Sets the zoom by hand.
This is to be used in Definition at line 279 of file kformuladocument.cc. References getContextStyle(), and setZoomAndResolution(). |
|
Sets a new formula.
Definition at line 226 of file kformuladocument.cc. |
|
Enables our action according to enabled.
Definition at line 300 of file kformuladocument.cc. References DocumentWrapper::setEnabled(). |
|
Definition at line 306 of file kformuladocument.cc. References DocumentWrapper::getHistory(). |
|
Definition at line 256 of file kformuladocument.cc. References ContextStyle::symbolTable(). |
|
Gets called when the configuration changed. (Maybe we can find a better solution.) Definition at line 322 of file kformuladocument.cc. References DocumentWrapper::updateConfig(). |
|
Return a kformula DomDocument.
Definition at line 199 of file kformuladocument.cc. References KoDocument::createDomDocument(). Referenced by saveXML(). |
|
Definition at line 107 of file kformuladocument.cc. |
|
Definition at line 113 of file kformuladocument.cc. |
|
Definition at line 119 of file kformuladocument.cc. |
|
Definition at line 125 of file kformuladocument.cc. |
|
Sorts the list of formulas according to their screen positions.
Definition at line 232 of file kformuladocument.cc. |
The documentation for this class was generated from the following files: