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:65
@ STOFF_K_TEXT
word processing file
Definition: STOFFDocument.hxx:75
@ STOFF_C_NONE
not supported
Definition: STOFFDocument.hxx:60
@ STOFF_C_EXCELLENT
supported
Definition: STOFFDocument.hxx:63
@ STOFF_K_DRAW
vectorized graphic: .sda
Definition: STOFFDocument.hxx:71
STOFFHeader * getHeader(STOFFInputStreamPtr &input, bool strict)
return the header corresponding to an input.
Definition: STOFFDocument.cxx:285
@ STOFF_R_OLE_ERROR
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
@ STOFF_R_OK
conversion ok
Definition: STOFFDocument.hxx:80
Definition: libstaroffice_internal.hxx:140
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDWParser.hxx:72
@ STOFF_R_PARSE_ERROR
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
@ STOFF_C_SUPPORTED_ENCRYPTION
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
@ STOFF_K_BITMAP
bitmap/image
Definition: STOFFDocument.hxx:68
the main class to read a StarOffice sdg file
Definition: SDGParser.hxx:65
@ STOFF_K_UNKNOWN
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:152
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDXParser.hxx:72
@ STOFF_K_CHART
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:65
@ STOFF_R_UNKNOWN_ERROR
unknown error
Definition: STOFFDocument.hxx:85
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:489
main class used to decode a librevenge::RVNGBinaryData created by
Definition: STOFFSpreadsheetDecoder.hxx:49
main class used to decode a librevenge::RVNGBinaryData created by
Definition: STOFFGraphicDecoder.hxx:49
the main class to read a StarOffice sda/sdd file
Definition: SDAParser.hxx:65
@ STOFF_R_PASSWORD_MISSMATCH_ERROR
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:144
small namespace use to define private class/method used by STOFFDocument
Definition: STOFFDocument.cxx:54
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
@ STOFF_K_PRESENTATION
presentation
Definition: STOFFDocument.hxx:73
#define STOFFLIB
Definition: STOFFDocument.hxx:38
@ STOFF_C_UNSUPPORTED_ENCRYPTION
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
@ STOFF_R_FILE_ACCESS_ERROR
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:56
void setDocumentPassword(char const *passwd)
set the document password
Definition: SDGParser.hxx:72
@ STOFF_K_DATABASE
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
@ STOFF_K_MATH
math
Definition: STOFFDocument.hxx:72
the main class to read a StarOffice sdw file
Definition: SDWParser.hxx:65
Confidence
an enum which defines if we have confidence that a file is supported
Definition: STOFFDocument.hxx:59
Definition: STOFFDocument.hxx:43
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
@ STOFF_K_GRAPHIC
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
@ STOFF_K_SPREADSHEET
spreadsheet: .sdc
Definition: STOFFDocument.hxx:74
Generated on Sun Dec 8 2024 05:38:42 for libstaroffice by
doxygen 1.8.20