kspread
KSpread::Doc Class Reference
#include <kspread_doc.h>
Detailed Description
This class holds the data that makes up a spreadsheet.
Definition at line 97 of file kspread_doc.h.
Public Types | |
enum | { STYLE_PAGE = 20, STYLE_COLUMN, STYLE_ROW, STYLE_CELL_USER, STYLE_CELL_AUTO, STYLE_PAGEMASTER, STYLE_NUMERIC_NUMBER } |
enum | SaveFlag { SaveAll, SaveSelected } |
Public Slots | |
void | refreshInterface () |
void | flushDamages () |
Signals | |
void | sig_updateView () |
void | sig_refreshView () |
void | sig_refreshLocale () |
void | sig_addAreaName (const QString &) |
void | sig_removeAreaName (const QString &) |
void | damagesFlushed (const QValueList< Damage * > &damages) |
Public Member Functions | |
Doc (QWidget *parentWidget=0, const char *widgetName=0, QObject *parent=0, const char *name=0, bool singleViewMode=false) | |
~Doc () | |
virtual QCString | mimeType () const |
KLocale * | locale () const |
Map * | map () const |
StyleManager * | styleManager () const |
ValueParser * | parser () const |
ValueFormatter * | formatter () const |
ValueConverter * | converter () const |
ValueCalc * | calc () const |
void | addCommand (KCommand *command) |
void | addCommand (UndoAction *command) |
void | undo () |
void | redo () |
void | undoLock () |
void | undoUnlock () |
bool | undoLocked () const |
KoCommandHistory * | commandHistory () |
QString | unitName () const |
int | syntaxVersion () const |
void | setShowVerticalScrollBar (bool b) |
bool | showVerticalScrollBar () const |
bool | getShowVerticalScrollBar () const |
void | setShowHorizontalScrollBar (bool b) |
bool | showHorizontalScrollBar () const |
bool | getShowHorizontalScrollBar () const |
void | setShowColumnHeader (bool b) |
bool | showColumnHeader () const |
void | setShowColHeader (bool b) |
bool | getShowColHeader () const |
void | setShowRowHeader (bool b) |
bool | showRowHeader () const |
bool | getShowRowHeader () const |
void | setGridColor (const QColor &color) |
QColor | gridColor () const |
void | setIndentValue (double val) |
double | indentValue () const |
double | getIndentValue () const |
void | setShowStatusBar (bool b) |
bool | showStatusBar () const |
bool | getShowStatusBar () const |
void | setShowTabBar (bool b) |
bool | showTabBar () const |
bool | getShowTabBar () const |
void | setShowFormulaBar (bool b) |
bool | showFormulaBar () const |
bool | getShowFormulaBar () const |
void | setShowMessageError (bool b) |
bool | showMessageError () const |
bool | getShowMessageError () const |
KGlobalSettings::Completion | completionMode () const |
void | setCompletionMode (KGlobalSettings::Completion _complMode) |
KSpread::MoveTo | getMoveToValue () const |
void | setMoveToValue (KSpread::MoveTo _moveTo) |
void | setTypeOfCalc (MethodOfCalc _calc) |
MethodOfCalc | getTypeOfCalc () const |
void | setKSpellConfig (KSpellConfig _kspell) |
KSpellConfig * | getKSpellConfig () |
bool | dontCheckUpperWord () const |
void | setDontCheckUpperWord (bool _b) |
bool | dontCheckTitleCase () const |
void | setDontCheckTitleCase (bool _b) |
QColor | pageBorderColor () const |
void | changePageBorderColor (const QColor &_color) |
virtual bool | completeSaving (KoStore *_store) |
virtual QDomDocument | saveXML () |
bool | savingWholeDocument () |
bool | saveOasisHelper (KoStore *store, KoXmlWriter *manifestWriter, SaveFlag saveFlag, QString *plainText=0, KoPicture *picture=0) |
virtual bool | saveOasis (KoStore *store, KoXmlWriter *manifestWriter) |
void | saveOasisDocumentStyles (KoStore *store, KoGenStyles &mainStyles) const |
virtual int | supportedSpecialFormats () const |
virtual bool | loadXML (QIODevice *, const QDomDocument &doc) |
virtual bool | loadOasis (const QDomDocument &doc, KoOasisStyles &oasisStyles, const QDomDocument &settings, KoStore *) |
virtual bool | loadChildren (KoStore *_store) |
QDomElement | saveAreaName (QDomDocument &doc) |
void | saveOasisAreaName (KoXmlWriter &xmlWriter) |
void | loadAreaName (const QDomElement &element) |
void | loadOasisAreaName (const QDomElement &element) |
void | loadOasisCellValidation (const QDomElement &body) |
virtual void | addView (KoView *_view) |
virtual bool | initDoc (InitDocFlags flags, QWidget *parentWidget=0) |
virtual void | setZoomAndResolution (int zoom, int dpiX, int dpiY) |
void | newZoomAndResolution (bool updateViews, bool forPrint) |
void | enableUndo (bool _b) |
void | enableRedo (bool _b) |
bool | isLoading () const |
virtual void | paintContent (QPainter &painter, const QRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0) |
void | paintContent (QPainter &painter, const QRect &rect, bool transparent, Sheet *sheet, bool drawCursor=true) |
bool | docData (QString const &xmlTag, QDomElement &data) |
void | deregisterPlugin (Plugin *plugin) |
void | registerPlugin (Plugin *plugin) |
void | paintCellRegions (QPainter &painter, const QRect &viewRect, View *view, QValueList< QRect > cellRegions, const Sheet *sheet, bool drawCursor) |
virtual DCOPObject * | dcopObject () |
void | addAreaName (const QRect &_rect, const QString &name, const QString &sheetName) |
const QValueList< Reference > & | listArea () |
void | removeArea (const QString &name) |
KCompletion & | completion () |
void | addStringCompletion (const QString &stringCompletion) |
void | changeAreaSheetName (const QString &oldName, const QString &sheetName) |
QRect | getRectArea (const QString &_sheetName) |
void | insertObject (EmbeddedObject *obj) |
QPtrList< EmbeddedObject > & | embeddedObjects () |
KoPictureCollection * | pictureCollection () |
void | initConfig () |
void | saveConfig () |
void | refreshLocale () |
void | emitBeginOperation (bool waitCursor) |
virtual void | emitBeginOperation () |
virtual void | emitEndOperation () |
void | emitEndOperation (const Region ®ion) |
bool | delayCalculation () const |
void | updateBorderButton () |
void | insertSheet (Sheet *sheet) |
void | takeSheet (Sheet *sheet) |
void | addIgnoreWordAll (const QString &word) |
void | clearIgnoreWordAll () |
void | addIgnoreWordAllList (const QStringList &_lst) |
QStringList | spellListIgnoreAll () const |
void | setDisplaySheet (Sheet *_Sheet) |
Sheet * | displaySheet () const |
KSPLoadingInfo * | loadingInfo () const |
void | increaseNumOperation () |
void | decreaseNumOperation () |
void | addDamage (Damage *damage) |
void | loadConfigFromFile () |
bool | configLoadFromFile () const |
void | repaint (const QRect &) |
void | repaint (EmbeddedObject *) |
void | repaint (const KoRect &) |
virtual void | addShell (KoMainWindow *shell) |
int | undoRedoLimit () const |
void | setUndoRedoLimit (int _val) |
Static Public Member Functions | |
static QValueList< Doc * > | documents () |
static QString | getAttribute (const QDomElement &element, const char *attributeName, const QString &defaultValue) |
static int | getAttribute (const QDomElement &element, const char *attributeName, int defaultValue) |
static double | getAttribute (const QDomElement &element, const char *attributeName, double defaultValue) |
Protected Slots | |
void | commandExecuted () |
void | documentRestored () |
virtual void | openTemplate (const QString &file) |
virtual void | initEmpty () |
Protected Member Functions | |
KoView * | createViewInstance (QWidget *parent, const char *name) |
void | makeUsedPixmapList () |
void | insertPixmapKey (KoPictureKey key) |
virtual bool | completeLoading (KoStore *) |
virtual bool | saveChildren (KoStore *_store) |
Protected Attributes | |
SavedDocParts | m_savedDocParts |
Properties | |
bool | getShowRowHeader |
bool | getShowColHeader |
double | getIndentValue |
bool | getShowMessageError |
bool | dontCheckUpperWord |
bool | dontCheckTitleCase |
int | syntaxVersion |
bool | showVerticalScrollBar |
bool | showHorizontalScrollBar |
bool | showColumnHeader |
bool | showRowHeader |
bool | showStatusBar |
bool | showFormulaBar |
bool | showTabBar |
int | undoRedoLimit |
Classes | |
class | SavedDocParts |
Member Enumeration Documentation
|
Possible values for the "type" argument of the KoGenStyle constructor.
Definition at line 133 of file kspread_doc.h. |
Constructor & Destructor Documentation
|
Creates a new document.
|
|
Destroys the document.
|
Member Function Documentation
|
Adds a command to the command history. The command itself would not be executed. |
|
Returns the command history for the document. This is used in View for updating the actions (i.e through signal KoCommandHistory::commandExecuted) |
|
Overloaded function of KoDocument.
|
|
completion mode
|
|
Returns list of all documents.
|
|
|
|
default override of koDocument version. Changes the cursor to an hourglass |
|
Functions to begin a kspread 'operation'. Calls to emitBeginOperation and emitEndOperation should surround each logical user operation. During the operation, the following should hold true:
The waitCursor parameter specifies whether to put the hourglass up during the operation. |
|
s.a. difference does only specified tasks and thats why it improves performance significantly. rect normally are the visible cells/the cells that need to be updated. TODO: This is essentially redundant now since emitEndOperation behaviour has been fixed to only update cells that were already in the paint dirty list. |
|
Mark the end of an operation and triggers a repaint of any cells or regions of cells which have been marked as 'dirty' via calls to Sheet::setRegionPaintDirty See above comment to emitBeginOperation(bool).
|
|
Definition at line 308 of file kspread_doc.h. |
|
Definition at line 267 of file kspread_doc.h. |
|
Definition at line 356 of file kspread_doc.h. |
|
Definition at line 246 of file kspread_doc.h. |
|
Definition at line 371 of file kspread_doc.h. |
|
Definition at line 283 of file kspread_doc.h. |
|
Definition at line 324 of file kspread_doc.h. |
|
Definition at line 340 of file kspread_doc.h. |
|
Definition at line 230 of file kspread_doc.h. |
|
Returns the color of the grid.
|
|
Returns the indentation value.
|
|
Inserts an object to the object list.
|
|
|
|
Returns the MIME type of KSpread document.
Definition at line 149 of file kspread_doc.h. |
|
updates all properties after zoom changed
|
|
Primary entry point for painting. Use this function to paint groups of cells
|
|
Redoes the last undo.
|
|
Overloaded function of KoDocument.
|
|
Save the whole document, or just the selection, into OASIS format When saving the selection, also return the data as plain text and/or plain picture, which are used to insert into the KMultipleDrag drag object.
|
|
Sets the color of the grid.
|
|
Sets the indentation value.
|
|
get custom kspell config
|
|
Definition at line 262 of file kspread_doc.h. |
|
If b is true, column header is visible, otherwise it will be hidden.
|
|
If b is true, formula bar is visible, otherwise it will be hidden.
|
|
If b is true, horizontal scrollbar is visible, otherwise it will be hidden.
|
|
If b is true, an error message will pop up whenever error occurs.
|
|
If b is true, row header is visible, otherwise it will be hidden.
|
|
If b is true, status bar is visible, otherwise it will be hidden.
|
|
If b is true, tab bar is visible, otherwise it will be hidden.
|
|
If b is true, vertical scrollbar is visible, otherwise it will be hidden.
|
|
Method of calc.
|
|
Change the zoom factor to 150 for 150%) and/or change the resolution, given in DPI. This is done on startup and when printing. The same call combines both so that all the updating done behind the scenes is done only once, even if both zoom and DPI must be changed. |
|
Returns true if column header is visible.
|
|
Returns true if formula bar is visible.
|
|
Returns true if horizontal scroll bar is visible.
|
|
Returns true if error message should pop up whenever error occurs.
|
|
Returns true if row header is visible.
|
|
Returns true if status bar is visible.
|
|
Returns true if tab bar is visible.
|
|
Returns true if vertical scroll bar is visible.
|
|
Emitted if we update to locale system.
|
|
Emitted if all interfaces have to be updated.
|
|
Emitted if all views have to be updated.
|
|
Returns the syntax version of the currently opened file.
|
|
Undoes the last operation.
|
|
Locks the undo buffer.
|
|
Returns true if undo buffer is locked.
|
|
Releases lock of undo buffer.
|
|
Returns the name of the unit used to display margins. For example, if unit() returns KoUnit::U_MM, then this functions return "mm". |
The documentation for this class was generated from the following file: