StarObject Class Reference

an object corresponding to an OLE directory More...

`#include <StarObject.hxx>`

Inheritance diagram for StarObject:

## Public Member Functions

| StarObject (char const *passwd, std::shared_ptr< STOFFOLEParser > &oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > &directory)
| constructor
virtual | ~StarObject ()
| destructor
bool | parse ()
| try to parse data
STOFFDocument::Kind | getDocumentKind () const
| returns the document kind
char const * | getPassword () const
| returns the document password (the password given by the user)
std::shared_ptr< STOFFOLEParser::OleDirectory > | getOLEDirectory ()
| returns the object directory
std::shared_ptr< StarAttributeManager > | getAttributeManager ()
| returns the attribute manager
std::shared_ptr< StarFormatManager > | getFormatManager ()
| returns the format manager
librevenge::RVNGPropertyList const & | getMetaData () const
| returns the meta data (filled by readSfxDocumentInformation)
librevenge::RVNGString | getUserNameMetaData (int i) const
| returns the ith user meta data
void | cleanPools ()
| clean each pool
std::shared_ptr< StarItemPool > | getNewItemPool (StarItemPool::Type type)
| returns a new item pool for this document
std::shared_ptr< StarItemPool > | findItemPool (StarItemPool::Type type, bool isInside)
| check if a pool corresponding to a given type is opened if so returned it.
std::shared_ptr< StarItemPool > | getCurrentPool (bool onlyInside=true)
| returns the current all/inside pool
bool | readPersistData (StarZone &zone, long endPos)
| try to read persist data
bool | readSfxStyleSheets (STOFFInputStreamPtr input, std::string const &name)
| try to read a spreadshet style zone: SfxStyleSheets
bool | readItemSet (StarZone &zone, std::vector< STOFFVec2i > const &limits, long endPos, StarItemSet &itemSet, StarItemPool *pool=nullptr, bool isDirect=false)
| try to read a list of item

## Protected Member Functions

bool | readPersistElements (STOFFInputStreamPtr input, std::string const &name)
| the "persist elements" small ole: the list of object
bool | readSfxDocumentInformation (STOFFInputStreamPtr input, std::string const &name)
| try to read the document information : "SfxDocumentInformation"
bool | readSfxPreview (STOFFInputStreamPtr input, std::string const &name)
| try to read the preview : "SfxPreview"
bool | readSfxWindows (STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
| try to read the windows information : "SfxWindows"
bool | readStarFrameworkConfigFile (STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
| try to read the "Star Framework Config File"
bool | readStarFrameworkConfigItem (STOFFEntry &entry, STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
| try to read an item in a "Star Framework Config File"
| StarObject (StarObject const &orig, bool duplicateState)
| copy constructor

## Protected Attributes

char const * | m_password
| the document password
std::shared_ptr< STOFFOLEParser > | m_oleParser
| the ole parser
std::shared_ptr< STOFFOLEParser::OleDirectory > | m_directory
| the directory
std::shared_ptr< StarObjectInternal::State > | m_state
| the state
librevenge::RVNGPropertyList | m_metaData
| the meta data

## Private Member Functions

| StarObject (StarObject const &orig)=delete
StarObject & | operator= (StarObject const &orig)=delete

## Detailed Description

an object corresponding to an OLE directory

## Constructor & Destructor Documentation

## StarObject() [1/3]

StarObject::StarObject | ( | char const * | passwd,
|  | std::shared_ptr< STOFFOLEParser > & | oleParser,
|  | std::shared_ptr< STOFFOLEParser::OleDirectory > & | directory )

constructor

Referenced by operator=(), StarObjectSmallGraphic::send(), StarObject(), StarObject(), StarObjectChart::StarObjectChart(), StarObjectDraw::StarObjectDraw(), StarObjectMath::StarObjectMath(), StarObjectModel::StarObjectModel(), StarObjectNumericRuler::StarObjectNumericRuler(), StarObjectPageStyle::StarObjectPageStyle(), StarObjectSmallGraphic::StarObjectSmallGraphic(), StarObjectSmallText::StarObjectSmallText(), StarObjectSpreadsheet::StarObjectSpreadsheet(), and StarObjectText::StarObjectText().

## ~StarObject()

StarObject::~StarObject | ( |  | ) |

virtual

destructor

## StarObject() [2/3]

StarObject::StarObject | ( | StarObject const & | orig,
|  | bool | duplicateState )

protected

copy constructor

## StarObject() [3/3]

StarObject::StarObject | ( | StarObject const & | orig | ) |

private delete

## Member Function Documentation

## cleanPools()

void StarObject::cleanPools | ( |  | ) |

clean each pool

Referenced by StarObjectChart::~StarObjectChart(), StarObjectDraw::~StarObjectDraw(), StarObjectSpreadsheet::~StarObjectSpreadsheet(), and StarObjectText::~StarObjectText().

## findItemPool()

std::shared_ptr< StarItemPool > StarObject::findItemPool | ( | StarItemPool::Type | type,
|  | bool | isInside )

check if a pool corresponding to a given type is opened if so returned it.

Note
  if isInside is set only look for inside pool

Referenced by StarObjectSmallText::read(), StarObjectSpreadsheet::readSCColumn(), StarObjectChart::readSCHAttributes(), StarObjectSmallGraphic::readSVDRObjectAttrib(), StarObjectSmallGraphic::readSVDRObjectCaption(), StarObjectSmallGraphic::readSVDRObjectCircle(), StarObjectSmallGraphic::readSVDRObjectEdge(), StarObjectSmallGraphic::readSVDRObjectGraph(), StarObjectSmallGraphic::readSVDRObjectMeasure(), StarObjectSmallGraphic::readSVDRObjectPath(), StarObjectSmallText::send(), StarObjectSpreadsheet::sendCell(), StarObjectModel::sendMasterPages(), StarObjectText::sendPages(), StarObjectModel::updatePageSpans(), StarObjectPageStyle::updatePageSpans(), StarObjectSpreadsheet::updatePageSpans(), and StarObjectText::updatePageSpans().

## getAttributeManager()

std::shared_ptr< StarAttributeManager > StarObject::getAttributeManager | ( |  | ) |

returns the attribute manager

Referenced by StarItemPool::readStyles().

## getCurrentPool()

std::shared_ptr< StarItemPool > StarObject::getCurrentPool | ( | bool | onlyInside = true | ) |

returns the current all/inside pool

## getDocumentKind()

STOFFDocument::Kind StarObject::getDocumentKind | ( |  | ) | const

returns the document kind

Referenced by SDAParser::createZones(), SDCParser::createZones(), SDWParser::createZones(), StarObjectText::readDrawingLayer(), readSfxStyleSheets(), StarObjectChart::readSfxStyleSheets(), StarObjectDraw::readSfxStyleSheets(), StarObjectSpreadsheet::readSfxStyleSheets(), and StarObjectText::readSfxStyleSheets().

## getFormatManager()

std::shared_ptr< StarFormatManager > StarObject::getFormatManager | ( |  | ) |

returns the format manager

Referenced by StarObjectPageStyle::read(), StarObjectSpreadsheet::readCalcDocument(), StarObjectChart::readSCHAttributes(), StarObjectText::readSWContent(), StarObjectText::readSWSection(), StarObjectText::readSWTextZone(), StarObjectText::readWriterDocument(), and StarObjectSpreadsheet::sendCell().

## getMetaData()

librevenge::RVNGPropertyList const & StarObject::getMetaData | ( |  | ) | const

inline

returns the meta data (filled by readSfxDocumentInformation)

## getNewItemPool()

std::shared_ptr< StarItemPool > StarObject::getNewItemPool | ( | StarItemPool::Type | type | ) |

returns a new item pool for this document

Referenced by parse(), StarObjectSmallText::read(), StarObjectSpreadsheet::readCalcDocument(), StarObjectChart::readChartDocument(), StarObjectText::readDrawingLayer(), StarObjectSpreadsheet::readSCColumn(), StarObjectChart::readSCHAttributes(), StarObjectModel::readSdrPage(), readSfxStyleSheets(), StarObjectChart::readSfxStyleSheets(), StarObjectDraw::readSfxStyleSheets(), StarObjectSpreadsheet::readSfxStyleSheets(), StarObjectText::readSfxStyleSheets(), StarObjectSmallGraphic::readSVDRObjectAttrib(), StarObjectSmallGraphic::readSVDRObjectCaption(), StarObjectSmallGraphic::readSVDRObjectCircle(), StarObjectSmallGraphic::readSVDRObjectEdge(), StarObjectSmallGraphic::readSVDRObjectGraph(), and StarObjectSmallGraphic::readSVDRObjectMeasure().

## getOLEDirectory()

std::shared_ptr< STOFFOLEParser::OleDirectory > StarObject::getOLEDirectory | ( |  | ) |

inline

returns the object directory

Referenced by StarObjectChart::parse(), StarObjectDraw::parse(), StarObjectMath::parse(), StarObjectSpreadsheet::parse(), and StarObjectText::parse().

## getPassword()

char const * StarObject::getPassword | ( |  | ) | const

inline

returns the document password (the password given by the user)

Referenced by StarObjectText::parse(), StarObjectSpreadsheet::readCalcDocument(), StarObjectChart::readChartDocument(), StarObjectDraw::readDrawDocument(), StarObjectText::readDrawingLayer(), readSfxStyleSheets(), StarObjectChart::readSfxStyleSheets(), StarObjectDraw::readSfxStyleSheets(), StarObjectSpreadsheet::readSfxStyleSheets(), StarObjectText::readSfxStyleSheets(), and StarObjectText::readWriterDocument().

## getUserNameMetaData()

librevenge::RVNGString StarObject::getUserNameMetaData | ( | int | i | ) | const

returns the ith user meta data

## operator=()

StarObject & StarObject::operator= | ( | StarObject const & | orig | ) |

private delete

## parse()

bool StarObject::parse | ( |  | ) |

try to parse data

Referenced by StarObjectChart::parse(), StarObjectDraw::parse(), StarObjectMath::parse(), StarObjectSpreadsheet::parse(), and StarObjectText::parse().

## readItemSet()

bool StarObject::readItemSet | ( | StarZone & | zone,
|  | std::vector< STOFFVec2i > const & | limits,
|  | long | endPos,
|  | StarItemSet & | itemSet,
|  | StarItemPool * | pool = nullptr,
|  | bool | isDirect = false )

try to read a list of item

Referenced by StarObjectSmallText::read(), StarObjectChart::readSCHAttributes(), and StarItemPool::readStyles().

## readPersistData()

bool StarObject::readPersistData | ( | StarZone & | zone,
|  | long | endPos )

try to read persist data

Referenced by readPersistElements().

## readPersistElements()

bool StarObject::readPersistElements | ( | STOFFInputStreamPtr | input,
|  | std::string const & | name )

protected

the "persist elements" small ole: the list of object

Referenced by parse().

## readSfxDocumentInformation()

bool StarObject::readSfxDocumentInformation | ( | STOFFInputStreamPtr | input,
|  | std::string const & | name )

protected

try to read the document information : "SfxDocumentInformation"

Referenced by parse().

## readSfxPreview()

bool StarObject::readSfxPreview | ( | STOFFInputStreamPtr | input,
|  | std::string const & | name )

protected

try to read the preview : "SfxPreview"

Referenced by parse().

## readSfxStyleSheets()

bool StarObject::readSfxStyleSheets | ( | STOFFInputStreamPtr | input,
|  | std::string const & | name )

try to read a spreadshet style zone: SfxStyleSheets

## readSfxWindows()

bool StarObject::readSfxWindows | ( | STOFFInputStreamPtr | input,
|  | libstoff::DebugFile & | ascii )

protected

try to read the windows information : "SfxWindows"

Referenced by parse().

## readStarFrameworkConfigFile()

bool StarObject::readStarFrameworkConfigFile | ( | STOFFInputStreamPtr | input,
|  | libstoff::DebugFile & | ascii )

protected

try to read the "Star Framework Config File"

Referenced by parse().

## readStarFrameworkConfigItem()

bool StarObject::readStarFrameworkConfigItem | ( | STOFFEntry & | entry,
|  | STOFFInputStreamPtr | input,
|  | libstoff::DebugFile & | ascii )

protected

try to read an item in a "Star Framework Config File"

Referenced by readStarFrameworkConfigFile().

## Member Data Documentation

## m_directory

std::shared_ptr<STOFFOLEParser::OleDirectory> StarObject::m_directory

protected

the directory

Referenced by getDocumentKind(), getOLEDirectory(), parse(), StarObject(), and StarObject().

## m_metaData

librevenge::RVNGPropertyList StarObject::m_metaData

protected

the meta data

Referenced by getMetaData(), readSfxDocumentInformation(), StarObject(), and StarObject().

## m_oleParser

std::shared_ptr<STOFFOLEParser> StarObject::m_oleParser

protected

the ole parser

Referenced by StarObjectSmallGraphic::readSVDRObjectOLE(), StarObjectText::readSWGraphNode(), StarObjectText::readSWOLENode(), StarObject(), and StarObject().

## m_password

char const* StarObject::m_password

protected

the document password

Referenced by getPassword(), parse(), readPersistElements(), readSfxPreview(), StarObject(), and StarObject().

## m_state

std::shared_ptr<StarObjectInternal::State> StarObject::m_state

protected

the state

Referenced by cleanPools(), findItemPool(), getAttributeManager(), getCurrentPool(), getFormatManager(), getNewItemPool(), getUserNameMetaData(), readSfxDocumentInformation(), StarObject(), and StarObject().

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

- StarObject.hxx
- StarObject.cxx