Go to the documentation of this file.
95 bool sendTable(
Vec2f const &siz,
int tableId,
int strsid,
bool inTextBox=
false);
125 mutable std::shared_ptr<WPS8TableInternal::State>
m_state;
WPS8Table & m_tableParser
the actual parser
Definition: WPS8Table.cpp:91
static WPSColor white()
return the white color
Definition: libwps_internal.h:311
#define WPS_N_ELEMENTS(m)
Definition: libwps_internal.h:124
bool hasName(std::string const &nam) const
checks if the entry name is equal to name
Definition: WPSEntry.h:152
Table & operator=(Table const &)=default
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition: WPS8Table.h:69
static std::string str()
Definition: WPSDebug.h:200
static void addPos(long)
Definition: WPSDebug.h:220
WPSBox2< float > WPSBox2f
WPSBox2 of float.
Definition: libwps_internal.h:890
long end() const
returns the end offset
Definition: WPSEntry.h:78
@ Top
Definition: libwps_internal.h:400
std::map< int, int > m_MCLDTypes
the MCLD type
Definition: WPS8Table.cpp:186
AnchorTo m_anchorTo
anchor position
Definition: WPSPosition.h:241
the main class to read/store table in a Pc MS Works document v5-8
Definition: WPS8Table.h:58
Internal: class to store a basic cell with borders.
Definition: WPS8Table.cpp:48
int numCells() const
returns the number of cell
Definition: WPSTable.h:172
bool sendContent(WPSListenerPtr &) final
call when the content of a cell must be send
Definition: WPS8Table.cpp:84
std::vector< FileData > m_recursData
the list of children
Definition: WPS8Struct.h:145
int version() const
returns the file version
Definition: WPS8Table.cpp:225
std::shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition: libwps_internal.h:107
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
@ BottomBit
Definition: libwps_internal.h:401
@ Right
Definition: libwps_internal.h:400
Wrapping m_wrapping
Wrapping.
Definition: WPSPosition.h:249
void sendTextBox(WPSPosition const &pos, int strsid, librevenge::RVNGPropertyList frameExtras=librevenge::RVNGPropertyList())
creates a subdocument to send a textbox which correspond to the strsid text zone
Definition: WPS8.cpp:472
Definition: WPSContentListener.h:45
WPS8Table(WPS8Table const &orig)=delete
static WPSColor barycenter(float alpha, WPSColor const &colA, float beta, WPSColor const &colB)
return alpha*colA+beta*colB
Definition: libwps_internal.cpp:386
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:39
NameMultiMap & getNameEntryMap()
Definition: WPSParser.h:70
std::string const & name() const
name of the entry
Definition: WPSEntry.h:147
@ CharBaseLine
Definition: WPSPosition.h:43
void computePositions() const
computes the final position of all table: does nothing as table anchors seem always a char
Definition: WPS8Table.cpp:245
void sendTextInCell(int strsId, int cellId)
send the text of a cell to a listener (via WPS8Text)
Definition: WPS8.cpp:464
int m_version
the version
Definition: WPS8Table.cpp:180
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
WPSColor m_color
the border color
Definition: libwps_internal.h:456
Definition: WPSTable.h:157
@ Left
Definition: libwps_internal.h:400
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
void flushExtra()
sends the data which have not been send to the listener.
Definition: WPS8Table.cpp:250
int m_id
the table id
Definition: WPS8Table.cpp:141
std::ostream & operator<<(std::ostream &o, Cell const &cell)
operator<< for a Cell
Definition: WPS8Table.cpp:105
@ TopBit
Definition: libwps_internal.h:401
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
#define WPS_FALLTHROUGH
fall through attributes
Definition: libwps_internal.h:82
Cell(WPS8Table &parser)
constructor
Definition: WPS8Table.cpp:50
std::map< int, Table > m_tableMap
a map id -> table
Definition: WPS8Table.cpp:184
T x() const
first element
Definition: libwps_internal.h:542
int m_numPages
the number page
Definition: WPS8Table.cpp:182
int32_t read32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:85
void sendTextInCell(int strsId, int cellId)
Definition: WPS8Table.cpp:237
@ Bottom
Definition: libwps_internal.h:400
@ RightBit
Definition: libwps_internal.h:401
~WPS8Table()
destructor
Definition: WPS8Table.cpp:218
bool send(WPSListenerPtr &listener) final
call when a cell must be send
Definition: WPS8Table.cpp:68
static void addNote(char const *)
Definition: WPSDebug.h:221
long begin() const
returns the begin offset
Definition: WPSEntry.h:73
A recursif structure which seems generally used to store complex memory structures in a file.
Definition: WPS8Struct.h:64
std::string const & type() const
returns the type of the entry
Definition: WPSEntry.h:131
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WPS8Table.h:128
Style m_style
the border style
Definition: libwps_internal.h:446
This class parses Works version 2000 through 8.
Definition: WPS8.h:50
void add(WPSCellPtr &cell)
add a new cells
Definition: WPSTable.cpp:105
Internal: class to store a table: list of cells.
Definition: WPS8Table.cpp:130
long length() const
returns the length of the zone
Definition: WPSEntry.h:83
WPSCellPtr getCell(int id)
returns the i^th cell
Definition: WPSTable.cpp:110
WPS8Table(WPS8Parser &parser)
constructor
Definition: WPS8Table.cpp:210
int numPages() const
returns the number page where we find a picture. In practice, 0/1
Definition: WPS8Table.cpp:232
a structure used to defined the cell position, and a format
Definition: WPSCell.h:291
Definition: WPSDebug.h:192
int version() const
Definition: WPSParser.h:56
a border list
Definition: libwps_internal.h:395
bool m_parsed
a bool to know if the table has been parsed
Definition: WPS8Table.cpp:144
WPSContentListenerPtr m_listener
the listener
Definition: WPS8Table.h:119
bool readMCLD(RVNGInputStreamPtr input, WPSEntry const &entry)
reads a MCLD zone: a zone which stores the tables structures
Definition: WPS8Table.cpp:338
~Table() final
destructor
Definition: WPS8Table.cpp:147
Internal: the state of a WPS8Table.
Definition: WPS8Table.cpp:166
bool hasType(std::string const &tp) const
returns true if the type entry == type
Definition: WPSEntry.h:136
int m_id
the cell id
Definition: WPS8Table.cpp:93
int getTableSTRSId(int tableId) const
retrieve the strsId corresponding to a table ( mainly for debug)
Definition: WPS8.cpp:531
bool readStructures(RVNGInputStreamPtr const &input)
finds all structures which correspond to a table
Definition: WPS8Table.cpp:317
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:40
@ LeftBit
Definition: libwps_internal.h:401
Type m_type
the border repetition
Definition: libwps_internal.h:448
State()
constructor
Definition: WPS8Table.cpp:168
~Cell() final
virtual destructor
Definition: WPS8Table.cpp:101
@ None
Definition: libwps_internal.h:397
std::shared_ptr< WPSCell > WPSCellPtr
shared pointer to WPSCell
Definition: libwps_internal.h:100
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
bool sendTable(Vec2f const &siz, int tableId, int strsid, bool inTextBox=false)
tries to send a table corresponding to strsid with actual size siz
Definition: WPS8Table.cpp:266
std::shared_ptr< WPS8TableInternal::State > m_state
the state
Definition: WPS8Table.h:125
the class to store a color
Definition: libwps_internal.h:281
Table()
constructor
Definition: WPS8Table.cpp:132
void send(WPSEntry const &entry)
sends text corresponding to the entry to the listener (via WPS8Text)
Definition: WPS8.cpp:451
Vec2f m_size
frame size in inches
Definition: WPS8Table.cpp:97
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: WPSEntry.h:120
Internal: the structures of a WPS8Table.
Definition: WPS8Table.cpp:45
libwps::DebugFile & ascii()
returns the debug file
Definition: WPS8Table.h:109
WPS8Parser & m_mainParser
the main parser
Definition: WPS8Table.h:122
friend std::ostream & operator<<(std::ostream &o, Table const &table)
operator<<
Definition: WPS8Table.cpp:152
void initTypeMaps()
initialize the type map
Definition: WPS8Table.cpp:189
Definition: WPSDebug.h:208
T y() const
second element
Definition: libwps_internal.h:547
int m_strsId
the strsId
Definition: WPS8Table.cpp:95
static WPSColor black()
return the back color
Definition: libwps_internal.h:306
float m_bordersSep[4]
border text separator T,L,R,B ( checkme, not sure )
Definition: WPS8Table.cpp:99
WPS8Table & operator=(WPS8Table const &orig)=delete
@ WDynamic
Definition: WPSPosition.h:45
Generated on Sat Sep 12 2020 08:41:48 for libwps by
doxygen 1.8.18