kspread

#include <kspread_doc.h>

Public Types

enum  {
  STYLE_PAGE = 20 , STYLE_COLUMN_USER , STYLE_COLUMN_AUTO , STYLE_ROW_USER ,
  STYLE_ROW_AUTO , 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 TQString &)
void sig_removeAreaName (const TQString &)
void damagesFlushed (const TQValueList< Damage * > &damages)

Public Member Functions

 Doc (TQWidget *parentWidget=0, const char *widgetName=0, TQObject *parent=0, const char *name=0, bool singleViewMode=false)
 ~Doc ()
virtual TQCString mimeType () const
TDELocale * 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 ()
TQString 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 TQColor &color)
TQColor 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
TDEGlobalSettings::Completion completionMode () const
void setCompletionMode (TDEGlobalSettings::Completion _complMode)
KSpread::MoveTo getMoveToValue () const
void setMoveToValue (KSpread::MoveTo _moveTo)
void setTypeOfCalc (MethodOfCalc _calc)
MethodOfCalc getTypeOfCalc () const
void setKSpellConfig (KSpellConfig _tdespell)
KSpellConfig * getKSpellConfig ()
bool dontCheckUpperWord () const
void setDontCheckUpperWord (bool _b)
bool dontCheckTitleCase () const
void setDontCheckTitleCase (bool _b)
TQColor pageBorderColor () const
void changePageBorderColor (const TQColor &_color)
virtual bool completeSaving (KoStore *_store)
virtual TQDomDocument saveXML ()
bool savingWholeDocument ()
bool saveOasisHelper (KoStore *store, KoXmlWriter *manifestWriter, SaveFlag saveFlag, TQString *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 (TQIODevice *, const TQDomDocument &doc)
virtual bool loadOasis (const TQDomDocument &doc, KoOasisStyles &oasisStyles, const TQDomDocument &settings, KoStore *)
virtual bool loadChildren (KoStore *_store)
TQDomElement saveAreaName (TQDomDocument &doc)
void saveOasisAreaName (KoXmlWriter &xmlWriter)
void loadAreaName (const TQDomElement &element)
void loadOasisAreaName (const TQDomElement &element)
void loadOasisCellValidation (const TQDomElement &body)
virtual void addView (KoView *_view)
virtual bool initDoc (InitDocFlags flags, TQWidget *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
void doNotPaint (bool status)
virtual void paintContent (TQPainter &painter, const TQRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0)
void paintContent (TQPainter &painter, const TQRect &rect, bool transparent, Sheet *sheet, bool drawCursor=true)
bool docData (TQString const &xmlTag, TQDomElement &data)
void deregisterPlugin (Plugin *plugin)
void registerPlugin (Plugin *plugin)
void paintCellRegions (TQPainter &painter, const TQRect &viewRect, View *view, TQValueList< TQRect > cellRegions, const Sheet *sheet, bool drawCursor)
virtual DCOPObject * dcopObject ()
void addAreaName (const TQRect &_rect, const TQString &name, const TQString &sheetName)
const TQValueList< Reference > & listArea ()
void removeArea (const TQString &name)
TDECompletion & completion ()
void addStringCompletion (const TQString &stringCompletion)
void changeAreaSheetName (const TQString &oldName, const TQString &sheetName)
TQRect getRectArea (const TQString &_sheetName)
void insertObject (EmbeddedObject *obj)
TQPtrList< EmbeddedObject > & embeddedObjects ()
KoPictureCollection * pictureCollection ()
void initConfig ()
void saveConfig ()
void refreshLocale ()
void emitBeginOperation (bool waitCursor)
virtual void emitBeginOperation ()
virtual void emitEndOperation ()
void emitEndOperation (const Region &region)
bool delayCalculation () const
void updateBorderButton ()
void insertSheet (Sheet *sheet)
void takeSheet (Sheet *sheet)
void addIgnoreWordAll (const TQString &word)
void clearIgnoreWordAll ()
void addIgnoreWordAllList (const TQStringList &_lst)
TQStringList spellListIgnoreAll () const
void setDisplaySheet (Sheet *_Sheet)
Sheet * displaySheet () const
KSPLoadingInfo * loadingInfo () const
void deleteLoadingInfo ()
void increaseNumOperation ()
void decreaseNumOperation ()
void addDamage (Damage *damage)
void loadConfigFromFile ()
bool configLoadFromFile () const
void repaint (const TQRect &)
void repaint (EmbeddedObject *)
void repaint (const KoRect &)
virtual void addShell (KoMainWindow *shell)
int undoRedoLimit () const
void setUndoRedoLimit (int _val)

Static Public Member Functions

static TQValueList< Doc * > documents ()
static TQString getAttribute (const TQDomElement &element, const char *attributeName, const TQString &defaultValue)
static int getAttribute (const TQDomElement &element, const char *attributeName, int defaultValue)
static double getAttribute (const TQDomElement &element, const char *attributeName, double defaultValue)

Protected Slots

void commandExecuted ()
void documentRestored ()
virtual void openTemplate (const TQString &file)
virtual void initEmpty ()

Protected Member Functions

KoView * createViewInstance (TQWidget *parent, const char *name)
void makeUsedPixmapList ()
void insertPixmapKey (KoPictureKey key)
virtual bool completeLoading (KoStore *)
virtual bool saveChildren (KoStore *_store)

Protected Attributes

SavedDocParts m_savedDocParts

Detailed Description

This class holds the data that makes up a spreadsheet.

Definition at line 97 of file kspread_doc.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Possible values for the "type" argument of the KoGenStyle constructor.

Enumerator
STYLE_COLUMN_USER 

commmon column styles

STYLE_COLUMN_AUTO 

auto column styles

STYLE_ROW_USER 

common row styles

STYLE_ROW_AUTO 

auto row styles

Definition at line 134 of file kspread_doc.h.

◆ SaveFlag

enum KSpread::Doc::SaveFlag

Definition at line 412 of file kspread_doc.h.

Constructor & Destructor Documentation

◆ Doc()

Doc::Doc ( TQWidget * parentWidget = 0,
const char * widgetName = 0,
TQObject * parent = 0,
const char * name = 0,
bool singleViewMode = false )

Creates a new document.

Definition at line 172 of file kspread_doc.cpp.

◆ ~Doc()

Doc::~Doc ( )

Destroys the document.

Definition at line 248 of file kspread_doc.cpp.

Member Function Documentation

◆ addAreaName()

void Doc::addAreaName ( const TQRect & _rect,
const TQString & name,
const TQString & sheetName )

Definition at line 1943 of file kspread_doc.cpp.

◆ addCommand() [1/2]

void Doc::addCommand ( KCommand * command)

Adds a command to the command history.

The command itself would not be executed.

Definition at line 1560 of file kspread_doc.cpp.

◆ addCommand() [2/2]

void Doc::addCommand ( UndoAction * command)

Definition at line 1567 of file kspread_doc.cpp.

◆ addDamage()

void Doc::addDamage ( Damage * damage)

Definition at line 2329 of file kspread_doc.cpp.

◆ addIgnoreWordAll()

void Doc::addIgnoreWordAll ( const TQString & word)

Definition at line 2289 of file kspread_doc.cpp.

◆ addIgnoreWordAllList()

void Doc::addIgnoreWordAllList ( const TQStringList & _lst)

Definition at line 1535 of file kspread_doc.cpp.

◆ addShell()

void Doc::addShell ( KoMainWindow * shell)
virtual

Definition at line 2422 of file kspread_doc.cpp.

◆ addStringCompletion()

void Doc::addStringCompletion ( const TQString & stringCompletion)

Definition at line 2169 of file kspread_doc.cpp.

◆ addView()

void Doc::addView ( KoView * _view)
virtual

Definition at line 2321 of file kspread_doc.cpp.

◆ calc()

ValueCalc * Doc::calc ( ) const

Definition at line 428 of file kspread_doc.cpp.

◆ changeAreaSheetName()

void Doc::changeAreaSheetName ( const TQString & oldName,
const TQString & sheetName )

Definition at line 1968 of file kspread_doc.cpp.

◆ changePageBorderColor()

void Doc::changePageBorderColor ( const TQColor & _color)

Definition at line 493 of file kspread_doc.cpp.

◆ clearIgnoreWordAll()

void Doc::clearIgnoreWordAll ( )

Definition at line 2295 of file kspread_doc.cpp.

◆ commandExecuted

void Doc::commandExecuted ( )
protectedslot

Definition at line 1589 of file kspread_doc.cpp.

◆ commandHistory()

KoCommandHistory * Doc::commandHistory ( )

Returns the command history for the document.

This is used in View for updating the actions (i.e through signal KoCommandHistory::commandExecuted)

Definition at line 1614 of file kspread_doc.cpp.

◆ completeLoading()

bool Doc::completeLoading ( KoStore * )
protectedvirtual

Overloaded function of KoDocument.

Definition at line 1291 of file kspread_doc.cpp.

◆ completeSaving()

bool Doc::completeSaving ( KoStore * _store)
virtual

Definition at line 525 of file kspread_doc.cpp.

◆ completion()

TDECompletion & Doc::completion ( )

Definition at line 503 of file kspread_doc.cpp.

◆ completionMode()

TDEGlobalSettings::Completion Doc::completionMode ( ) const

completion mode

Definition at line 1352 of file kspread_doc.cpp.

◆ configLoadFromFile()

bool Doc::configLoadFromFile ( ) const

Definition at line 2351 of file kspread_doc.cpp.

◆ converter()

ValueConverter * Doc::converter ( ) const

Definition at line 423 of file kspread_doc.cpp.

◆ createViewInstance()

KoView * Doc::createViewInstance ( TQWidget * parent,
const char * name )
protected

Definition at line 508 of file kspread_doc.cpp.

◆ dcopObject()

DCOPObject * Doc::dcopObject ( )
virtual

Definition at line 1935 of file kspread_doc.cpp.

◆ decreaseNumOperation()

void Doc::decreaseNumOperation ( )

Definition at line 1530 of file kspread_doc.cpp.

◆ delayCalculation()

bool Doc::delayCalculation ( ) const

Definition at line 2263 of file kspread_doc.cpp.

◆ deleteLoadingInfo()

void Doc::deleteLoadingInfo ( )

deletes the loading info after loading is complete

Definition at line 2310 of file kspread_doc.cpp.

◆ deregisterPlugin()

void Doc::deregisterPlugin ( Plugin * plugin)

Definition at line 1315 of file kspread_doc.cpp.

◆ displaySheet()

Sheet * Doc::displaySheet ( ) const

Definition at line 2316 of file kspread_doc.cpp.

◆ docData()

bool Doc::docData ( TQString const & xmlTag,
TQDomElement & data )

Definition at line 1320 of file kspread_doc.cpp.

◆ documentRestored

void Doc::documentRestored ( )
protectedslot

Definition at line 1594 of file kspread_doc.cpp.

◆ documents()

TQValueList< Doc * > Doc::documents ( )
static

Returns list of all documents.

Definition at line 274 of file kspread_doc.cpp.

◆ doNotPaint()

void Doc::doNotPaint ( bool status)

Prevents painting.

Useful when importing data.

Parameters
statusswitch the painting on/off

Definition at line 482 of file kspread_doc.cpp.

◆ dontCheckTitleCase()

bool Doc::dontCheckTitleCase ( ) const

Definition at line 1510 of file kspread_doc.cpp.

◆ dontCheckUpperWord()

bool Doc::dontCheckUpperWord ( ) const

Definition at line 1500 of file kspread_doc.cpp.

◆ embeddedObjects()

TQPtrList< EmbeddedObject > & Doc::embeddedObjects ( )
Returns
the list of all embedded objects (charts, pictures and koffice objects) Use insertObject to add an object to the list.

Definition at line 2372 of file kspread_doc.cpp.

◆ emitBeginOperation() [1/2]

void Doc::emitBeginOperation ( void )
virtual

default override of koDocument version.

Changes the cursor to an hourglass

Definition at line 2211 of file kspread_doc.cpp.

◆ emitBeginOperation() [2/2]

void Doc::emitBeginOperation ( bool waitCursor)

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:

  • No painting will be done to the screen
  • No cell calculation will be done (maybe there are exceptions, such as the goalseek operation needs to calculate values) During an operation, calls to Sheet::setRegionPaintDirty mark regions as needing repainted. Once the emitEndOperation function is called, those regions will be painted all at once, values being calculated as necessary. Calls to begin/endOperation may be nested. Calcualation/painting will be delayed until the outer begin/end pair has finished.

The waitCursor parameter specifies whether to put the hourglass up during the operation.

Definition at line 2186 of file kspread_doc.cpp.

◆ emitEndOperation() [1/2]

void Doc::emitEndOperation ( )
virtual

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 2217 of file kspread_doc.cpp.

◆ emitEndOperation() [2/2]

void Doc::emitEndOperation ( const Region & region)

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.

Definition at line 2240 of file kspread_doc.cpp.

◆ enableRedo()

void Doc::enableRedo ( bool _b)

Definition at line 1626 of file kspread_doc.cpp.

◆ enableUndo()

void Doc::enableUndo ( bool _b)

Definition at line 1619 of file kspread_doc.cpp.

◆ flushDamages

void Doc::flushDamages ( )
slot

Definition at line 2337 of file kspread_doc.cpp.

◆ formatter()

ValueFormatter * Doc::formatter ( ) const

Definition at line 418 of file kspread_doc.cpp.

◆ getAttribute() [1/3]

TQString KSpread::Doc::getAttribute ( const TQDomElement & element,
const char * attributeName,
const TQString & defaultValue )
inlinestatic

Definition at line 593 of file kspread_doc.h.

◆ getAttribute() [2/3]

double KSpread::Doc::getAttribute ( const TQDomElement & element,
const char * attributeName,
double defaultValue )
inlinestatic

Definition at line 607 of file kspread_doc.h.

◆ getAttribute() [3/3]

int KSpread::Doc::getAttribute ( const TQDomElement & element,
const char * attributeName,
int defaultValue )
inlinestatic

Definition at line 598 of file kspread_doc.h.

◆ getIndentValue()

double KSpread::Doc::getIndentValue ( ) const
inline
Deprecated
Use indentValue().

Definition at line 311 of file kspread_doc.h.

◆ getKSpellConfig()

KSpellConfig * Doc::getKSpellConfig ( )

Definition at line 1475 of file kspread_doc.cpp.

◆ getMoveToValue()

KSpread::MoveTo Doc::getMoveToValue ( ) const

Definition at line 1442 of file kspread_doc.cpp.

◆ getRectArea()

TQRect Doc::getRectArea ( const TQString & _sheetName)

Definition at line 1978 of file kspread_doc.cpp.

◆ getShowColHeader()

bool KSpread::Doc::getShowColHeader ( ) const
inline
Deprecated
Use showColumnHeader().

Definition at line 270 of file kspread_doc.h.

◆ getShowFormulaBar()

bool KSpread::Doc::getShowFormulaBar ( ) const
inline
Deprecated
Use showFormulaBar().

Definition at line 359 of file kspread_doc.h.

◆ getShowHorizontalScrollBar()

bool KSpread::Doc::getShowHorizontalScrollBar ( ) const
inline
Deprecated
Use showHorizontalScrollBar().

Definition at line 249 of file kspread_doc.h.

◆ getShowMessageError()

bool KSpread::Doc::getShowMessageError ( ) const
inline
Deprecated
Use showMessageError().

Definition at line 374 of file kspread_doc.h.

◆ getShowRowHeader()

bool KSpread::Doc::getShowRowHeader ( ) const
inline
Deprecated
Use showRowHeader().

Definition at line 286 of file kspread_doc.h.

◆ getShowStatusBar()

bool KSpread::Doc::getShowStatusBar ( ) const
inline
Deprecated
Use showStatusBar().

Definition at line 327 of file kspread_doc.h.

◆ getShowTabBar()

bool KSpread::Doc::getShowTabBar ( ) const
inline
Deprecated
Use showTabBar().

Definition at line 343 of file kspread_doc.h.

◆ getShowVerticalScrollBar()

bool KSpread::Doc::getShowVerticalScrollBar ( ) const
inline
Deprecated
Use showVerticalScrollBar().

Definition at line 233 of file kspread_doc.h.

◆ getTypeOfCalc()

MethodOfCalc Doc::getTypeOfCalc ( ) const

Definition at line 1457 of file kspread_doc.cpp.

◆ gridColor()

TQColor Doc::gridColor ( ) const

Returns the color of the grid.

Definition at line 1382 of file kspread_doc.cpp.

◆ increaseNumOperation()

void Doc::increaseNumOperation ( )

Definition at line 1525 of file kspread_doc.cpp.

◆ indentValue()

double Doc::indentValue ( ) const

Returns the indentation value.

Definition at line 1392 of file kspread_doc.cpp.

◆ initConfig()

void Doc::initConfig ( )

Definition at line 443 of file kspread_doc.cpp.

◆ initDoc()

bool Doc::initDoc ( InitDocFlags flags,
TQWidget * parentWidget = 0 )
virtual

Definition at line 279 of file kspread_doc.cpp.

◆ initEmpty

void Doc::initEmpty ( )
protectedvirtualslot

Definition at line 378 of file kspread_doc.cpp.

◆ insertObject()

void Doc::insertObject ( EmbeddedObject * obj)

Inserts an object to the object list.

Definition at line 2357 of file kspread_doc.cpp.

◆ insertPixmapKey()

void Doc::insertPixmapKey ( KoPictureKey key)
protected

Definition at line 2439 of file kspread_doc.cpp.

◆ insertSheet()

void Doc::insertSheet ( Sheet * sheet)

Definition at line 2275 of file kspread_doc.cpp.

◆ isLoading()

bool Doc::isLoading ( ) const
Returns
true if the document is currently loading.

Definition at line 477 of file kspread_doc.cpp.

◆ listArea()

const TQValueList< Reference > & Doc::listArea ( )

Definition at line 498 of file kspread_doc.cpp.

◆ loadAreaName()

void Doc::loadAreaName ( const TQDomElement & element)

Definition at line 2126 of file kspread_doc.cpp.

◆ loadChildren()

bool Doc::loadChildren ( KoStore * _store)
virtual

Definition at line 605 of file kspread_doc.cpp.

◆ loadConfigFromFile()

void Doc::loadConfigFromFile ( )

Definition at line 2346 of file kspread_doc.cpp.

◆ loadingInfo()

KSPLoadingInfo * Doc::loadingInfo ( ) const
Returns
the loading info

Definition at line 2305 of file kspread_doc.cpp.

◆ loadOasis()

bool Doc::loadOasis ( const TQDomDocument & doc,
KoOasisStyles & oasisStyles,
const TQDomDocument & settings,
KoStore * store )
virtual

Definition at line 966 of file kspread_doc.cpp.

◆ loadOasisAreaName()

void Doc::loadOasisAreaName ( const TQDomElement & element)

Definition at line 2063 of file kspread_doc.cpp.

◆ loadOasisCellValidation()

void Doc::loadOasisCellValidation ( const TQDomElement & body)

Definition at line 2017 of file kspread_doc.cpp.

◆ loadXML()

bool Doc::loadXML ( TQIODevice * ,
const TQDomDocument & doc )
virtual

Definition at line 1075 of file kspread_doc.cpp.

◆ locale()

TDELocale * Doc::locale ( ) const

Definition at line 398 of file kspread_doc.cpp.

◆ makeUsedPixmapList()

void Doc::makeUsedPixmapList ( )
protected

Definition at line 2445 of file kspread_doc.cpp.

◆ map()

Map * Doc::map ( ) const

Definition at line 403 of file kspread_doc.cpp.

◆ mimeType()

virtual TQCString KSpread::Doc::mimeType ( ) const
inlinevirtual

Returns the MIME type of KSpread document.

Definition at line 152 of file kspread_doc.h.

◆ newZoomAndResolution()

void Doc::newZoomAndResolution ( bool updateViews,
bool forPrint )

updates all properties after zoom changed

Definition at line 1550 of file kspread_doc.cpp.

◆ openTemplate

void Doc::openTemplate ( const TQString & file)
protectedvirtualslot

Definition at line 369 of file kspread_doc.cpp.

◆ pageBorderColor()

TQColor Doc::pageBorderColor ( ) const

Definition at line 488 of file kspread_doc.cpp.

◆ paintCellRegions()

void Doc::paintCellRegions ( TQPainter & painter,
const TQRect & viewRect,
View * view,
TQValueList< TQRect > cellRegions,
const Sheet * sheet,
bool drawCursor )

Primary entry point for painting.

Use this function to paint groups of cells

Parameters
painterthe painter object to use. This should already be initialized with the world matrix. The begin and end calls should surround this function.
viewRectthe document coordinates showing what is actually visible in the screen
viewthe view of the region – may be NULL but no selection markers can be passed in that case.
cellRegionsa list of rectangles indicating the cell ranges needing painted.
sheetthe sheet which the cells in cellRegions come from
drawCursorwhether or not to draw the selection rectangle and the choose marker

Definition at line 1728 of file kspread_doc.cpp.

◆ paintContent() [1/2]

void Doc::paintContent ( TQPainter & painter,
const TQRect & rect,
bool transparent,
Sheet * sheet,
bool drawCursor = true )

Definition at line 1678 of file kspread_doc.cpp.

◆ paintContent() [2/2]

void Doc::paintContent ( TQPainter & painter,
const TQRect & rect,
bool transparent = false,
double zoomX = 1.0,
double zoomY = 1.0 )
virtual

Definition at line 1633 of file kspread_doc.cpp.

◆ parser()

ValueParser * Doc::parser ( ) const

Definition at line 413 of file kspread_doc.cpp.

◆ pictureCollection()

KoPictureCollection * Doc::pictureCollection ( )

Definition at line 2377 of file kspread_doc.cpp.

◆ redo()

void Doc::redo ( )

Redoes the last undo.

Definition at line 1582 of file kspread_doc.cpp.

◆ refreshInterface

void Doc::refreshInterface ( )
slot

Definition at line 2175 of file kspread_doc.cpp.

◆ refreshLocale()

void Doc::refreshLocale ( )

Definition at line 2180 of file kspread_doc.cpp.

◆ registerPlugin()

void Doc::registerPlugin ( Plugin * plugin)

Definition at line 1310 of file kspread_doc.cpp.

◆ removeArea()

void Doc::removeArea ( const TQString & name)

Definition at line 1954 of file kspread_doc.cpp.

◆ repaint() [1/3]

void Doc::repaint ( const KoRect & rect)

Definition at line 2407 of file kspread_doc.cpp.

◆ repaint() [2/3]

void Doc::repaint ( const TQRect & rect)

Definition at line 2382 of file kspread_doc.cpp.

◆ repaint() [3/3]

void Doc::repaint ( EmbeddedObject * obj)

Definition at line 2396 of file kspread_doc.cpp.

◆ saveAreaName()

TQDomElement Doc::saveAreaName ( TQDomDocument & doc)

Definition at line 1991 of file kspread_doc.cpp.

◆ saveChildren()

bool Doc::saveChildren ( KoStore * _store)
protectedvirtual

Overloaded function of KoDocument.

Definition at line 515 of file kspread_doc.cpp.

◆ saveConfig()

void Doc::saveConfig ( )

Definition at line 433 of file kspread_doc.cpp.

◆ saveOasis()

bool Doc::saveOasis ( KoStore * store,
KoXmlWriter * manifestWriter )
virtual

Definition at line 610 of file kspread_doc.cpp.

◆ saveOasisAreaName()

void Doc::saveOasisAreaName ( KoXmlWriter & xmlWriter)

Definition at line 2043 of file kspread_doc.cpp.

◆ saveOasisDocumentStyles()

void Doc::saveOasisDocumentStyles ( KoStore * store,
KoGenStyles & mainStyles ) const

Definition at line 879 of file kspread_doc.cpp.

◆ saveOasisHelper()

bool Doc::saveOasisHelper ( KoStore * store,
KoXmlWriter * manifestWriter,
SaveFlag saveFlag,
TQString * plainText = 0,
KoPicture * picture = 0 )

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.

Parameters
storethe KoStore to save into
manifestWriterpointer to a koxmlwriter to add entries to the manifest
saveFlageither the whole document, or only the selected text/objects.
plainTextmust be set when saveFlag==SaveSelected. It returns the plain text format of the saved data, when available.
picturemust be set when saveFlag==SaveSelected. It returns the selected picture, when exactly one picture was selected.

Definition at line 619 of file kspread_doc.cpp.

◆ saveXML()

TQDomDocument Doc::saveXML ( )
virtual

Definition at line 533 of file kspread_doc.cpp.

◆ savingWholeDocument()

bool Doc::savingWholeDocument ( )

Definition at line 2456 of file kspread_doc.cpp.

◆ setCompletionMode()

void Doc::setCompletionMode ( TDEGlobalSettings::Completion _complMode)

Definition at line 1387 of file kspread_doc.cpp.

◆ setDisplaySheet()

void Doc::setDisplaySheet ( Sheet * _Sheet)

Definition at line 2300 of file kspread_doc.cpp.

◆ setDontCheckTitleCase()

void Doc::setDontCheckTitleCase ( bool _b)

Definition at line 1515 of file kspread_doc.cpp.

◆ setDontCheckUpperWord()

void Doc::setDontCheckUpperWord ( bool _b)

Definition at line 1505 of file kspread_doc.cpp.

◆ setGridColor()

void Doc::setGridColor ( const TQColor & color)

Sets the color of the grid.

Definition at line 1377 of file kspread_doc.cpp.

◆ setIndentValue()

void Doc::setIndentValue ( double val)

Sets the indentation value.

Definition at line 1397 of file kspread_doc.cpp.

◆ setKSpellConfig()

void Doc::setKSpellConfig ( KSpellConfig _tdespell)

get custom tdespell config

Definition at line 1462 of file kspread_doc.cpp.

◆ setMoveToValue()

void Doc::setMoveToValue ( KSpread::MoveTo _moveTo)

Definition at line 1447 of file kspread_doc.cpp.

◆ setShowColHeader()

void KSpread::Doc::setShowColHeader ( bool b)
inline
Deprecated
Use setShowColumnHeader().

Definition at line 265 of file kspread_doc.h.

◆ setShowColumnHeader()

void Doc::setShowColumnHeader ( bool b)

If b is true, column header is visible, otherwise it will be hidden.

Definition at line 1357 of file kspread_doc.cpp.

◆ setShowFormulaBar()

void Doc::setShowFormulaBar ( bool b)

If b is true, formula bar is visible, otherwise it will be hidden.

Definition at line 1422 of file kspread_doc.cpp.

◆ setShowHorizontalScrollBar()

void Doc::setShowHorizontalScrollBar ( bool b)

If b is true, horizontal scrollbar is visible, otherwise it will be hidden.

Definition at line 1342 of file kspread_doc.cpp.

◆ setShowMessageError()

void Doc::setShowMessageError ( bool b)

If b is true, an error message will pop up whenever error occurs.

Definition at line 1432 of file kspread_doc.cpp.

◆ setShowRowHeader()

void Doc::setShowRowHeader ( bool b)

If b is true, row header is visible, otherwise it will be hidden.

Definition at line 1367 of file kspread_doc.cpp.

◆ setShowStatusBar()

void Doc::setShowStatusBar ( bool b)

If b is true, status bar is visible, otherwise it will be hidden.

Definition at line 1402 of file kspread_doc.cpp.

◆ setShowTabBar()

void Doc::setShowTabBar ( bool b)

If b is true, tab bar is visible, otherwise it will be hidden.

Definition at line 1412 of file kspread_doc.cpp.

◆ setShowVerticalScrollBar()

void Doc::setShowVerticalScrollBar ( bool b)

If b is true, vertical scrollbar is visible, otherwise it will be hidden.

Definition at line 1332 of file kspread_doc.cpp.

◆ setTypeOfCalc()

void Doc::setTypeOfCalc ( MethodOfCalc _calc)

Method of calc.

Definition at line 1452 of file kspread_doc.cpp.

◆ setUndoRedoLimit()

void Doc::setUndoRedoLimit ( int _val)

Definition at line 2433 of file kspread_doc.cpp.

◆ setZoomAndResolution()

void Doc::setZoomAndResolution ( int zoom,
int dpiX,
int dpiY )
virtual

Change the zoom factor to z (e.g.

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.

Definition at line 1545 of file kspread_doc.cpp.

◆ showColumnHeader()

bool Doc::showColumnHeader ( ) const

Returns true if column header is visible.

Definition at line 1362 of file kspread_doc.cpp.

◆ showFormulaBar()

bool Doc::showFormulaBar ( ) const

Returns true if formula bar is visible.

Definition at line 1427 of file kspread_doc.cpp.

◆ showHorizontalScrollBar()

bool Doc::showHorizontalScrollBar ( ) const

Returns true if horizontal scroll bar is visible.

Definition at line 1347 of file kspread_doc.cpp.

◆ showMessageError()

bool Doc::showMessageError ( ) const

Returns true if error message should pop up whenever error occurs.

Definition at line 1437 of file kspread_doc.cpp.

◆ showRowHeader()

bool Doc::showRowHeader ( ) const

Returns true if row header is visible.

Definition at line 1372 of file kspread_doc.cpp.

◆ showStatusBar()

bool Doc::showStatusBar ( ) const

Returns true if status bar is visible.

Definition at line 1407 of file kspread_doc.cpp.

◆ showTabBar()

bool Doc::showTabBar ( ) const

Returns true if tab bar is visible.

Definition at line 1417 of file kspread_doc.cpp.

◆ showVerticalScrollBar()

bool Doc::showVerticalScrollBar ( ) const

Returns true if vertical scroll bar is visible.

Definition at line 1337 of file kspread_doc.cpp.

◆ sig_refreshLocale

void KSpread::Doc::sig_refreshLocale ( )
signal

Emitted if we update to locale system.

◆ sig_refreshView

void KSpread::Doc::sig_refreshView ( )
signal

Emitted if all interfaces have to be updated.

◆ sig_updateView

void KSpread::Doc::sig_updateView ( )
signal

Emitted if all views have to be updated.

◆ spellListIgnoreAll()

TQStringList Doc::spellListIgnoreAll ( ) const

Definition at line 1540 of file kspread_doc.cpp.

◆ styleManager()

StyleManager * Doc::styleManager ( ) const

Definition at line 408 of file kspread_doc.cpp.

◆ supportedSpecialFormats()

int Doc::supportedSpecialFormats ( ) const
virtual

Definition at line 520 of file kspread_doc.cpp.

◆ syntaxVersion()

int Doc::syntaxVersion ( ) const

Returns the syntax version of the currently opened file.

Definition at line 472 of file kspread_doc.cpp.

◆ takeSheet()

void Doc::takeSheet ( Sheet * sheet)

Definition at line 2282 of file kspread_doc.cpp.

◆ undo()

void Doc::undo ( )

Undoes the last operation.

Definition at line 1575 of file kspread_doc.cpp.

◆ undoLock()

void Doc::undoLock ( )

Locks the undo buffer.

Definition at line 1599 of file kspread_doc.cpp.

◆ undoLocked()

bool Doc::undoLocked ( ) const

Returns true if undo buffer is locked.

Definition at line 1609 of file kspread_doc.cpp.

◆ undoRedoLimit()

int Doc::undoRedoLimit ( ) const

Definition at line 2428 of file kspread_doc.cpp.

◆ undoUnlock()

void Doc::undoUnlock ( )

Releases lock of undo buffer.

Definition at line 1604 of file kspread_doc.cpp.

◆ unitName()

TQString Doc::unitName ( ) const

Returns the name of the unit used to display margins.

For example, if unit() returns KoUnit::U_MM, then this functions return "mm".

Definition at line 1520 of file kspread_doc.cpp.

◆ updateBorderButton()

void Doc::updateBorderButton ( )

Definition at line 2268 of file kspread_doc.cpp.

Member Data Documentation

◆ m_savedDocParts

SavedDocParts KSpread::Doc::m_savedDocParts
protected

Definition at line 705 of file kspread_doc.h.


The documentation for this class was generated from the following files: