kspread
KSpread::Doc Class Reference
This class holds the data that makes up a spreadsheet.
More...
#include <Doc.h>
List of all members.
Public Types |
| enum | SaveFlag { SaveAll,
SaveSelected
} |
Public Slots |
| virtual void | initEmpty () |
| void | refreshInterface () |
Signals |
| void | sig_refreshView () |
| void | sig_updateView () |
Public Member Functions |
| | Doc (QWidget *parentWidget=0, QObject *parent=0, bool singleViewMode=false) |
| | ~Doc () |
| void | addIgnoreWordAll (const QString &word) |
| void | addIgnoreWordAllList (const QStringList &_lst) |
| void | addStringCompletion (const QString &stringCompletion) |
| virtual void | addView (KoView *_view) |
| void | clearIgnoreWordAll () |
| virtual bool | completeSaving (KoStore *_store) |
| KCompletion & | completion () |
| bool | configLoadFromFile () const |
virtual QMap< QString,
KoDataCenter * > | dataCenterMap () const |
| bool | docData (QString const &xmlTag, QDomElement &data) |
| void | initConfig () |
| bool | isLoading () const |
| virtual bool | loadChildren (KoStore *_store) |
| void | loadConfigFromFile () |
| virtual bool | loadOdf (KoOdfReadStore &odfStore) |
| void | loadOdfCalculationSettings (const KoXmlElement &body) |
| virtual bool | loadXML (const KoXmlDocument &doc, KoStore *store) |
| Map * | map () const |
| virtual QByteArray | mimeType () const |
| void | newZoomAndResolution (bool updateViews, bool forPrint) |
| void | paintCellRegions (QPainter &painter, const QRect &viewRect, View *view, const Region ®ion) |
| void | paintContent (QPainter &painter, const QRect &rect, Sheet *sheet, bool drawCursor=true) |
| virtual void | paintContent (QPainter &painter, const QRect &rect) |
| void | repaint (const QRectF &) |
| void | saveConfig () |
| virtual bool | saveOdf (SavingContext &documentContext) |
| bool | saveOdfHelper (SavingContext &documentContext, SaveFlag saveFlag, QString *plainText=0) |
| virtual QDomDocument | saveXML () |
| virtual void | setReadWrite (bool readwrite=true) |
| QStringList | spellListIgnoreAll () const |
| virtual int | supportedSpecialFormats () const |
| int | syntaxVersion () const |
| void | updateBorderButton () |
Static Public Member Functions |
| static QList< Doc * > | documents () |
Protected Slots |
| virtual void | openTemplate (const KUrl &url) |
Protected Member Functions |
| virtual bool | completeLoading (KoStore *) |
| KoView * | createViewInstance (QWidget *parent) |
| virtual bool | saveChildren (KoStore *_store) |
Properties |
| int | syntaxVersion |
Detailed Description
This class holds the data that makes up a spreadsheet.
Definition at line 73 of file Doc.h.
Constructor & Destructor Documentation
| Doc::Doc |
( |
QWidget * |
parentWidget = 0, |
|
|
QObject * |
parent = 0, |
|
|
bool |
singleViewMode = false | |
|
) |
| | [explicit] |
Creates a new document.
- Parameters:
-
| parentWidget | the parent widget |
| parent | the parent object |
| singleViewMode | enables single view mode, if true |
Definition at line 140 of file Doc.cpp.
Destroys the document.
Definition at line 173 of file Doc.cpp.
Member Function Documentation
| void Doc::addIgnoreWordAll |
( |
const QString & |
word |
) |
|
| void Doc::addIgnoreWordAllList |
( |
const QStringList & |
_lst |
) |
|
| void Doc::addStringCompletion |
( |
const QString & |
stringCompletion |
) |
|
| void Doc::addView |
( |
KoView * |
_view |
) |
[virtual] |
| void Doc::clearIgnoreWordAll |
( |
|
) |
|
| bool Doc::completeLoading |
( |
KoStore * |
store |
) |
[protected, virtual] |
- Reimplemented from superclass. Overloaded function of KoDocument.
Definition at line 739 of file Doc.cpp.
| bool Doc::completeSaving |
( |
KoStore * |
_store |
) |
[virtual] |
| KCompletion & Doc::completion |
( |
|
) |
|
| bool Doc::configLoadFromFile |
( |
|
) |
const |
| KoView * Doc::createViewInstance |
( |
QWidget * |
parent |
) |
[protected] |
| QList< Doc * > Doc::documents |
( |
|
) |
[static] |
- Returns:
- list of all documents
Definition at line 185 of file Doc.cpp.
| void Doc::initEmpty |
( |
|
) |
[virtual, slot] |
| bool Doc::isLoading |
( |
|
) |
const |
- Returns:
- true if the document is currently loading.
Definition at line 262 of file Doc.cpp.
| bool Doc::loadChildren |
( |
KoStore * |
_store |
) |
[virtual] |
| void Doc::loadConfigFromFile |
( |
|
) |
|
- Returns:
- the Map that belongs to this Document
Definition at line 219 of file Doc.cpp.
| virtual QByteArray KSpread::Doc::mimeType |
( |
|
) |
const [inline, virtual] |
- Returns:
- the MIME type of KSpread document
Definition at line 110 of file Doc.h.
| void Doc::newZoomAndResolution |
( |
bool |
updateViews, |
|
|
bool |
forPrint | |
|
) |
| | |
updates all properties after zoom changed
Definition at line 780 of file Doc.cpp.
| void Doc::openTemplate |
( |
const KUrl & |
url |
) |
[protected, virtual, slot] |
| void Doc::refreshInterface |
( |
|
) |
[slot] |
| void Doc::repaint |
( |
const QRectF & |
rect |
) |
|
| bool Doc::saveChildren |
( |
KoStore * |
_store |
) |
[protected, virtual] |
- Reimplemented from superclass. Overloaded function of KoDocument.
Definition at line 278 of file Doc.cpp.
| void Doc::setReadWrite |
( |
bool |
readwrite = true |
) |
[virtual] |
| void KSpread::Doc::sig_refreshView |
( |
|
) |
[signal] |
Emitted if all interfaces have to be updated.
| void KSpread::Doc::sig_updateView |
( |
|
) |
[signal] |
Emitted if all views have to be updated.
| int Doc::supportedSpecialFormats |
( |
|
) |
const [virtual] |
| int KSpread::Doc::syntaxVersion |
( |
|
) |
const |
Returns the syntax version of the currently opened file.
| void Doc::updateBorderButton |
( |
|
) |
|
Property Documentation
int Doc::syntaxVersion [read] |
Definition at line 76 of file Doc.h.
The documentation for this class was generated from the following files:
|