StarObject Class Reference

an object corresponding to an OLE directory More...

#include <StarObject.hxx>

Inheritance diagram for StarObject:
StarObjectChart StarObjectDraw StarObjectMath StarObjectModel StarObjectNumericRuler StarObjectPageStyle StarObjectSmallGraphic StarObjectSmallText StarObjectSpreadsheet StarObjectText

Public Member Functions

 StarObject (char const *passwd, std::shared_ptr< STOFFOLEParser > &oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > &directory)
 constructor More...
 
virtual ~StarObject ()
 destructor More...
 
bool parse ()
 try to parse data More...
 
STOFFDocument::Kind getDocumentKind () const
 returns the document kind More...
 
const char * getPassword () const
 returns the document password (the password given by the user) More...
 
std::shared_ptr< STOFFOLEParser::OleDirectorygetOLEDirectory ()
 returns the object directory More...
 
std::shared_ptr< StarAttributeManagergetAttributeManager ()
 returns the attribute manager More...
 
std::shared_ptr< StarFormatManagergetFormatManager ()
 returns the format manager More...
 
const librevenge::RVNGPropertyList & getMetaData () const
 returns the meta data (filled by readSfxDocumentInformation) More...
 
librevenge::RVNGString getUserNameMetaData (int i) const
 returns the ith user meta data More...
 
void cleanPools ()
 clean each pool More...
 
std::shared_ptr< StarItemPoolgetNewItemPool (StarItemPool::Type type)
 returns a new item pool for this document More...
 
std::shared_ptr< StarItemPoolfindItemPool (StarItemPool::Type type, bool isInside)
 check if a pool corresponding to a given type is opened if so returned it. More...
 
std::shared_ptr< StarItemPoolgetCurrentPool (bool onlyInside=true)
 returns the current all/inside pool More...
 
bool readPersistData (StarZone &zone, long endPos)
 try to read persist data More...
 
bool readSfxStyleSheets (STOFFInputStreamPtr input, std::string const &name)
 try to read a spreadshet style zone: SfxStyleSheets More...
 
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 More...
 

Protected Member Functions

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

Protected Attributes

const char * m_password
 the document password More...
 
std::shared_ptr< STOFFOLEParserm_oleParser
 the ole parser More...
 
std::shared_ptr< STOFFOLEParser::OleDirectorym_directory
 the directory More...
 
std::shared_ptr< StarObjectInternal::Statem_state
 the state More...
 
librevenge::RVNGPropertyList m_metaData
 the meta data More...
 

Private Member Functions

 StarObject (StarObject const &orig)=delete
 
StarObjectoperator= (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

◆ ~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)
privatedelete

Member Function Documentation

◆ cleanPools()

◆ findItemPool()

◆ getAttributeManager()

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

returns the attribute manager

Referenced by StarItemPoolInternal::State::getDefaultAttribute(), and StarItemPool::readStyles().

◆ getCurrentPool()

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

returns the current all/inside pool

◆ getDocumentKind()

◆ getFormatManager()

◆ getMetaData()

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

returns the meta data (filled by readSfxDocumentInformation)

◆ getNewItemPool()

◆ getOLEDirectory()

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

◆ getPassword()

◆ getUserNameMetaData()

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

returns the ith user meta data

◆ operator=()

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

◆ parse()

◆ readItemSet()

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

◆ 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(), and parse().

◆ m_metaData

librevenge::RVNGPropertyList StarObject::m_metaData
protected

the meta data

Referenced by getMetaData(), and readSfxDocumentInformation().

◆ m_oleParser

std::shared_ptr<STOFFOLEParser> StarObject::m_oleParser
protected

◆ m_password

const char* StarObject::m_password
protected

the document password

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

◆ m_state


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

Generated on Mon Jan 20 2020 23:02:19 for libstaroffice by doxygen 1.8.16