Go to the documentation of this file.
47 std::ostream &
operator<< (std::ostream &o, FileData
const &dt);
93 auto col = uint32_t(
m_value&0xFFFFFF);
94 return WPSColor(col&0xFF, (col>>8)&0xFF, (col>>16)&0xFF);
128 if (
m_type == 0xa)
return 2;
friend bool readBlockData(RVNGInputStreamPtr input, long endPos, FileData &dt, std::string &error)
function which parses a set of elements
Definition: WPS8Struct.cpp:168
int m_type
an int which indicates the data type
Definition: WPS8Struct.h:162
Style
the line style
Definition: libwps_internal.h:397
long begin() const
beginning of data position
Definition: WPS8Struct.h:148
bool isBad() const
returns true if the field was not read
Definition: WPS8Struct.h:76
static std::string str()
Definition: WPSDebug.h:200
Definition: libwps_internal.h:397
bool isBool() const
returns true if it is a bool data
Definition: WPS8Struct.h:100
long m_beginOffset
the initial position of the data of this field
Definition: WPS8Struct.h:166
std::vector< FileData > m_recursData
the list of children
Definition: WPS8Struct.h:145
bool readBlockData(RVNGInputStreamPtr input, long endPos, FileData &dt, std::string &error)
tries to read a block zone as a list of Data
Definition: WPS8Struct.cpp:168
Definition: libwps_internal.h:399
long m_endOffset
the final position of the data of this field
Definition: WPS8Struct.h:166
friend bool readData(RVNGInputStreamPtr input, long endPos, FileData &dt, std::string &error)
function which parses an element
Definition: WPS8Struct.cpp:216
bool isFalse() const
returns true if this is a bool and the val is false
Definition: WPS8Struct.h:110
long m_value
an int value, filled if the data store an val
Definition: WPS8Struct.h:141
std::string m_text
the string values
Definition: WPS8Struct.h:143
Definition: libwps_internal.h:399
friend std::ostream & operator<<(std::ostream &o, FileData const &dt)
operator<<
Definition: WPS8Struct.cpp:110
int m_id
an identificator
Definition: WPS8Struct.h:164
std::ostream & operator<<(std::ostream &o, FileData const &dt)
operator<< which allows to print for debugging the content of a Data
Definition: WPS8Struct.cpp:110
int id() const
returns the identificator
Definition: WPS8Struct.h:132
FileData()
constructor
Definition: WPS8Struct.h:66
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
long end() const
end of data position
Definition: WPS8Struct.h:153
bool readArrayBlock() const
forces reading the data as a list of block
Definition: WPS8Struct.cpp:33
namespace used to read the structures stored in a WPS8 files
Definition: WPS8Struct.cpp:30
int32_t read32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:85
Definition: libwps_internal.h:397
A recursif structure which seems generally used to store complex memory structures in a file.
Definition: WPS8Struct.h:63
bool hasStr() const
returns true if it is a string data
Definition: WPS8Struct.h:81
Definition: libwps_internal.h:397
RVNGInputStreamPtr m_input
the input
Definition: WPS8Struct.h:168
Definition: WPSDebug.h:191
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
Type
the line repetition
Definition: libwps_internal.h:399
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
Definition: libwps_internal.h:399
WPSColor getRGBColor() const
returns a rgb color by converting the integer value field
Definition: WPS8Struct.h:91
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
static std::string createErrorString(RVNGInputStreamPtr input, long endPos)
creates a string used to store the unparsed data
Definition: WPS8Struct.cpp:45
Definition: libwps_internal.h:397
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
the class to store a color
Definition: libwps_internal.h:280
bool isTrue() const
returns true if this is a bool and the val is true
Definition: WPS8Struct.h:105
bool readData(RVNGInputStreamPtr input, long endPos, FileData &dt, std::string &)
tries to read a block zone as a Data
Definition: WPS8Struct.cpp:216
Definition: libwps_internal.h:397
bool isArray() const
returns true if this is a list of block or an unstructured list
Definition: WPS8Struct.h:115
int type() const
returns the data type (low level)
Definition: WPS8Struct.h:126
bool isNumber() const
returns true if it is a number data
Definition: WPS8Struct.h:86
bool isRead() const
returns true if the data are read
Definition: WPS8Struct.h:120
bool getBorderStyles(WPSBorder::Style &style, WPSBorder::Type &type, std::string &mess) const
returns the border, type style using the integer value field
Definition: WPS8Struct.cpp:56
Generated on Tue Jul 23 2024 22:21:50 for libwps by
doxygen 1.8.16