kspread

KSpread::StyleManager Class Reference

List of all members.

Detailed Description

Definition at line 41 of file kspread_style_manager.h.


Public Member Functions

 StyleManager ()
 ~StyleManager ()
QDomElement save (QDomDocument &doc)
bool loadXML (QDomElement const &styles)
void saveOasis (KoGenStyles &mainStyles)
void loadOasisStyleTemplate (KoOasisStyles &oasisStyles)
CustomStyledefaultStyle () const
CustomStylestyle (QString const &name) const
bool checkCircle (QString const &name, QString const &parent)
bool validateStyleName (QString const &name, CustomStyle *style)
void changeName (QString const &oldName, QString const &newName)
void takeStyle (CustomStyle *style)
void createBuiltinStyles ()
QStringList styleNames () const
int count () const
QDict< StyleloadOasisAutoStyles (KoOasisStyles &oasisStyles)
void releaseUnusedAutoStyles (QDict< Style > autoStyles)

Friends

class StyleDlg
class View

Member Function Documentation

QDict< Style > StyleManager::loadOasisAutoStyles ( KoOasisStyles &  oasisStyles  ) 

Loads OpenDocument auto styles.

The auto styles are preloaded, because an auto style could be shared among cells. So, preloading prevents a multiple loading of the same auto style. This method is called before the cell loading process.

Parameters:
oasisStyles repository of styles
Returns:
a hash of styles with the OpenDocument internal name as key

Definition at line 353 of file kspread_style_manager.cc.

void StyleManager::releaseUnusedAutoStyles ( QDict< Style autoStyles  ) 

Releases unused auto styles.

If there are auto styles, which are not used by any cell (uncommon case) this method makes sure, that these get deleted. This method is called after the cell loading porcess.

Parameters:
autoStyles a hash of styles with the OpenDocument internal name as key
See also:
loadOasisAutoStyles

Definition at line 384 of file kspread_style_manager.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys