Go to the documentation of this file.
38 #ifndef STAR_FILE_MANAGER
39 # define STAR_FILE_MANAGER
75 static bool readOLEDirectory(std::shared_ptr<STOFFOLEParser> oleParser, std::shared_ptr<STOFFOLEParser::OleDirectory> ole,
STOFFEmbeddedObject &image, std::shared_ptr<StarObject> &
object);
106 std::shared_ptr<StarFileManagerInternal::State>
m_state;
the main class to read/.
Definition: StarFileManager.hxx:61
SfxMultiRecord(StarZone &zone)
constructor
Definition: StarFileManager.cxx:70
word processing file
Definition: STOFFDocument.hxx:75
bool closeVersionCompatHeader(std::string const &debugName)
close a zone header
Definition: StarZone.cxx:397
vectorized graphic: .sda
Definition: STOFFDocument.hxx:71
static bool readOLEDirectory(std::shared_ptr< STOFFOLEParser > oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > ole, STOFFEmbeddedObject &image, std::shared_ptr< StarObject > &object)
try to read a Ole directory
Definition: StarFileManager.cxx:301
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: STOFFSpreadsheetEncoder.hxx:55
std::shared_ptr< StarFileManagerInternal::State > m_state
the state
Definition: StarFileManager.hxx:106
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
bool send(STOFFSpreadsheetListenerPtr listener)
try to send the spreadsheet
Definition: StarObjectSpreadsheet.cxx:608
Class to store a graphic.
Definition: StarGraphicStruct.hxx:104
the main class to read a StarOffice sdc file
Definition: StarObjectSpreadsheet.hxx:63
bool parse()
try to parse the current object
Definition: StarObjectSpreadsheet.cxx:756
the main class to read a small StarOffice math zone .sdf
Definition: StarObjectMath.hxx:58
bool parse()
Definition: StarObjectText.cxx:819
StarZone & m_zone
the main zone
Definition: StarFileManager.cxx:248
static bool readOutPlaceObject(STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
try to read the "OutPlace Object"
Definition: StarFileManager.cxx:744
Internal: the structures of a StarFileManager.
Definition: StarFileManager.cxx:64
virtual ~StarFileManager()
destructor
Definition: StarFileManager.cxx:297
char m_zoneType
the zone type
Definition: StarFileManager.cxx:250
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
void close(std::string const &wh)
try to close a zone
Definition: StarFileManager.cxx:162
std::vector< uint32_t > m_offsetList
the list of (offset + type)
Definition: StarFileManager.cxx:270
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
uint16_t m_headerTag
the header tag
Definition: StarFileManager.cxx:258
bool read(StarZone &zone, long lastPos=-1)
try to read a graphic, give lastPos if you are sure of the end graphic position
Definition: StarGraphicStruct.cxx:549
Internal: the state of a StarFileManager.
Definition: StarFileManager.cxx:280
friend std::ostream & operator<<(std::ostream &o, SfxMultiRecord const &r)
basic operator<< ; print header data
Definition: StarFileManager.cxx:222
the class to store a color
Definition: libstaroffice_internal.hxx:189
std::shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:493
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: STOFFGraphicEncoder.hxx:55
static bool readOleObject(STOFFInputStreamPtr input, librevenge::RVNGBinaryData &data, std::string const &fileName)
try to read a "Ole-Object" zone
Definition: StarFileManager.cxx:725
bool m_zoneOpened
true if a SfxRecord has been opened
Definition: StarFileManager.cxx:252
bool readBitmap(StarZone &zone, bool inFileHeader, long lastPos, librevenge::RVNGBinaryData &data, std::string &type)
low level
Definition: StarBitmap.cxx:214
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages)
try to update the page span
Definition: StarObjectSpreadsheet.cxx:569
the main class to read/.
Definition: StarBitmap.hxx:62
STOFFEmbeddedObject m_object
the embedded object
Definition: StarGraphicStruct.hxx:116
the main class to read a StarOffice sdw file
Definition: StarObjectText.hxx:100
chart
Definition: STOFFDocument.hxx:69
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libstaroffice_internal.hxx:454
bool dumpFile(librevenge::RVNGBinaryData &, char const *)
Definition: STOFFDebug.hxx:183
static void reset()
Definition: STOFFDebug.hxx:228
Internal: internal method to keep ole directory and their content.
Definition: STOFFOLEParser.hxx:185
uint16_t m_actualRecord
the actual record
Definition: StarFileManager.cxx:260
static std::string str()
Definition: STOFFDebug.hxx:203
std::string m_extra
extra data
Definition: StarFileManager.cxx:272
bool parse()
try to parse the current object
Definition: StarObjectChart.cxx:158
static bool readEmbeddedPicture(std::shared_ptr< STOFFOLEParser > oleParser, std::string const &fileName, STOFFEmbeddedObject &image)
try to read a embedded picture file: Embedded/PicXXXXXX
Definition: StarFileManager.cxx:547
bool getBinaryResult(STOFFEmbeddedObject &result)
return the final graphic
Definition: STOFFGraphicEncoder.cxx:76
uint8_t m_headerType
the record type
Definition: StarFileManager.cxx:254
the main class to read a StarOffice draw
Definition: StarObjectDraw.hxx:61
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libstaroffice_internal.hxx:452
long getLastContentPosition() const
returns the last content position
Definition: StarFileManager.cxx:210
uint32_t m_contentSize
the record/content/pos size
Definition: StarFileManager.cxx:264
long m_startPos
the start of data position
Definition: StarFileManager.cxx:266
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
bool parse()
try to parse the current object
Definition: StarObjectDraw.cxx:125
bool sendPages(STOFFGraphicListenerPtr listener)
try to send the different page
Definition: StarObjectDraw.cxx:115
Internal: a structure use to read SfxMultiRecord zone of a StarFileManager.
Definition: StarFileManager.cxx:68
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: STOFFSpreadsheetListener.hxx:64
int m_pageSpan
the number of page
Definition: STOFFPageSpan.hxx:104
std::vector< std::string > getUnparsedOles() const
returns the list of unknown ole
Definition: STOFFOLEParser.hxx:206
Definition: STOFFDebug.hxx:194
bool openSfxRecord(char &type)
try to open a Sfx record: type + size (24 bytes)
Definition: StarZone.cxx:550
bool parse()
try to parse the current object
Definition: StarObjectMath.cxx:99
std::shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:481
bool getNewContent(std::string const &wh)
try to go to the new content positon
Definition: StarFileManager.cxx:184
static void checkUnparsed(STOFFInputStreamPtr input, std::shared_ptr< STOFFOLEParser > oleParser, char const *password)
low level
Definition: StarFileManager.cxx:435
bool updatePageSpans(std::vector< STOFFPageSpan > &pageSpan, int &numPages) const
try to update the page span (to create draw document)
Definition: StarObjectDraw.cxx:97
SfxMultiRecord & operator=(SfxMultiRecord const &orig)
static bool readJobSetUp(StarZone &zone, bool usePrinterLen)
try to read a printer zone
Definition: StarFileManager.cxx:848
static void addPos(long)
Definition: STOFFDebug.hxx:223
static void addDelimiter(long, char)
Definition: STOFFDebug.hxx:225
bool closeSfxRecord(char type, std::string const &debugName)
try to close a record
Definition: StarZone.hxx:189
uint8_t m_headerVersion
the header version
Definition: StarFileManager.cxx:256
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:489
bool openVersionCompatHeader()
open a version compat header (version+size)
Definition: StarZone.cxx:372
Definition: STOFFDebug.hxx:210
math
Definition: STOFFDocument.hxx:72
static bool readImageDocument(STOFFInputStreamPtr input, librevenge::RVNGBinaryData &data, std::string const &fileName)
try to read a image zone: "StarImageDocument" or "StarImageDocument 4.0
Definition: StarFileManager.cxx:528
State()
constructor
Definition: StarFileManager.cxx:282
the main class to read a StarOffice chart
Definition: StarObjectChart.hxx:60
static bool readFont(StarZone &zone)
try to read a font
Definition: StarFileManager.cxx:776
long m_endPos
the end of data position
Definition: StarFileManager.cxx:268
bool getBinaryResult(STOFFEmbeddedObject &object)
return the final spreadsheet
Definition: STOFFSpreadsheetEncoder.cxx:77
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
bool open()
try to open a zone
Definition: StarFileManager.cxx:87
static void skipZone(long, long)
Definition: STOFFDebug.hxx:230
int getHeaderTag() const
returns the header tag or -1
Definition: StarFileManager.cxx:179
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
StarFileManager()
constructor
Definition: StarFileManager.cxx:292
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
uint16_t m_numRecord
the number of record
Definition: StarFileManager.cxx:262
static bool readSVGDI(StarZone &zone)
try to read a SVGDI object
Definition: StarFileManager.cxx:959
bool isEmpty() const
return true if the picture contains no data
Definition: libstaroffice_internal.hxx:422
int getHeaderVersion() const
returns the StarOffice header version (if set)
Definition: StarZone.hxx:94
void add(librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
add a picture
Definition: libstaroffice_internal.hxx:433
spreadsheet: .sdc
Definition: STOFFDocument.hxx:74
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16