Go to the documentation of this file.
38 #ifndef STAR_OBJECT_MODEL
39 # define STAR_OBJECT_MODEL
79 bool updatePageSpans(std::vector<STOFFPageSpan> &pageSpan,
int &numPages,
bool usePage0=
false)
const;
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:487
bool sendObject(int id, STOFFListenerPtr listener, StarState const &state)
try to send an object
Definition: StarObjectModel.cxx:412
std::vector< LayerSet > m_layerSetList
the list of layer set
Definition: StarObjectModel.cxx:326
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
std::vector< std::shared_ptr< Page > > m_masterPageList
list of master pages
Definition: StarObjectModel.cxx:322
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
int m_previewMasterPage
the default master page: -1 means not found, in general 1 in StarDrawDocument
Definition: StarObjectModel.cxx:306
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
bool openRecord()
try to open a classic record: size (32 bytes) + size-4 bytes
Definition: StarZone.cxx:455
STOFFFrameStyle m_frame
the frame style
Definition: StarState.hxx:175
bool closeSDRHeader(std::string const &debugName)
close a zone header
Definition: StarZone.cxx:436
bool readSdrLayerSet(StarZone &zone, StarObjectModelInternal::LayerSet &layers)
try to read a SdrLayerSet zone: "DrLS'
Definition: StarObjectModel.cxx:826
Internal: class used to store a page and its data.
Definition: StarObjectModel.cxx:138
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:45
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
std::set< int > m_masterPageToSendSet
the list of master page to send
Definition: StarObjectModel.cxx:330
std::vector< std::shared_ptr< StarObjectSmallGraphic > > m_objectList
the list of object
Definition: StarObjectModel.cxx:247
std::shared_ptr< StarItemPool > getNewItemPool(StarItemPool::Type type)
returns a new item pool for this document
Definition: StarObject.cxx:142
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages, bool usePage0=false) const
try to update the page span (to create draw document)
Definition: StarObjectModel.cxx:360
bool readSdrLayer(StarZone &zone, StarObjectModelInternal::Layer &layer)
try to read a SdrLayer zone: "DrLy'
Definition: StarObjectModel.cxx:774
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
std::shared_ptr< StarObjectSmallGraphic > m_background
the background object
Definition: StarObjectModel.cxx:249
~StarObjectModel() override
destructor
Definition: StarObjectModel.cxx:347
int m_borders[4]
the border size: left, up, right, bottom
Definition: StarObjectModel.cxx:239
std::vector< bool > m_memberList
the list of member
Definition: StarObjectModel.cxx:131
bool m_masterPage
a flag to know if the page is a master page
Definition: StarObjectModel.cxx:233
LayerSet m_layerSet
the layer set
Definition: StarObjectModel.cxx:245
Layer()
constructor
Definition: StarObjectModel.cxx:79
class to store an state: ie.
Definition: StarState.hxx:67
std::shared_ptr< StarObjectModelInternal::State > m_modelState
the state
Definition: StarObjectModel.hxx:115
std::map< int, Layer > m_idToLayerMap
a map layerId to layer
Definition: StarObjectModel.cxx:324
void updatePageSpan(STOFFPageSpan &page, double relUnit) const
update pagespan properties
Definition: StarObjectModel.cxx:187
the main class to read a SdrModel zone
Definition: StarObjectModel.hxx:64
Definition: StarEncoding.hxx:55
librevenge::RVNGString m_name
the page name
Definition: StarObjectModel.cxx:235
librevenge::RVNGPropertyList m_propertiesList[3]
the document, header and footer property list
Definition: STOFFPageSpan.hxx:106
friend std::ostream & operator<<(std::ostream &o, Descriptor const &desc)
operator<<
Definition: StarObjectModel.cxx:151
static std::string str()
Definition: STOFFDebug.hxx:203
LayerSet()
constructor
Definition: StarObjectModel.cxx:106
bool openSDRHeader(std::string &magic)
open a zone header present in a SDR file
Definition: StarZone.cxx:403
bool readSdrPageUnknownZone1(StarZone &zone, long lastPos)
try to read a zone which appear at end of a zone: "DrPg'
Definition: StarObjectModel.cxx:1151
static bool convertUint8ListToBoolList(std::vector< int > const &orig, std::vector< bool > &res)
small function used to convert a list of uint8_t to a bool vector
Definition: StarObjectModel.cxx:62
Internal: class used to store a layer and its data.
Definition: StarObjectModel.cxx:75
Descriptor()
constructor
Definition: StarObjectModel.cxx:145
bool readSdrMPageDesc(StarZone &zone, StarObjectModelInternal::Page &page)
Definition: StarObjectModel.cxx:1217
std::vector< bool > m_excludeList
the list of exclude
Definition: StarObjectModel.cxx:133
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
bool sendMasterPages(STOFFGraphicListenerPtr listener)
try to send the master pages
Definition: StarObjectModel.cxx:439
Internal: the structures of a StarObjectModel.
Definition: StarObjectModel.cxx:59
std::vector< int > m_pageToSendList
the list of page to send
Definition: StarObjectModel.cxx:328
a zone in a StarOffice file
Definition: StarZone.hxx:56
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
StarObjectModel & operator=(StarObjectModel const &orig)=delete
librevenge::RVNGString m_name
the layer name
Definition: StarObjectModel.cxx:129
static Encoding getEncodingForId(int id)
return an encoding corresponding to an id
Definition: StarEncoding.cxx:73
std::shared_ptr< StarObjectModelInternal::Page > readSdrPage(StarZone &zone)
try to read a Page/MasterPage zone: "DrPg'
Definition: StarObjectModel.cxx:881
Definition: STOFFDebug.hxx:194
StarObjectModel(StarObject const &orig, bool duplicateState)
constructor
Definition: StarObjectModel.cxx:341
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFPosition.hxx:153
int m_masterId
the page number
Definition: StarObjectModel.cxx:163
STOFFPosition m_position
the position
Definition: STOFFFrameStyle.hxx:73
Internal: class used to store a layer set and its data.
Definition: StarObjectModel.cxx:102
bool readSdrMPageDescList(StarZone &zone, StarObjectModelInternal::Page &page)
Definition: StarObjectModel.cxx:1255
friend std::ostream & operator<<(std::ostream &o, State const &state)
small operator<< to print the content of the state
Definition: StarObjectModel.cxx:268
bool sendPages(STOFFListenerPtr listener)
try to send the different page
Definition: StarObjectModel.cxx:422
std::shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:481
std::map< int, std::shared_ptr< StarObjectSmallGraphic > > m_idToObjectMap
a map objectId to object
Definition: StarObjectModel.cxx:332
friend std::ostream & operator<<(std::ostream &o, Page const &page)
operator<<
Definition: StarObjectModel.cxx:204
std::vector< Descriptor > m_masterPageDescList
the list of master page descriptor
Definition: StarObjectModel.cxx:241
std::vector< std::shared_ptr< Page > > m_pageList
list of pages
Definition: StarObjectModel.cxx:314
State()
constructor
Definition: StarObjectModel.cxx:256
Internal: the state of a StarObjectModel.
Definition: StarObjectModel.cxx:254
std::ostream & operator<<(std::ostream &o, StarObjectModel const &model)
Definition: StarObjectModel.cxx:351
Definition: STOFFPosition.hxx:51
static void addPos(long)
Definition: STOFFDebug.hxx:223
static void addDelimiter(long, char)
Definition: STOFFDebug.hxx:225
int m_type
the layer type
Definition: StarObjectModel.cxx:98
Definition: STOFFListener.hxx:59
int getMasterPageId() const
returns the master page id
Definition: StarObjectModel.cxx:181
Definition: STOFFDebug.hxx:210
AnchorTo m_anchorTo
anchor position
Definition: STOFFPosition.hxx:145
STOFFVec2i m_size
the page size
Definition: StarObjectModel.cxx:237
bool closeRecord(std::string const &debugName)
try to close a record
Definition: StarZone.hxx:147
int m_id
the layer id
Definition: StarObjectModel.cxx:96
bool read(StarZone &zone)
try to read a SdrModel zone: "DrMd"
Definition: StarObjectModel.cxx:494
void setEncoding(StarEncoding::Encoding encod)
sets the zone encoding
Definition: StarZone.hxx:126
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
Definition: StarItemPool.hxx:75
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
std::vector< bool > m_layerList
a list of layer
Definition: StarObjectModel.cxx:165
Layer m_layer
the layer
Definition: StarObjectModel.cxx:243
friend std::ostream & operator<<(std::ostream &o, Layer const &layer)
operator<<
Definition: StarObjectModel.cxx:86
Internal: class used to store a page descriptor.
Definition: StarObjectModel.cxx:143
Definition: StarItemPool.hxx:75
the main class to read a small StarOffice graphic zone
Definition: StarObjectSmallGraphic.hxx:81
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
librevenge::RVNGString m_name
the layer name
Definition: StarObjectModel.cxx:94
bool sendPage(int pageId, STOFFListenerPtr listener, bool masterPage=false)
try to send a page content
Definition: StarObjectModel.cxx:466
void updateObjectIds(std::set< long > &unusedId)
try to update the object id of page 0
Definition: StarObjectModel.cxx:398
Page()
constructor
Definition: StarObjectModel.cxx:168
friend std::ostream & operator<<(std::ostream &o, LayerSet const &layer)
operator<<
Definition: StarObjectModel.cxx:113
friend std::ostream & operator<<(std::ostream &o, StarObjectModel const &model)
small operator<< to print the content of the model
Definition: StarObjectModel.cxx:351
int getHeaderVersion() const
returns the StarOffice header version (if set)
Definition: StarZone.hxx:94
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16