StarObject Class Reference

an object corresponding to an OLE directory More...

#include <StarObject.hxx>

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

List of all members.

Public Member Functions

 StarObject (char const *passwd, shared_ptr< STOFFOLEParser > oleParser, 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)
shared_ptr
< STOFFOLEParser::OleDirectory
getOLEDirectory ()
 returns the object directory
shared_ptr< StarAttributeManagergetAttributeManager ()
 returns the attribute manager
shared_ptr< StarFormatManagergetFormatManager ()
 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
shared_ptr< StarItemPoolgetNewItemPool (StarItemPool::Type type)
 returns a new item pool for this document
shared_ptr< StarItemPoolfindItemPool (StarItemPool::Type type, bool isInside)
 check if a pool corresponding to a given type is opened if so returned it.
shared_ptr< StarItemPoolgetCurrentPool (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=0, 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"
 StarObject (StarObject const &orig, bool duplicateState)
 copy constructor

Protected Attributes

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

Private Member Functions

 StarObject (StarObject const &orig)
StarObjectoperator= (StarObject const &orig)

Detailed Description

an object corresponding to an OLE directory


Constructor & Destructor Documentation

StarObject::StarObject ( char const *  passwd,
shared_ptr< STOFFOLEParser oleParser,
shared_ptr< STOFFOLEParser::OleDirectory directory 
)

constructor

StarObject::~StarObject ( ) [virtual]

destructor

StarObject::StarObject ( StarObject const &  orig,
bool  duplicateState 
) [protected]

copy constructor

StarObject::StarObject ( StarObject const &  orig) [private]

Member Function Documentation

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

returns the current all/inside pool

Referenced by StarObjectChart::readSCHAttributes().

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

returns the meta data (filled by readSfxDocumentInformation)

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

returns the ith user meta data

StarObject& StarObject::operator= ( StarObject const &  orig) [private]

try to parse data

Reimplemented in StarObjectText, StarObjectSpreadsheet, StarObjectDraw, and StarObjectChart.

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

try to read persist data

Referenced by readPersistElements().

bool StarObject::readPersistElements ( STOFFInputStreamPtr  input,
std::string const &  name 
) [protected]

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

Referenced by parse().

bool StarObject::readSfxDocumentInformation ( STOFFInputStreamPtr  input,
std::string const &  name 
) [protected]

try to read the document information : "SfxDocumentInformation"

Referenced by parse().

bool StarObject::readSfxPreview ( STOFFInputStreamPtr  input,
std::string const &  name 
) [protected]

try to read the preview : "SfxPreview"

Referenced by parse().

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

try to read a spreadshet style zone: SfxStyleSheets

Reimplemented in StarObjectText, StarObjectSpreadsheet, StarObjectDraw, and StarObjectChart.

bool StarObject::readSfxWindows ( STOFFInputStreamPtr  input,
libstoff::DebugFile ascii 
) [protected]

try to read the windows information : "SfxWindows"

Referenced by parse().

try to read the "Star Framework Config File"

Referenced by parse().


Member Data Documentation

the directory

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

librevenge::RVNGPropertyList StarObject::m_metaData [protected]

the meta data

Referenced by getMetaData(), and readSfxDocumentInformation().

char const* StarObject::m_password [protected]

the document password

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


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