Go to the documentation of this file.
38 #ifndef CLARIS_WKS_SPREADSHEET
39 # define CLARIS_WKS_SPREADSHEET
129 shared_ptr<ClarisWksSpreadsheetInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool sendSpreadsheetAsTable(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksSpreadsheet.cxx:595
int m_borders
the border in v1-3 spreadsheet
Definition: ClarisWksDbaseContent.hxx:110
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:108
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
int numPages() const
returns the number of pages
Definition: ClarisWksSpreadsheet.cxx:162
ClarisWksSpreadsheet & operator=(ClarisWksSpreadsheet const &orig)
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:100
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void closeSheet()
closes this sheet
Definition: MWAWSpreadsheetListener.cxx:1612
Internal: the state of a ClarisWksSpreadsheet.
Definition: ClarisWksSpreadsheet.cxx:133
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:407
@ F_DATE
Definition: MWAWCell.hxx:56
void updateFormulaCells(MWAWVec2i const &removeDelta)
update the formula cell (removing delta to each position)
Definition: ClarisWksDbaseContent.cxx:1452
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:129
MWAWCell::HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition: ClarisWksDbaseContent.hxx:96
shared_ptr< ClarisWksDbaseContent > m_content
the data
Definition: ClarisWksSpreadsheet.cxx:125
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
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
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
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:413
@ Spreadsheet
Definition: MWAWListener.hxx:56
MWAWColor m_backgroundColor
the background color
Definition: ClarisWksDbaseContent.hxx:106
@ BottomBit
Definition: libmwaw_internal.hxx:168
shared_ptr< ClarisWksSpreadsheetInternal::State > m_state
the state
Definition: ClarisWksSpreadsheet.hxx:129
float getRowHeight(int row) const
returns the row size in point
Definition: ClarisWksSpreadsheet.cxx:76
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
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
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksSpreadsheet.hxx:132
the main class to read the text part of Claris Works file
Definition: ClarisWksSpreadsheet.hxx:71
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
small structure used to parse main content of a spreadsheet/database zone
Definition: ClarisWksDbaseContent.hxx:58
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:232
bool sendSpreadsheet(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksSpreadsheet.cxx:483
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
void setVAlignment(VerticalAlignment align)
sets the vertical alignment
Definition: MWAWCell.hxx:266
@ TableDimBit
Definition: MWAWTable.hxx:56
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:83
virtual ~ClarisWksSpreadsheet()
destructor
Definition: ClarisWksSpreadsheet.cxx:153
ClarisWksSpreadsheet(ClarisWksSpreadsheet const &orig)
ClarisWksDocument & m_document
the document
Definition: ClarisWksSpreadsheet.hxx:123
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
Internal the spreadsheet.
Definition: ClarisWksSpreadsheet.cxx:61
bool readRowHeightZone(ClarisWksSpreadsheetInternal::Spreadsheet &sheet)
try to read the row height zone
Definition: ClarisWksSpreadsheet.cxx:417
void insertCharacter(unsigned char c)
insert a character using the font converter to find the utf8 character
Definition: MWAWSpreadsheetListener.cxx:257
a border
Definition: libmwaw_internal.hxx:314
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
Spreadsheet(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
Definition: ClarisWksSpreadsheet.cxx:63
@ VALIGN_BOTTOM
Definition: MWAWCell.hxx:122
double m_value
the cell value
Definition: MWAWCell.hxx:434
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
@ RightBit
Definition: libmwaw_internal.hxx:168
float getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: ClarisWksSpreadsheet.cxx:83
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector< MWAWVec2i > &res)
try to read a structured zone list of cells
Definition: ClarisWksDocument.cxx:2253
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:121
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
std::map< int, shared_ptr< Spreadsheet > > m_spreadsheetMap
a map zoneId to spreadsheet
Definition: ClarisWksSpreadsheet.cxx:139
Internal: the structures of a ClarisWksSpreadsheet.
Definition: ClarisWksSpreadsheet.cxx:59
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
shared_ptr< ClarisWksStruct::DSET > readSpreadsheetZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksSpreadsheet.cxx:174
@ LeftBit
Definition: libmwaw_internal.hxx:168
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksSpreadsheet.hxx:126
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
bool readZone1(ClarisWksSpreadsheetInternal::Spreadsheet &sheet)
try to read the first spreadsheet zone
Definition: ClarisWksSpreadsheet.cxx:350
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
State()
constructor
Definition: ClarisWksSpreadsheet.cxx:135
@ TopBit
Definition: libmwaw_internal.hxx:168
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
void setFont(MWAWFont const &font)
sets the font
Definition: MWAWSpreadsheetListener.cxx:386
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
std::vector< int > m_colWidths
the columns width
Definition: ClarisWksSpreadsheet.cxx:121
void closeSheetRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1646
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
void closeSheetCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1760
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
ClarisWksSpreadsheet(ClarisWksDocument &document)
constructor
Definition: ClarisWksSpreadsheet.cxx:147
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:94
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
std::map< int, int > m_rowHeightMap
a map row to height
Definition: ClarisWksSpreadsheet.cxx:123
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
virtual ~Spreadsheet()
destructor
Definition: ClarisWksSpreadsheet.cxx:128
bool canSendSpreadsheetAsGraphic(int) const
check if we can send a spreadsheet as graphic
Definition: ClarisWksSpreadsheet.hxx:90
void insertEOL(bool softBreak=false)
adds an end of line ( by default an hard one)
Definition: MWAWSpreadsheetListener.cxx:338
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
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
friend std::ostream & operator<<(std::ostream &o, Spreadsheet const &doc)
operator<<
Definition: ClarisWksSpreadsheet.cxx:70
void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content, int numRepeated=1)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1656
int version() const
returns the file version
Definition: ClarisWksSpreadsheet.cxx:156
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18