Go to the documentation of this file.
38 #ifndef RAGTIME5_SPREADSHEET
39 # define RAGTIME5_SPREADSHEET
45 #include <librevenge/librevenge.h>
156 shared_ptr<RagTime5SpreadsheetInternal::State>
m_state;
bool operator==(BorderPLC const &plc) const
operator==
Definition: RagTime5Spreadsheet.cxx:279
MWAWVec3< int > MWAWVec3i
MWAWVec3 of int.
Definition: libmwaw_internal.hxx:960
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:200
long m_long
a long value
Definition: RagTime5Spreadsheet.cxx:150
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:134
int getPlane() const
returns the plane
Definition: RagTime5Spreadsheet.cxx:550
Format const & getFormat() const
returns the cell format
Definition: MWAWCell.hxx:211
int m_formatId
the format style
Definition: RagTime5Spreadsheet.cxx:417
std::map< int, shared_ptr< Sheet > > m_idSheetMap
map data id to sheet zone
Definition: RagTime5Spreadsheet.cxx:1315
State()
constructor
Definition: RagTime5Spreadsheet.cxx:1306
MWAWParagraph m_defaultParagraph
the default paragraph
Definition: RagTime5Spreadsheet.cxx:887
a graphic style PLC
Definition: RagTime5Spreadsheet.cxx:297
TextPLC(std::vector< int > const &values)
constructor
Definition: RagTime5Spreadsheet.cxx:347
double m_double
a double value
Definition: RagTime5Spreadsheet.cxx:152
int m_blockType
the actual block id: 1: referenced block, 2: union cell
Definition: RagTime5Spreadsheet.cxx:2645
@ L_ClusterLink
Definition: RagTime5ClusterManager.hxx:107
bool readCellRefPos(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link)
try to read the cell ref ??? zone
Definition: RagTime5Spreadsheet.cxx:1663
virtual ~ClusterSpreadsheet()
destructor
Definition: RagTime5Spreadsheet.cxx:1981
std::vector< int > m_defaultPLCValues
the default plc values
Definition: RagTime5Spreadsheet.cxx:2651
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
std::map< MWAWVec3i, MWAWVec3i > m_unitedCellMap
the list of united cell: map from TL cell to RB cell
Definition: RagTime5Spreadsheet.cxx:869
std::string m_fieldName
the actual field name
Definition: RagTime5Spreadsheet.cxx:2649
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void closeSheet()
closes this sheet
Definition: MWAWSpreadsheetListener.cxx:1612
MWAWVec2i m_position
the cell position
Definition: RagTime5Spreadsheet.cxx:216
ClustListParser & operator=(ClustListParser &orig)
copy operator, not implemented
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
bool operator!=(TextPLC const &plc) const
operator!=
Definition: RagTime5Spreadsheet.cxx:410
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Spreadsheet.cxx:918
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:407
bool isMergedCell() const
returns true if the cell is merged
Definition: RagTime5Spreadsheet.cxx:174
int version() const
returns the file version
Definition: RagTime5Spreadsheet.cxx:1335
bool readUnicodeStringList(RagTime5ClusterManager::Link const &link, std::map< int, librevenge::RVNGString > &idToStringMap)
try to read a list of unicode string zone
Definition: RagTime5Parser.cxx:896
RagTime5Parser & m_mainParser
the parser
Definition: RagTime5Spreadsheet.hxx:146
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: RagTime5Spreadsheet.cxx:1913
@ F_DATE
Definition: MWAWCell.hxx:56
CellPLCParser(CellPLCParser &orig)
copy constructor, not implemented
std::map< MWAWVec2i, CellContent > m_columnsToDataMap
the map columns to data
Definition: RagTime5Spreadsheet.cxx:538
CellContent(MWAWVec2i const &pos, int plane)
constructor
Definition: RagTime5Spreadsheet.cxx:169
bool m_isSent
a flag to know if the sheet has been sent
Definition: RagTime5Spreadsheet.cxx:891
SpreadsheetCParser & operator=(SpreadsheetCParser const &orig)
copy operator (not implemented)
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Spreadsheet.cxx:967
MWAWVec2f getCellDimensions(MWAWVec2i const &position, int plane) const
returns the cell dimension
Definition: RagTime5Spreadsheet.cxx:811
std::vector< int > m_values
the values
Definition: RagTime5Spreadsheet.cxx:293
Cluster(Type type)
constructor
Definition: RagTime5ClusterManager.hxx:232
RagTime5ClusterManager::Link m_blockLinks[3]
the reference block/cell union/reference pos link
Definition: RagTime5Spreadsheet.cxx:1976
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
int m_unknownId
unknown id (always 0)
Definition: RagTime5Spreadsheet.cxx:337
void update(MWAWCell &cell, MWAWCellContent &content) const
update the cell's content
Definition: RagTime5Spreadsheet.cxx:76
void update(Sheet const &sheet, MWAWBox2i const &box, int id, int contentId)
update the cells content type
Definition: RagTime5Spreadsheet.cxx:612
std::vector< GraphicPLC > m_graphicPLCList
the graph plc
Definition: RagTime5Spreadsheet.cxx:875
std::map< MWAWVec2i, Row > m_rowsToDataMap
the map rows to data
Definition: RagTime5Spreadsheet.cxx:673
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:255
void openSheet(std::vector< float > const &colWidth, librevenge::RVNGUnit unit, std::vector< int > const &repeatColWidthNumber=std::vector< int >(), std::string const &name="")
opens a sheet
Definition: MWAWSpreadsheetListener.cxx:1574
the main class to read the spreadsheet part of RagTime 56 file
Definition: RagTime5Spreadsheet.hxx:76
void openSheetRow(float h, librevenge::RVNGUnit unit, int numRepeated=1)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWSpreadsheetListener.cxx:1625
a struct to store what a cell contains
Definition: RagTime5Spreadsheet.cxx:162
Link m_link
the actual link
Definition: RagTime5ClusterManager.hxx:398
Sheet & m_sheet
the actual sheet
Definition: RagTime5Spreadsheet.cxx:1286
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5Spreadsheet.hxx:153
@ T_Unstructured
Definition: RagTime5StructManager.hxx:221
RagTime5Spreadsheet(RagTime5Parser &parser)
constructor
Definition: RagTime5Spreadsheet.cxx:1326
the main class to read a RagTime v5 file
Definition: RagTime5Parser.hxx:74
int m_borderType
the actual border type id: 1: vertical border, 2: horizontal border
Definition: RagTime5Spreadsheet.cxx:2647
@ L_UnicodeList
Definition: RagTime5ClusterManager.hxx:109
@ BottomBit
Definition: libmwaw_internal.hxx:168
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:93
RagTime5ClusterManager::Link m_graphPLCLink
the graph PLC link
Definition: RagTime5Spreadsheet.cxx:1964
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Parser.cxx:1653
MWAWVec3i m_valuesMaxPos
the maximum values position
Definition: RagTime5Spreadsheet.cxx:1962
int m_type
the cell type
Definition: RagTime5Spreadsheet.cxx:146
@ BorderNextVStyle
Definition: RagTime5Spreadsheet.cxx:165
static std::string getBasicCellName(MWAWVec2i const &pos)
return the name of a cell (given row and column) : 0,0 -> A1, 0,1 -> A2...
Definition: MWAWCell.cxx:342
the class to store a color
Definition: libmwaw_internal.hxx:182
virtual ~RagTime5Spreadsheet()
destructor
Definition: RagTime5Spreadsheet.cxx:1332
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:218
std::map< MWAWVec2i, float > m_colWidthsMap
the col widths: map for cols positions to width in points
Definition: RagTime5Spreadsheet.cxx:863
bool readLinkHeader(MWAWInputStreamPtr &input, long fSz, Link &link, long(&values)[4], std::string &message)
try to read a link header
Definition: RagTime5ClusterManager.cxx:547
bool isEmpty() const
returns true if the row is empty
Definition: RagTime5Spreadsheet.cxx:555
MWAWVec2i getSpan(MWAWVec2i const &position) const
returns the span value corresponding to an id
Definition: RagTime5Spreadsheet.cxx:565
std::string getClusterName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:215
RagTime5ClusterManager::Link m_borderPLCLink[2]
the border PLC link(vertical then horizontal)
Definition: RagTime5Spreadsheet.cxx:1972
friend std::ostream & operator<<(std::ostream &o, Row const &row)
Definition: RagTime5Spreadsheet.cxx:528
RagTime5ClusterManager::Link m_textPLCLink
the text PLC link
Definition: RagTime5Spreadsheet.cxx:1968
int m_graphStyleId
the graph style
Definition: RagTime5Spreadsheet.cxx:335
friend std::ostream & operator<<(std::ostream &o, Plane const &plane)
Definition: RagTime5Spreadsheet.cxx:661
std::map< MWAWVec2i, int > m_graphPLCNumRowByPlanesMap
the list of row graph plc by planes
Definition: RagTime5Spreadsheet.cxx:1966
virtual ~ValuesParser()
destructor
Definition: RagTime5Spreadsheet.cxx:1116
void endDocument(bool sendDelayedSubDoc=true)
ends the document
Definition: MWAWSpreadsheetListener.cxx:515
virtual class use to parse the cluster data
Definition: RagTime5ClusterManager.hxx:325
void setAnchorToCell(librevenge::RVNGString const &cellName)
sets the anchor to a cell position
Definition: MWAWPosition.hxx:228
long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:206
void splitRows(MWAWVec2i const &rows)
split rows if needed, so that we can insert cells correspond to the rows interval
Definition: RagTime5Spreadsheet.cxx:574
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:118
friend std::ostream & operator<<(std::ostream &o, CellValue const &cell)
operator<<
Definition: RagTime5Spreadsheet.cxx:105
int getNumPlanes() const
returns the number of planes
Definition: RagTime5Spreadsheet.cxx:711
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
MWAWVec2i getSpan(MWAWVec2i const &position, int plane) const
returns the span value corresponding to an id
Definition: RagTime5Spreadsheet.cxx:830
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:296
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
RagTime5ClusterManager::Link m_valuesLink
the list of values link
Definition: RagTime5Spreadsheet.cxx:1956
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:347
std::string getClusterName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:542
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:349
std::map< MWAWVec2i, int > const m_numRowByPlanes
the number of row by planes
Definition: RagTime5Spreadsheet.cxx:1288
bool readCellBlocks(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, bool unionBlock)
try to read a spreadsheet referenced/union zones
Definition: RagTime5Spreadsheet.cxx:1430
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Parser.cxx:1726
float m_rowHeightDef
the default row height in point
Definition: RagTime5Spreadsheet.cxx:865
shared_ptr< RagTime5SpreadsheetInternal::State > m_state
the state
Definition: RagTime5Spreadsheet.hxx:156
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
int m_numRemainingRows
the remaining row in the planes
Definition: RagTime5Spreadsheet.cxx:1290
shared_ptr< RagTime5ClusterManager::Cluster > getCluster()
return the current cluster
Definition: RagTime5Spreadsheet.cxx:2002
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:232
@ T_FieldList
Definition: RagTime5StructManager.hxx:220
void startDocument()
starts the document
Definition: MWAWSpreadsheetListener.cxx:502
void update(MWAWVec2i const &cols, int id, int contentId, MWAWVec2i const &beginCellPos, std::set< MWAWVec2i > &unsetCell)
update the cells content type
Definition: RagTime5Spreadsheet.cxx:490
@ C_PictureZone
Definition: RagTime5ClusterManager.hxx:223
SpreadsheetCParser(SpreadsheetCParser const &orig)
copy constructor (not implemented)
BorderPLC()
constructor
Definition: RagTime5Spreadsheet.cxx:228
int getSubZoneId(int i) const
returns the sub zone id
Definition: RagTime5StructManager.hxx:273
bool readClusterLinkList(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &listLinks)
try to read a cluster link zone
Definition: RagTime5Parser.cxx:1239
void setVAlignment(VerticalAlignment align)
sets the vertical alignment
Definition: MWAWCell.hxx:266
int m_unknownId
unknown id
Definition: RagTime5Spreadsheet.cxx:419
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
int m_textboxZoneId
the text zone id
Definition: RagTime5Spreadsheet.cxx:859
MWAWVec2i m_rows
the rows (min-max)
Definition: RagTime5Spreadsheet.cxx:536
RagTime5Spreadsheet & operator=(RagTime5Spreadsheet const &orig)
internal: a structure used to store a sheet in RagTime5SpreadsheetInternal
Definition: RagTime5Spreadsheet.cxx:425
MWAWVec2i getBottomRightCell(MWAWVec2i const &position, int plane) const
returns the bottom right cell
Definition: RagTime5Spreadsheet.cxx:825
TextPLC m_defTextPLC
the default text plc
Definition: RagTime5Spreadsheet.cxx:881
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int part2Id=0)
try to send a cluster zone (mainly unimplemented)
Definition: RagTime5Parser.cxx:2493
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:61
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Parser.cxx:1131
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
std::vector< RagTime5StructManager::ZoneLink > m_pictureList
the list of picture zone
Definition: RagTime5Spreadsheet.cxx:889
int m_dataId
the data id (or 0)
Definition: RagTime5StructManager.hxx:299
int m_fieldId
the field id
Definition: RagTime5Spreadsheet.cxx:156
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:202
bool getTextPLC(int id, TextPLC &plc) const
retrieves the text plc
Definition: RagTime5Spreadsheet.cxx:847
int m_newSheetId
a int uses to generate unique sheet id
Definition: RagTime5Spreadsheet.cxx:1318
std::vector< float > getColumnWidths(std::vector< int > &repeated) const
returns the col width dimension in point
Definition: RagTime5Spreadsheet.cxx:784
int m_plane
the plane
Definition: RagTime5Spreadsheet.cxx:671
friend std::ostream & operator<<(std::ostream &o, GraphicPLC const &plc)
operator<<
Definition: RagTime5Spreadsheet.cxx:318
std::string getNewSheetName() const
returns a new sheet name
Definition: RagTime5Spreadsheet.cxx:1308
void setPLCValues(MWAWVec3i const &minPos, MWAWVec3i const &maxPos, int plcType, int plcId)
stores a plc
Definition: RagTime5Spreadsheet.cxx:722
bool m_isMerged
a flag to know if the cell is merged
Definition: RagTime5Spreadsheet.cxx:220
void setNumSpannedCells(MWAWVec2i numSpanned)
sets the number of spanned cells : MWAWVec2i(1,1) means 1 cellule
Definition: MWAWCell.hxx:174
unsigned long m_id
a id value
Definition: RagTime5Spreadsheet.cxx:148
int m_fieldSize
the field size
Definition: RagTime5Spreadsheet.cxx:1280
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
long m_fileType
the file type
Definition: RagTime5StructManager.hxx:239
float getColWidth(int col) const
returns the col width in point
Definition: RagTime5Spreadsheet.cxx:776
GraphicPLC m_defGraphicPLC
the default graphic plc
Definition: RagTime5Spreadsheet.cxx:877
@ Union
Definition: RagTime5Spreadsheet.cxx:164
shared_ptr< Sheet > getSpreadsheet()
return the spreadsheet
Definition: RagTime5Spreadsheet.cxx:2007
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:121
Internal: the helper to read a clustList.
Definition: RagTime5Spreadsheet.cxx:899
std::map< MWAWVec2i, float > m_rowHeightsMap
the row heights: map from rows positions to height in points
Definition: RagTime5Spreadsheet.cxx:867
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
BorderPLC(std::vector< int > const &values)
constructor
Definition: RagTime5Spreadsheet.cxx:232
bool operator!=(BorderPLC const &plc) const
operator!=
Definition: RagTime5Spreadsheet.cxx:288
low level: parser of main spreadsheet cluster
Definition: RagTime5Spreadsheet.cxx:1988
CellPLCParser & operator=(CellPLCParser &orig)
copy operator, not implemented
librevenge::RVNGString m_text
the text
Definition: RagTime5Spreadsheet.cxx:154
bool operator!=(GraphicPLC const &plc) const
operator!=
Definition: RagTime5Spreadsheet.cxx:330
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_dataId
the actual zone id
Definition: RagTime5ClusterManager.hxx:396
a border style PLC
Definition: RagTime5Spreadsheet.cxx:226
void setColsWidth(MWAWVec2i const &cols, float width)
sets the row widths
Definition: RagTime5Spreadsheet.cxx:802
a border
Definition: libmwaw_internal.hxx:314
bool getBinaryResult(MWAWEmbeddedObject &object)
return the final spreadsheet
Definition: MWAWSpreadsheetEncoder.cxx:74
int getGraphicStyleId(int id) const
returns the graphic id
Definition: RagTime5Spreadsheet.cxx:838
TextPLC()
constructor
Definition: RagTime5Spreadsheet.cxx:343
std::string m_extra
extra data
Definition: RagTime5Spreadsheet.cxx:158
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:49
std::vector< Plane > m_planesList
the list of planes
Definition: RagTime5Spreadsheet.cxx:873
void increasePlaneSizeIfNeeded(int newPlane)
increase the number of planes if need
Definition: RagTime5Spreadsheet.cxx:692
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
Internal: the structures of a RagTime5Spreadsheet.
Definition: RagTime5Spreadsheet.cxx:67
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:263
@ RightBit
Definition: libmwaw_internal.hxx:168
void setMergedCells(MWAWVec3i const &minPos, MWAWVec3i const &maxPos)
stores an union of cells
Definition: RagTime5Spreadsheet.cxx:741
static bool readUnicodeString(MWAWInputStreamPtr input, long endPos, librevenge::RVNGString &string)
try to read a unicode string
Definition: RagTime5StructManager.cxx:240
int m_id[8]
the list of id
Definition: RagTime5Spreadsheet.cxx:222
@ BorderNextHStyle
Definition: RagTime5Spreadsheet.cxx:165
bool readSheetDimensions(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link)
try to read the spreadsheet dimensions
Definition: RagTime5Spreadsheet.cxx:1350
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
shared_ptr< RagTime5ClusterManager::Cluster > readSpreadsheetCluster(RagTime5Zone &zone, int zoneType)
try to read a spreadsheet cluster
Definition: RagTime5Spreadsheet.cxx:2667
int m_fieldSize
the field size
Definition: RagTime5Spreadsheet.cxx:965
Row(MWAWVec2i const &row, int plane)
constructor
Definition: RagTime5Spreadsheet.cxx:429
RagTime5ClusterManager::Link m_clusterLink[2]
cluster links list: 0 picture link(size 10), 1 parent link (size 24)
Definition: RagTime5Spreadsheet.cxx:1978
bool isEmpty() const
returns true if the row is empty
Definition: RagTime5Spreadsheet.cxx:440
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
low level: the spreadsheet cluster data
Definition: RagTime5Spreadsheet.cxx:1944
int m_linkId
the link id: 0: unicode, 1: picture link, 2: cluster link unknown, 3: the dimensions link,...
Definition: RagTime5Spreadsheet.cxx:2643
std::vector< long > m_longList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:208
bool readValuesTree(RagTime5SpreadsheetInternal::Sheet &sheet, RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, int rootId, MWAWVec3i const &maxPos)
try to read a spreadsheet tree of values
Definition: RagTime5Spreadsheet.cxx:1534
ClustListParser(RagTime5ClusterManager &clusterManager, int fieldSize, std::string const &zoneName)
constructor
Definition: RagTime5Spreadsheet.cxx:901
void setContent(int id, int contentId)
sets the cell content
Definition: RagTime5Spreadsheet.cxx:179
shared_ptr< ClusterSpreadsheet > getSpreadsheetCluster()
return the spreadsheet cluster
Definition: RagTime5Spreadsheet.cxx:1997
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
virtual ~SpreadsheetCParser()
destructor
Definition: RagTime5Spreadsheet.cxx:2661
int m_plane
the cell plane
Definition: RagTime5Spreadsheet.cxx:218
CellPLCParser(Sheet &sheet, int which, int fieldSize, std::map< MWAWVec2i, int > const &numRowByPlanes)
constructor
Definition: RagTime5Spreadsheet.cxx:1123
int m_which
the type: 0=graphicStyles, 1=textStyles, 2=vertical border, 3=horizontal border
Definition: RagTime5Spreadsheet.cxx:1278
MWAWVec2i m_planes
the actual plane set
Definition: RagTime5Spreadsheet.cxx:1284
friend std::ostream & operator<<(std::ostream &o, BorderPLC const &plc)
operator<<
Definition: RagTime5Spreadsheet.cxx:250
shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Parser.cxx:400
bool parseZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a zone
Definition: RagTime5Spreadsheet.cxx:2109
int m_what
a index to know which field is parsed : 0: main, 1: list, 2: fSz69...
Definition: RagTime5Spreadsheet.cxx:2631
int m_valuesTreeRoot
the value tree root
Definition: RagTime5Spreadsheet.cxx:1960
bool isMergedBorder() const
returns true if the cell is a merged cell
Definition: RagTime5Spreadsheet.cxx:240
int m_row
the actual row
Definition: RagTime5Spreadsheet.cxx:1282
@ GraphicStyle
Definition: RagTime5Spreadsheet.cxx:164
@ Char
Definition: MWAWPosition.hxx:51
bool operator==(TextPLC const &plc) const
operator==
Definition: RagTime5Spreadsheet.cxx:404
void splitColumns(MWAWVec2i const &cols)
split columns if needed, so that we can insert cells correspond to the cols interval
Definition: RagTime5Spreadsheet.cxx:449
std::vector< CellValue > m_valuesList
the list of values
Definition: RagTime5Spreadsheet.cxx:871
Type
the cluster type
Definition: RagTime5ClusterManager.hxx:218
int getGraphicStyleId() const
returns the graphic id
Definition: RagTime5Spreadsheet.cxx:313
std::vector< long > m_longList
the list of long value
Definition: RagTime5StructManager.hxx:251
virtual ~CellPLCParser()
destructor
Definition: RagTime5Spreadsheet.cxx:1298
void setRowsHeight(MWAWVec2i const &rows, float height)
sets the row heights
Definition: RagTime5Spreadsheet.cxx:767
int m_textStyleId
the text style
Definition: RagTime5Spreadsheet.cxx:415
@ BorderPrevVStyle
Definition: RagTime5Spreadsheet.cxx:165
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
@ VALIGN_CENTER
Definition: MWAWCell.hxx:122
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
@ C_Script
Definition: RagTime5ClusterManager.hxx:220
RagTime5ClusterManager::Link m_valuesTreeLink
the value tree link
Definition: RagTime5Spreadsheet.cxx:1958
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
@ F_NUMBER
Definition: MWAWCell.hxx:56
@ L_List
Definition: RagTime5ClusterManager.hxx:110
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
@ F_TIME
Definition: MWAWCell.hxx:56
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int n, libmwaw::DebugStream &debStream)
try to parse a data
Definition: RagTime5Spreadsheet.cxx:987
RagTime5ClusterManager::Cluster::Type getClusterType(int zId) const
returns the cluster type corresponding to zone id or C_Unknown (if the zone is not a cluster or was n...
Definition: RagTime5Parser.cxx:407
@ LeftBit
Definition: libmwaw_internal.hxx:168
@ HALIGN_DEFAULT
Definition: MWAWCell.hxx:117
bool hasContent() const
returns true if the cell has no id or is merged
Definition: RagTime5Spreadsheet.cxx:188
CellValue()
constructor
Definition: RagTime5Spreadsheet.cxx:72
@ BorderPrevHStyle
Definition: RagTime5Spreadsheet.cxx:165
IdPosition
enum to define the id position
Definition: RagTime5Spreadsheet.cxx:164
std::string getName(int plane) const
returns a name corresponding to a plane
Definition: RagTime5Spreadsheet.cxx:685
@ C_TEXT
Definition: MWAWCell.hxx:390
a row: a list of cell map
Definition: RagTime5Spreadsheet.cxx:427
@ Page
Definition: MWAWPosition.hxx:51
friend std::ostream & operator<<(std::ostream &o, TextPLC const &plc)
operator<<
Definition: RagTime5Spreadsheet.cxx:375
@ T_LongList
Definition: RagTime5StructManager.hxx:220
bool parseHeaderZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse the header zone
Definition: RagTime5Spreadsheet.cxx:2529
HorizontalAlignment
the default horizontal alignment.
Definition: MWAWCell.hxx:116
std::map< MWAWVec2i, int > m_textPLCNumRowByPlanesMap
the list of row text plc by planes
Definition: RagTime5Spreadsheet.cxx:1970
@ TopBit
Definition: libmwaw_internal.hxx:168
Sheet()
constructor
Definition: RagTime5Spreadsheet.cxx:679
std::map< MWAWVec2i, int > m_PLCNumRowByPlanesMap
the list of row plc by planes
Definition: RagTime5Spreadsheet.cxx:2653
@ C_SpreadsheetZone
Definition: RagTime5ClusterManager.hxx:223
main class used to define store librevenge::RVNGSpreadsheetInterface lists of command in a librevenge...
Definition: MWAWSpreadsheetEncoder.hxx:56
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
std::string m_name
the field name
Definition: RagTime5StructManager.hxx:371
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
void endZone()
end of a start zone call
Definition: RagTime5Spreadsheet.cxx:2012
a plane: a list of rows map
Definition: RagTime5Spreadsheet.cxx:542
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:157
shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Spreadsheet.hxx:149
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:124
MWAWCell::HorizontalAlignment getHorizontalAlignment() const
returns the alignement
Definition: RagTime5Spreadsheet.cxx:359
friend class RagTime5SpreadsheetInternal::SubDocument
Definition: RagTime5Spreadsheet.hxx:77
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:105
ClusterSpreadsheet()
constructor
Definition: RagTime5Spreadsheet.cxx:1946
shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Spreadsheet.hxx:151
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &zone, int n, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Spreadsheet.cxx:1140
int m_flags
text flag
Definition: RagTime5Spreadsheet.cxx:421
void closeSheetRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1646
std::map< MWAWVec2i, int > m_borderPLCNumRowByPlanesMap[2]
the list of row border plc by planes
Definition: RagTime5Spreadsheet.cxx:1974
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
float m_colWidthDef
the default col width in point
Definition: RagTime5Spreadsheet.cxx:861
MWAWFont m_defaultFont
the default font (Palatino, 12)
Definition: RagTime5Spreadsheet.cxx:885
the cluster data
Definition: RagTime5ClusterManager.hxx:216
bool parseField(RagTime5StructManager::Field const &field, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5Spreadsheet.cxx:2123
virtual ~ClustListParser()
destructor
Definition: RagTime5Spreadsheet.cxx:974
float getRowHeight(int row) const
returns the row height in point
Definition: RagTime5Spreadsheet.cxx:759
Type m_type
the link type
Definition: RagTime5ClusterManager.hxx:196
int m_type
the cluster type
Definition: RagTime5ClusterManager.hxx:390
int getBorderGraphicStyleId(bool prevCell) const
returns the graphic style border id corresponding to this cell
Definition: RagTime5Spreadsheet.cxx:245
@ TextStyle
Definition: RagTime5Spreadsheet.cxx:164
shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Parser.cxx:350
std::vector< int > m_clusterList
the list of read cluster
Definition: RagTime5Spreadsheet.cxx:962
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0)
try to send the cluster zone
Definition: RagTime5Spreadsheet.cxx:1713
@ HALIGN_LEFT
Definition: MWAWCell.hxx:116
GraphicPLC()
constructor
Definition: RagTime5Spreadsheet.cxx:299
ValuesParser(Sheet &sheet)
constructor
Definition: RagTime5Spreadsheet.cxx:981
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
Internal: the state of a RagTime5Spreadsheet.
Definition: RagTime5Spreadsheet.cxx:1304
BorderPLC m_defBordersPLC[2]
the default border plc (vertical and horizontal)
Definition: RagTime5Spreadsheet.cxx:883
RagTime5Spreadsheet(RagTime5Spreadsheet const &orig)
std::map< MWAWVec2i, MWAWVec2i > m_unitedCellMap
the list of united cell: map from TL cell to RB cell
Definition: RagTime5Spreadsheet.cxx:675
SpreadsheetCParser(RagTime5ClusterManager &parser, int type)
constructor
Definition: RagTime5Spreadsheet.cxx:1990
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:432
@ C_NUMBER
Definition: MWAWCell.hxx:390
bool parseDataZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a data block
Definition: RagTime5Spreadsheet.cxx:2216
RagTime5ClusterManager::Link m_dimensionLink
the dimension link
Definition: RagTime5Spreadsheet.cxx:1954
friend std::ostream & operator<<(std::ostream &o, CellContent const &cell)
small operator<<
Definition: RagTime5Spreadsheet.cxx:198
shared_ptr< Sheet > m_sheet
the sheet
Definition: RagTime5Spreadsheet.cxx:2629
ClustListParser(ClustListParser &orig)
copy constructor, not implemented
Plane(int plane)
constructor
Definition: RagTime5Spreadsheet.cxx:544
std::string m_name
the sheet name
Definition: RagTime5Spreadsheet.cxx:857
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:116
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
a zone link in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:266
@ Value
Definition: RagTime5Spreadsheet.cxx:164
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:269
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
std::string getClusterName(int id) const
return a name which can be used for debugging
Definition: RagTime5Spreadsheet.cxx:912
Type m_type
the field type
Definition: RagTime5StructManager.hxx:237
GraphicPLC(std::vector< int > const &values)
constructor
Definition: RagTime5Spreadsheet.cxx:303
std::vector< Field > m_fieldList
the list of field
Definition: RagTime5StructManager.hxx:259
internal: a structure used to store a value in a cell in RagTime5SpreadsheetInternal
Definition: RagTime5Spreadsheet.cxx:70
MWAWVec2i const & getRows() const
returns the rows
Definition: RagTime5Spreadsheet.cxx:435
a text style PLC
Definition: RagTime5Spreadsheet.cxx:341
std::string m_name
the link name
Definition: RagTime5ClusterManager.hxx:198
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
@ HALIGN_CENTER
Definition: MWAWCell.hxx:116
std::vector< TextPLC > m_textPLCList
the text plc
Definition: RagTime5Spreadsheet.cxx:879
ClusterParser(RagTime5ClusterManager &parser, int type, std::string const &zoneName)
constructor
Definition: RagTime5ClusterManager.hxx:327
Sheet & m_sheet
the actual sheet
Definition: RagTime5Spreadsheet.cxx:1113
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:204
Internal: the helper to read a list of cell to paragraph/char/... data.
Definition: RagTime5Spreadsheet.cxx:1121
int numPages() const
returns the number of pages
Definition: RagTime5Spreadsheet.cxx:1340
@ F_TEXT
Definition: MWAWCell.hxx:56
Internal: the helper to read a cell values.
Definition: RagTime5Spreadsheet.cxx:979
bool operator==(GraphicPLC const &plc) const
operator==
Definition: RagTime5Spreadsheet.cxx:325
shared_ptr< ClusterSpreadsheet > m_cluster
the current cluster
Definition: RagTime5Spreadsheet.cxx:2627
void resetMinRow(int row)
reset each row's cell position to new row position
Definition: RagTime5Spreadsheet.cxx:518
Generated on Wed Jun 17 2020 06:30:13 for libmwaw by
doxygen 1.8.18