Go to the documentation of this file.
80 void parse(librevenge::RVNGDrawingInterface *documentInterface)
override;
84 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
105 std::shared_ptr<SDGParserInternal::State>
m_state;
std::shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:487
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFGraphicStyle.hxx:66
const char * m_password
the password
Definition: SDGParser.hxx:103
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
Internal: the structures of a SDGParser.
Definition: SDGParser.cxx:53
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
the main class to read/.
Definition: StarAttribute.hxx:1080
Internal: the subdocument of a SDGParser.
Definition: SDGParser.cxx:91
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
librevenge::RVNGString m_text
the text
Definition: SDGParser.cxx:116
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:45
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:59
librevenge::RVNGString m_link
the link name
Definition: SDGParser.cxx:73
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
the main class to read a StarOffice sdg file
Definition: SDGParser.hxx:64
State()
constructor
Definition: SDGParser.cxx:80
bool readBitmap(StarZone &zone, bool inFileHeader, long lastPos, librevenge::RVNGBinaryData &data, std::string &type)
low level
Definition: StarBitmap.cxx:214
the main class to read/.
Definition: StarBitmap.hxx:62
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
STOFFVec2i m_size
the bitmap size
Definition: SDGParser.cxx:71
static void reset()
Definition: STOFFDebug.hxx:228
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: SDGParser.cxx:225
static std::string str()
Definition: STOFFDebug.hxx:203
SDGParser & operator=(SDGParser const &orig)=delete
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
virtual class which defines the ancestor of all graphic/presentation zone parser
Definition: STOFFParser.hxx:209
SubDocumentType
Definition: libstaroffice_internal.hxx:185
void resetGraphicListener()
resets the graphic listener
Definition: STOFFParser.cxx:83
a zone in a StarOffice file
Definition: StarZone.hxx:56
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
int m_pageSpan
the number of page
Definition: STOFFPageSpan.hxx:104
std::vector< Image > m_imagesList
the list of image
Definition: SDGParser.cxx:86
Internal: small class use to store an image content in a SDGParser.
Definition: SDGParser.cxx:58
libstoff::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: STOFFParser.hxx:143
std::shared_ptr< SDGParserInternal::State > m_state
the state
Definition: SDGParser.hxx:105
Definition: STOFFDebug.hxx:194
bool readSGA3(StarZone &zone)
try to read a SGA3 zone
Definition: SDGParser.cxx:245
Image()
constructor
Definition: SDGParser.cxx:62
Definition: libstaroffice_internal.hxx:143
void setAnchor(AnchorTo anchor)
set the anchor
Definition: STOFFPosition.hxx:121
bool getData(librevenge::RVNGBinaryData &data, std::string &type) const
try to convert the read data in ppm
Definition: StarBitmap.cxx:201
STOFFPosition m_position
the position
Definition: STOFFFrameStyle.hxx:73
SDGParser(STOFFInputStreamPtr &input, STOFFHeader *header)
constructor
Definition: SDGParser.cxx:135
std::shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:481
bool readBitmap(StarZone &zone)
try to read a bitmap
Definition: SDGParser.cxx:290
STOFFVec2< float > STOFFVec2f
STOFFVec2 of float.
Definition: libstaroffice_internal.hxx:767
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: STOFFOLEParser.hxx:86
STOFFParserStatePtr getParserState()
returns the parser state
Definition: STOFFParser.hxx:103
const STOFFPageSpan & getPageSpan() const
returns the actual page dimension
Definition: STOFFParser.hxx:118
~SDGParser() final
destructor
Definition: SDGParser.cxx:142
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDGParser.hxx:72
STOFFGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: STOFFParser.hxx:128
Definition: STOFFPosition.hxx:51
static void addPos(long)
Definition: STOFFDebug.hxx:223
Definition: STOFFListener.hxx:59
Internal: the state of a SDGParser.
Definition: SDGParser.cxx:78
Definition: STOFFDebug.hxx:210
void setGraphicListener(STOFFGraphicListenerPtr &listener)
sets the graphic listener
Definition: STOFFParser.cxx:78
STOFFInputStreamPtr & getInput()
returns the actual input
Definition: STOFFParser.hxx:113
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
bool checkHeader(STOFFHeader *header, bool strict=false) override
checks if the document header is correct (or not)
Definition: SDGParser.cxx:418
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
bool operator!=(STOFFSubDocument const &doc) const final
operator!=
Definition: SDGParser.cxx:102
STOFFEmbeddedObject m_object
the object
Definition: SDGParser.cxx:69
gallery graphic: .sdg
Definition: STOFFDocument.hxx:76
SubDocument(librevenge::RVNGString const &text)
Definition: SDGParser.cxx:94
void parse(STOFFListenerPtr &listener, libstoff::SubDocumentType type) final
the parser function
Definition: SDGParser.cxx:119
bool isEmpty() const
return true if the picture contains no data
Definition: libstaroffice_internal.hxx:422
bool createZones()
parses the different OLE, ...
Definition: SDGParser.cxx:199
~SubDocument() final
destructor
Definition: SDGParser.cxx:99
STOFFVec2i getBitmapSize() const
try to return the bitmap size (in point)
Definition: StarBitmap.cxx:209
void add(librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
add a picture
Definition: libstaroffice_internal.hxx:433
void parse(librevenge::RVNGDrawingInterface *documentInterface) override
virtual function used to parse the input
Definition: SDGParser.cxx:149
Generated on Mon Jan 20 2020 23:02:16 for libstaroffice by
doxygen 1.8.16