Go to the documentation of this file.
25 #ifndef STOFFDOCUMENT_HXX
26 #define STOFFDOCUMENT_HXX
30 #define STOFFLIB __declspec(dllexport)
32 #define STOFFLIB __declspec(dllimport)
35 #ifdef LIBSTAROFFICE_VISIBILITY
36 #define STOFFLIB __attribute__((visibility("default")))
45 class RVNGDrawingInterface;
46 class RVNGPresentationInterface;
47 class RVNGSpreadsheetInterface;
48 class RVNGTextInterface;
49 class RVNGInputStream;
107 static STOFFLIB Result parse(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface,
char const *password=
nullptr);
117 static STOFFLIB Result parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *documentInterface,
char const *password=
nullptr);
127 static STOFFLIB Result parse(librevenge::RVNGInputStream *input, librevenge::RVNGPresentationInterface *documentInterface,
char const *password=
nullptr);
137 static STOFFLIB Result parse(librevenge::RVNGInputStream *input, librevenge::RVNGSpreadsheetInterface *documentInterface,
char const *password=
nullptr);
152 static STOFFLIB bool decodeGraphic(librevenge::RVNGBinaryData
const &binary, librevenge::RVNGDrawingInterface *documentInterface);
163 static STOFFLIB bool decodeSpreadsheet(librevenge::RVNGBinaryData
const &binary, librevenge::RVNGSpreadsheetInterface *documentInterface);
174 static STOFFLIB bool decodeText(librevenge::RVNGBinaryData
const &binary, librevenge::RVNGTextInterface *documentInterface);
the main class to read a StarOffice sdX file
Definition: SDXParser.hxx:64
word processing file
Definition: STOFFDocument.hxx:75
not supported
Definition: STOFFDocument.hxx:60
supported
Definition: STOFFDocument.hxx:63
vectorized graphic: .sda
Definition: STOFFDocument.hxx:71
STOFFHeader * getHeader(STOFFInputStreamPtr &input, bool strict)
return the header corresponding to an input.
Definition: STOFFDocument.cxx:285
problem when reading the OLE structure
Definition: STOFFDocument.hxx:82
std::shared_ptr< STOFFSpreadsheetParser > getSpreadsheetParserFromHeader(STOFFInputStreamPtr &input, STOFFHeader *header, char const *passwd)
Factory wrapper to construct a parser corresponding to an spreadsheet header.
Definition: STOFFDocument.cxx:390
conversion ok
Definition: STOFFDocument.hxx:80
Definition: libstaroffice_internal.hxx:139
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDWParser.hxx:72
problem when parsing the file
Definition: STOFFDocument.hxx:83
bool checkData(librevenge::RVNGBinaryData const &encoded)
checks a encoded librevenge::RVNGBinaryData created by STOFFPropertyHandlerEncoder
Definition: STOFFPropertyHandler.cxx:363
Kind
an enum to define the kind of document
Definition: STOFFDocument.hxx:66
encryption supported
Definition: STOFFDocument.hxx:62
std::shared_ptr< STOFFGraphicParser > getGraphicParserFromHeader(STOFFInputStreamPtr &input, STOFFHeader *header, char const *passwd)
Factory wrapper to construct a parser corresponding to an graphic header.
Definition: STOFFDocument.cxx:321
bitmap/image
Definition: STOFFDocument.hxx:68
the main class to read a StarOffice sdg file
Definition: SDGParser.hxx:64
unknown
Definition: STOFFDocument.hxx:67
bool checkHeader(STOFFInputStreamPtr &input, STOFFHeader &header, bool strict)
Wrapper to check a basic header of a mac file.
Definition: STOFFDocument.cxx:406
std::shared_ptr< STOFFTextParser > getTextParserFromHeader(STOFFInputStreamPtr &input, STOFFHeader *header, char const *passwd)
Factory wrapper to construct a parser corresponding to an text header.
Definition: STOFFDocument.cxx:360
Definition: libstaroffice_internal.hxx:151
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDXParser.hxx:72
chart
Definition: STOFFDocument.hxx:69
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDAParser.hxx:72
the main class to read a StarOffice sdc file
Definition: SDCParser.hxx:64
unknown error
Definition: STOFFDocument.hxx:85
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
main class used to decode a librevenge::RVNGBinaryData created by
Definition: STOFFSpreadsheetDecoder.hxx:48
main class used to decode a librevenge::RVNGBinaryData created by
Definition: STOFFGraphicDecoder.hxx:48
the main class to read a StarOffice sda/sdd file
Definition: SDAParser.hxx:64
problem when using the given password
Definition: STOFFDocument.hxx:84
static STOFFLIB Confidence isFileFormatSupported(librevenge::RVNGInputStream *input, Kind &kind)
Analyzes the content of an input stream to see if it can be parsed.
Definition: STOFFDocument.cxx:63
Definition: libstaroffice_internal.hxx:143
small namespace use to define private class/method used by STOFFDocument
Definition: STOFFDocument.cxx:53
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDCParser.hxx:72
static STOFFLIB bool decodeText(librevenge::RVNGBinaryData const &binary, librevenge::RVNGTextInterface *documentInterface)
Parses the text contained in the binary data and called documentInterface to reconstruct a text.
Definition: STOFFDocument.cxx:276
presentation
Definition: STOFFDocument.hxx:73
#define STOFFLIB
Definition: STOFFDocument.hxx:38
encryption not supported
Definition: STOFFDocument.hxx:61
static STOFFLIB bool decodeSpreadsheet(librevenge::RVNGBinaryData const &binary, librevenge::RVNGSpreadsheetInterface *documentInterface)
Parses the spreadsheet contained in the binary data and called documentInterface to reconstruct a spr...
Definition: STOFFDocument.cxx:259
problem when accessing file
Definition: STOFFDocument.hxx:81
This class provides all the functions an application would need to parse StarOffice documents.
Definition: STOFFDocument.hxx:55
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDGParser.hxx:72
database
Definition: STOFFDocument.hxx:70
std::shared_ptr< STOFFGraphicParser > getPresentationParserFromHeader(STOFFInputStreamPtr &input, STOFFHeader *header, char const *passwd)
Factory wrapper to construct a parser corresponding to an presentation header.
Definition: STOFFDocument.cxx:344
static STOFFLIB Result parse(librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *documentInterface, char const *password=nullptr)
Parses the input stream content.
Definition: STOFFDocument.cxx:204
math
Definition: STOFFDocument.hxx:72
the main class to read a StarOffice sdw file
Definition: SDWParser.hxx:64
Confidence
an enum which defines if we have confidence that a file is supported
Definition: STOFFDocument.hxx:59
Definition: STOFFDocument.hxx:42
bool readData(librevenge::RVNGBinaryData const &encoded)
reads a encoded librevenge::RVNGBinaryData created by STOFFPropertyHandlerEncoder
Definition: STOFFPropertyHandler.cxx:369
Result
an enum which defines the result of the file parsing
Definition: STOFFDocument.hxx:79
gallery graphic: .sdg
Definition: STOFFDocument.hxx:76
static STOFFLIB bool decodeGraphic(librevenge::RVNGBinaryData const &binary, librevenge::RVNGDrawingInterface *documentInterface)
Parses the graphic contained in the binary data and called documentInterface to reconstruct a graphic...
Definition: STOFFDocument.cxx:242
spreadsheet: .sdc
Definition: STOFFDocument.hxx:74
Generated on Mon Jan 20 2020 23:02:18 for libstaroffice by
doxygen 1.8.16