kspread

Old native file format

Classes and methods related to the KSpread's old native file format loading/saving. More...

Namespaces

namespace  KSpread::NativeFormat

Functions

QDomElement KSpread::NativeFormat::createElement (const QString &tagname, const QPen &pen, QDomDocument &doc)
QDomElement KSpread::NativeFormat::createElement (const QString &tagName, const QFont &font, QDomDocument &doc)
void KSpread::Map::deleteLoadingInfo ()
bool KSpread::Map::isLoading () const
bool KSpread::Cell::load (const KoXmlElement &cell, int _xshift, int _yshift, Paste::Mode pm=Paste::Normal, Paste::Operation op=Paste::OverWrite, bool paste=false)
bool KSpread::Sheet::loadChildren (KoStore *_store)
void KSpread::Conditions::loadConditions (const StyleManager *styleManager, const KoXmlElement &element)
LoadingInfoKSpread::Map::loadingInfo () const
bool KSpread::Validity::loadXML (Cell *const cell, const KoXmlElement &validityElement)
bool KSpread::Sheet::loadXML (const KoXmlElement &)
virtual bool KSpread::Doc::loadXML (const KoXmlDocument &doc, KoStore *store)
void KSpread::NamedAreaManager::loadXML (const KoXmlElement &element)
bool KSpread::Map::loadXML (const KoXmlElement &mymap)
QDomElement KSpread::Map::save (QDomDocument &doc)
QDomElement KSpread::Cell::save (QDomDocument &doc, int xOffset=0, int yOffset=0, bool era=false)
bool KSpread::Sheet::saveChildren (KoStore *_store, const QString &_path)
QDomElement KSpread::Conditions::saveConditions (QDomDocument &doc) const
QDomElement KSpread::Validity::saveXML (QDomDocument &doc) const
QDomElement KSpread::Sheet::saveXML (QDomDocument &)
virtual QDomDocument KSpread::Doc::saveXML ()
QDomElement KSpread::NamedAreaManager::saveXML (QDomDocument &doc) const
QDate KSpread::Cell::toDate (const KoXmlElement &element)
QFont KSpread::NativeFormat::toFont (KoXmlElement &element)
QPen KSpread::NativeFormat::toPen (KoXmlElement &element)
QTime KSpread::Cell::toTime (const KoXmlElement &element)

Detailed Description

Classes and methods related to the KSpread's old native file format loading/saving.


Function Documentation

QDomElement KSpread::NativeFormat::createElement ( const QString tagname,
const QPen pen,
QDomDocument doc 
)

Definition at line 82 of file Util.cpp.

QDomElement KSpread::NativeFormat::createElement ( const QString tagName,
const QFont font,
QDomDocument doc 
)

Definition at line 62 of file Util.cpp.

void Map::deleteLoadingInfo (  )  [inherited]

Deletes the loading info.

Called after loading is complete.

Definition at line 847 of file Map.cpp.

bool Map::isLoading (  )  const [inherited]
Returns:
true if the document is currently loading.

Definition at line 834 of file Map.cpp.

bool Cell::load ( const KoXmlElement &  cell,
int  _xshift,
int  _yshift,
Paste::Mode  pm = Paste::Normal,
Paste::Operation  op = Paste::OverWrite,
bool  paste = false 
) [inherited]

Definition at line 1746 of file Cell.cpp.

bool KSpread::Sheet::loadChildren ( KoStore *  _store  )  [inherited]

Loads a children.

Definition at line 4090 of file Sheet.cpp.

void Conditions::loadConditions ( const StyleManager styleManager,
const KoXmlElement &  element 
) [inherited]

Takes a parsed DOM element and recreates the conditions structure out of it.

Definition at line 617 of file Condition.cpp.

LoadingInfo * Map::loadingInfo (  )  const [inherited]

Creates the loading info, if it does not exist yet.

Returns:
the loading info

Definition at line 839 of file Map.cpp.

bool Validity::loadXML ( Cell *const   cell,
const KoXmlElement &  validityElement 
) [inherited]

Loads validity checks.

Definition at line 95 of file Validity.cpp.

bool KSpread::Sheet::loadXML ( const KoXmlElement &  sheet  )  [inherited]

Loads the sheet and all it's children in XML format.

Definition at line 3738 of file Sheet.cpp.

bool Doc::loadXML ( const KoXmlDocument &  doc,
KoStore *  store 
) [virtual, inherited]

Main loading method.

Definition at line 524 of file Doc.cpp.

void NamedAreaManager::loadXML ( const KoXmlElement &  element  )  [inherited]

Definition at line 240 of file NamedAreaManager.cpp.

bool Map::loadXML ( const KoXmlElement &  mymap  )  [inherited]

Definition at line 644 of file Map.cpp.

QDomElement Map::save ( QDomDocument doc  )  [inherited]

Definition at line 457 of file Map.cpp.

QDomElement Cell::save ( QDomDocument doc,
int  xOffset = 0,
int  yOffset = 0,
bool  era = false 
) [inherited]

Save this cell.

Parameters:
doc document to save cell in
xOffset x offset
yOffset y offset
era set this to true if you want to encode relative references as absolutely (they will be switched back to relative references during decoding) - is used for cutting to clipboard Usually this is false, to only store the properties explicitly set.

Definition at line 919 of file Cell.cpp.

bool KSpread::Sheet::saveChildren ( KoStore *  _store,
const QString _path 
) [inherited]

Saves a children.

Definition at line 4181 of file Sheet.cpp.

QDomElement Conditions::saveConditions ( QDomDocument doc  )  const [inherited]

Saves the conditions to a DOM tree structure.

Returns:
the DOM element for the conditions.

Definition at line 416 of file Condition.cpp.

QDomElement Validity::saveXML ( QDomDocument doc  )  const [inherited]

Saves validity checks.

Definition at line 192 of file Validity.cpp.

QDomElement KSpread::Sheet::saveXML ( QDomDocument dd  )  [inherited]

Saves the sheet and all it's children in XML format.

Definition at line 2002 of file Sheet.cpp.

QDomDocument Doc::saveXML (  )  [virtual, inherited]

Main saving method.

Definition at line 294 of file Doc.cpp.

QDomElement NamedAreaManager::saveXML ( QDomDocument doc  )  const [inherited]

Definition at line 280 of file NamedAreaManager.cpp.

QDate Cell::toDate ( const KoXmlElement &  element  )  [inherited]

Decodes a string into a date value.

Definition at line 2180 of file Cell.cpp.

QFont KSpread::NativeFormat::toFont ( KoXmlElement &  element  ) 

Definition at line 91 of file Util.cpp.

QPen KSpread::NativeFormat::toPen ( KoXmlElement &  element  ) 

Definition at line 131 of file Util.cpp.

QTime Cell::toTime ( const KoXmlElement &  element  )  [inherited]

Decodes a string into a time value.

Definition at line 2162 of file Cell.cpp.