kspread

KSpread::Doc Class Reference

This class holds the data that makes up a spreadsheet. More...

#include <Doc.h>

Inheritance diagram for KSpread::Doc:

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)
Mapmap () const
virtual QByteArray mimeType () const
void newZoomAndResolution (bool updateViews, bool forPrint)
void paintCellRegions (QPainter &painter, const QRect &viewRect, View *view, const Region &region)
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 *)
KoViewcreateViewInstance (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.

Doc::~Doc (  ) 

Destroys the document.

Definition at line 173 of file Doc.cpp.


Member Function Documentation

void Doc::addIgnoreWordAll ( const QString word  ) 

Definition at line 956 of file Doc.cpp.

void Doc::addIgnoreWordAllList ( const QStringList _lst  ) 

Definition at line 770 of file Doc.cpp.

void Doc::addStringCompletion ( const QString stringCompletion  ) 

Definition at line 939 of file Doc.cpp.

void Doc::addView ( KoView _view  )  [virtual]

Definition at line 967 of file Doc.cpp.

void Doc::clearIgnoreWordAll (  ) 

Definition at line 962 of file Doc.cpp.

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]

Definition at line 288 of file Doc.cpp.

KCompletion & Doc::completion (  ) 

Definition at line 268 of file Doc.cpp.

bool Doc::configLoadFromFile (  )  const

Definition at line 979 of file Doc.cpp.

KoView * Doc::createViewInstance ( QWidget parent  )  [protected]

Definition at line 273 of file Doc.cpp.

QMap< QString, KoDataCenter * > Doc::dataCenterMap (  )  const [virtual]

Definition at line 224 of file Doc.cpp.

bool Doc::docData ( QString const &  xmlTag,
QDomElement data 
)

Definition at line 760 of file Doc.cpp.

QList< Doc * > Doc::documents (  )  [static]
Returns:
list of all documents

Definition at line 185 of file Doc.cpp.

void Doc::initConfig (  ) 

Definition at line 239 of file Doc.cpp.

void Doc::initEmpty (  )  [virtual, slot]

Definition at line 204 of file Doc.cpp.

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]

Definition at line 339 of file Doc.cpp.

void Doc::loadConfigFromFile (  ) 

Definition at line 974 of file Doc.cpp.

Map * Doc::map (  )  const
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]

Definition at line 196 of file Doc.cpp.

void Doc::refreshInterface (  )  [slot]

Definition at line 945 of file Doc.cpp.

void Doc::repaint ( const QRectF rect  ) 

Definition at line 984 of file Doc.cpp.

bool Doc::saveChildren ( KoStore *  _store  )  [protected, virtual]
Reimplemented from superclass. Overloaded function of KoDocument.

Definition at line 278 of file Doc.cpp.

void Doc::saveConfig (  ) 

Definition at line 229 of file Doc.cpp.

void Doc::setReadWrite ( bool  readwrite = true  )  [virtual]

Definition at line 190 of file Doc.cpp.

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.

QStringList Doc::spellListIgnoreAll (  )  const

Definition at line 775 of file Doc.cpp.

int Doc::supportedSpecialFormats (  )  const [virtual]

Definition at line 283 of file Doc.cpp.

int KSpread::Doc::syntaxVersion (  )  const

Returns the syntax version of the currently opened file.

void Doc::updateBorderButton (  ) 

Definition at line 950 of file Doc.cpp.


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: