StarObjectModel Class Reference

the main class to read a SdrModel zone More...

#include <StarObjectModel.hxx>

Inheritance diagram for StarObjectModel:
StarObject

Public Member Functions

 StarObjectModel (StarObject const &orig, bool duplicateState)
 constructor
 
 ~StarObjectModel () override
 destructor
 
bool read (StarZone &zone)
 try to read a SdrModel zone: "DrMd"
 
void updateObjectIds (std::set< long > &unusedId)
 try to update the object id of page 0
 
bool updatePageSpans (std::vector< STOFFPageSpan > &pageSpan, int &numPages, bool usePage0=false) const
 try to update the page span (to create draw document)
 
bool sendMasterPages (STOFFGraphicListenerPtr listener)
 try to send the master pages
 
bool sendPages (STOFFListenerPtr listener)
 try to send the different page
 
bool sendPage (int pageId, STOFFListenerPtr listener, bool masterPage=false)
 try to send a page content
 
bool sendObject (int id, STOFFListenerPtr listener, StarState const &state)
 try to send an object
 
- Public Member Functions inherited from StarObject
 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::OleDirectorygetOLEDirectory ()
 returns the object directory
 
std::shared_ptr< StarAttributeManagergetAttributeManager ()
 returns the attribute manager
 
std::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
 
std::shared_ptr< StarItemPoolgetNewItemPool (StarItemPool::Type type)
 returns a new item pool for this document
 
std::shared_ptr< StarItemPoolfindItemPool (StarItemPool::Type type, bool isInside)
 check if a pool corresponding to a given type is opened if so returned it.
 
std::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=nullptr, bool isDirect=false)
 try to read a list of item
 

Protected Member Functions

bool readSdrLayer (StarZone &zone, StarObjectModelInternal::Layer &layer)
 try to read a SdrLayer zone: "DrLy'
 
bool readSdrLayerSet (StarZone &zone, StarObjectModelInternal::LayerSet &layers)
 try to read a SdrLayerSet zone: "DrLS'
 
std::shared_ptr< StarObjectModelInternal::PagereadSdrPage (StarZone &zone)
 try to read a Page/MasterPage zone: "DrPg'
 
bool readSdrMPageDesc (StarZone &zone, StarObjectModelInternal::Page &page)
 
bool readSdrMPageDescList (StarZone &zone, StarObjectModelInternal::Page &page)
 
bool readSdrPageUnknownZone1 (StarZone &zone, long lastPos)
 try to read a zone which appear at end of a zone: "DrPg'
 
- Protected Member Functions inherited from StarObject
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

std::shared_ptr< StarObjectModelInternal::Statem_modelState
 the state
 
- Protected Attributes inherited from StarObject
char const * m_password
 the document password
 
std::shared_ptr< STOFFOLEParserm_oleParser
 the ole parser
 
std::shared_ptr< STOFFOLEParser::OleDirectorym_directory
 the directory
 
std::shared_ptr< StarObjectInternal::Statem_state
 the state
 
librevenge::RVNGPropertyList m_metaData
 the meta data
 

Private Member Functions

StarObjectModeloperator= (StarObjectModel const &orig)=delete
 

Friends

std::ostream & operator<< (std::ostream &o, StarObjectModel const &model)
 small operator<< to print the content of the model
 

Detailed Description

the main class to read a SdrModel zone

Constructor & Destructor Documentation

◆ StarObjectModel()

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

constructor

◆ ~StarObjectModel()

StarObjectModel::~StarObjectModel ( )
override

destructor

Member Function Documentation

◆ operator=()

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

◆ read()

bool StarObjectModel::read ( StarZone zone)

try to read a SdrModel zone: "DrMd"

◆ readSdrLayer()

bool StarObjectModel::readSdrLayer ( StarZone zone,
StarObjectModelInternal::Layer layer 
)
protected

try to read a SdrLayer zone: "DrLy'

Referenced by read(), and readSdrPage().

◆ readSdrLayerSet()

bool StarObjectModel::readSdrLayerSet ( StarZone zone,
StarObjectModelInternal::LayerSet layers 
)
protected

try to read a SdrLayerSet zone: "DrLS'

Referenced by read(), and readSdrPage().

◆ readSdrMPageDesc()

bool StarObjectModel::readSdrMPageDesc ( StarZone zone,
StarObjectModelInternal::Page page 
)
protected

◆ readSdrMPageDescList()

bool StarObjectModel::readSdrMPageDescList ( StarZone zone,
StarObjectModelInternal::Page page 
)
protected

Referenced by readSdrPage().

◆ readSdrPage()

std::shared_ptr< StarObjectModelInternal::Page > StarObjectModel::readSdrPage ( StarZone zone)
protected

try to read a Page/MasterPage zone: "DrPg'

Referenced by read().

◆ readSdrPageUnknownZone1()

bool StarObjectModel::readSdrPageUnknownZone1 ( StarZone zone,
long  lastPos 
)
protected

try to read a zone which appear at end of a zone: "DrPg'

Referenced by readSdrPage().

◆ sendMasterPages()

bool StarObjectModel::sendMasterPages ( STOFFGraphicListenerPtr  listener)

try to send the master pages

◆ sendObject()

bool StarObjectModel::sendObject ( int  id,
STOFFListenerPtr  listener,
StarState const &  state 
)

try to send an object

◆ sendPage()

bool StarObjectModel::sendPage ( int  pageId,
STOFFListenerPtr  listener,
bool  masterPage = false 
)

try to send a page content

Referenced by sendMasterPages(), and sendPages().

◆ sendPages()

bool StarObjectModel::sendPages ( STOFFListenerPtr  listener)

try to send the different page

◆ updateObjectIds()

void StarObjectModel::updateObjectIds ( std::set< long > &  unusedId)

try to update the object id of page 0

Note
this is used to retrieve an object in a .sdw's DrawingLawer stream

◆ updatePageSpans()

bool StarObjectModel::updatePageSpans ( std::vector< STOFFPageSpan > &  pageSpan,
int &  numPages,
bool  usePage0 = false 
) const

try to update the page span (to create draw document)

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  o,
StarObjectModel const &  model 
)
friend

small operator<< to print the content of the model

Member Data Documentation

◆ m_modelState

std::shared_ptr<StarObjectModelInternal::State> StarObjectModel::m_modelState
protected

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

Generated on Fri Apr 14 2023 04:41:10 for libstaroffice by doxygen 1.9.6