Go to the documentation of this file.
68 StarObject(
char const *passwd, std::shared_ptr<STOFFOLEParser> &oleParser, std::shared_ptr<STOFFOLEParser::OleDirectory> &directory);
111 std::shared_ptr<StarItemPool>
getCurrentPool(
bool onlyInside=
true);
148 std::shared_ptr<StarObjectInternal::State>
m_state;
bool add(std::shared_ptr< StarItem > item)
try to add a item
Definition: StarItem.cxx:42
the main class to read/.
Definition: StarFileManager.hxx:61
vectorized graphic: .sda
Definition: STOFFDocument.hxx:71
long end() const
returns the end offset
Definition: STOFFEntry.hxx:83
std::shared_ptr< StarAttributeManager > m_attributeManager
the attribute manager
Definition: StarObject.cxx:67
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
bool readPersistData(StarZone &zone, long endPos)
try to read persist data
Definition: StarObject.cxx:363
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
the main class to read/.
Definition: StarAttribute.hxx:1080
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
Type
the known item pool
Definition: StarItemPool.hxx:75
std::shared_ptr< STOFFOLEParser::OleDirectory > m_directory
the directory
Definition: StarObject.hxx:145
Kind
an enum to define the kind of document
Definition: STOFFDocument.hxx:66
bool readSfxPreview(STOFFInputStreamPtr input, std::string const &name)
try to read the preview : "SfxPreview"
Definition: StarObject.cxx:800
bool readSfxWindows(STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
try to read the windows information : "SfxWindows"
Definition: StarObject.cxx:824
Internal: the structures of a StarObject.
Definition: StarObject.cxx:51
const char * m_password
the document password
Definition: StarObject.hxx:141
void cleanPools()
clean each pool
Definition: StarObject.cxx:106
STOFFBox2< int > STOFFBox2i
STOFFBox2 of int.
Definition: libstaroffice_internal.hxx:1129
std::shared_ptr< StarItemPool > getNewItemPool(StarItemPool::Type type)
returns a new item pool for this document
Definition: StarObject.cxx:142
bool readString(std::vector< uint32_t > &string, int encoding=-1) const
try to read an unicode string
Definition: StarZone.hxx:220
bool readStarFrameworkConfigFile(STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
try to read the "Star Framework Config File"
Definition: StarObject.cxx:687
StarObject(char const *passwd, std::shared_ptr< STOFFOLEParser > &oleParser, std::shared_ptr< STOFFOLEParser::OleDirectory > &directory)
constructor
Definition: StarObject.cxx:80
unknown
Definition: STOFFDocument.hxx:67
std::vector< std::shared_ptr< StarItemPool > > m_poolList
the list of pool
Definition: StarObject.cxx:65
std::shared_ptr< StarObjectInternal::State > m_state
the state
Definition: StarObject.hxx:148
librevenge::RVNGString getUserNameMetaData(int i) const
returns the ith user meta data
Definition: StarObject.cxx:130
virtual ~StarObject()
destructor
Definition: StarObject.cxx:102
bool readSfxDocumentInformation(STOFFInputStreamPtr input, std::string const &name)
try to read the document information : "SfxDocumentInformation"
Definition: StarObject.cxx:488
static std::string str()
Definition: STOFFDebug.hxx:203
the main class to read/.
Definition: StarItemPool.hxx:70
bool readPersistElements(STOFFInputStreamPtr input, std::string const &name)
the "persist elements" small ole: the list of object
Definition: StarObject.cxx:287
bool openSCRecord()
try to open a SC record: size (32 bytes) + size bytes
Definition: StarZone.cxx:483
static bool convert(std::vector< uint8_t > const &src, Encoding encoding, std::vector< uint32_t > &dest, std::vector< size_t > &srcPositions)
try to convert a list of character and transforms it a unicode's list
Definition: StarEncoding.cxx:61
bool readItemSet(StarZone &zone, std::vector< STOFFVec2i > const &limits, long endPos, StarItemSet &itemSet, StarItemPool *pool=nullptr, bool isDirect=false)
try to read a list of item
Definition: StarObject.cxx:229
StarObject & operator=(StarObject const &orig)=delete
bool readSfxStyleSheets(STOFFInputStreamPtr input, std::string const &name)
try to read a spreadshet style zone: SfxStyleSheets
Definition: StarObject.cxx:638
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
std::shared_ptr< StarFormatManager > getFormatManager()
returns the format manager
Definition: StarObject.cxx:125
a zone in a StarOffice file
Definition: StarZone.hxx:56
Definition: StarItemPool.hxx:75
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
librevenge::RVNGPropertyList m_metaData
the meta data
Definition: StarObject.hxx:150
static Encoding getEncodingForId(int id)
return an encoding corresponding to an id
Definition: StarEncoding.cxx:73
Definition: STOFFDebug.hxx:194
std::shared_ptr< StarItemPool > findItemPool(StarItemPool::Type type, bool isInside)
check if a pool corresponding to a given type is opened if so returned it.
Definition: StarObject.cxx:159
bool closeSCRecord(std::string const &debugName)
try to close a record
Definition: StarZone.hxx:165
const char * getPassword() const
returns the document password (the password given by the user)
Definition: StarObject.hxx:81
Definition: StarItemPool.hxx:75
const librevenge::RVNGPropertyList & getMetaData() const
returns the meta data (filled by readSfxDocumentInformation)
Definition: StarObject.hxx:95
presentation
Definition: STOFFDocument.hxx:73
STOFFDocument::Kind getDocumentKind() const
returns the document kind
Definition: StarObject.cxx:115
bool parse()
try to parse data
Definition: StarObject.cxx:170
State()
constructor
Definition: StarObject.cxx:56
std::shared_ptr< STOFFOLEParser > m_oleParser
the ole parser
Definition: StarObject.hxx:143
static void addPos(long)
Definition: STOFFDebug.hxx:223
static void addDelimiter(long, char)
Definition: STOFFDebug.hxx:225
bool convertToDateTime(uint32_t date, uint32_t time, std::string &dateTime)
convert a date/time in a date time format
Definition: libstaroffice_internal.cxx:389
void setId(int newId)
sets the id
Definition: STOFFEntry.hxx:164
void setBegin(long off)
sets the begin offset
Definition: STOFFEntry.hxx:62
Definition: STOFFDebug.hxx:210
int id() const
returns the id
Definition: STOFFEntry.hxx:159
std::shared_ptr< STOFFOLEParser::OleDirectory > getOLEDirectory()
returns the object directory
Definition: StarObject.hxx:86
the state of a StarObject
Definition: StarObject.cxx:54
std::map< int, std::shared_ptr< StarItem > > m_whichToItemMap
the list of item
Definition: StarItem.hxx:111
class to store a list of item
Definition: StarItem.hxx:87
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
std::shared_ptr< StarItemPool > getCurrentPool(bool onlyInside=true)
returns the current all/inside pool
Definition: StarObject.cxx:149
std::shared_ptr< StarFormatManager > m_formatManager
the format manager
Definition: StarObject.cxx:69
std::shared_ptr< StarAttributeManager > getAttributeManager()
returns the attribute manager
Definition: StarObject.cxx:120
State operator=(State const &)=delete
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
Definition: StarItemPool.hxx:75
void setLength(long l)
sets the zone size
Definition: STOFFEntry.hxx:67
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218
bool readStarFrameworkConfigItem(STOFFEntry &entry, STOFFInputStreamPtr input, libstoff::DebugFile &ascii)
try to read an item in a "Star Framework Config File"
Definition: StarObject.cxx:764
long length() const
returns the length of the zone
Definition: STOFFEntry.hxx:88
Definition: StarItemPool.hxx:75
long getRecordLastPosition() const
returns the actual record last position
Definition: StarZone.hxx:200
std::shared_ptr< StarItem > readItem(StarZone &zone, bool isDirect, long endPos)
read a item
Definition: StarItemPool.cxx:1041
static bool readSVGDI(StarZone &zone)
try to read a SVGDI object
Definition: StarFileManager.cxx:959
long begin() const
returns the begin offset
Definition: STOFFEntry.hxx:78
bool valid() const
returns true if the zone length is positive
Definition: STOFFEntry.hxx:94
librevenge::RVNGString m_userMetaNames[4]
the list of user name
Definition: StarObject.cxx:71
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16