Go to the documentation of this file.
38 #ifndef CLARIS_WKS_SPREADSHEET
39 # define CLARIS_WKS_SPREADSHEET
129 std::shared_ptr<ClarisWksSpreadsheetInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisWksSpreadsheet & operator=(ClarisWksSpreadsheet const &orig)=delete
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool sendSpreadsheetAsTable(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksSpreadsheet.cxx:583
int m_borders
the border in v1-3 spreadsheet
Definition: ClarisWksDbaseContent.hxx:123
MWAWFont m_font
the font ( in v1-3 spreadsheet)
Definition: ClarisWksDbaseContent.hxx:121
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
int numPages() const
returns the number of pages
Definition: ClarisWksSpreadsheet.cxx:165
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
std::shared_ptr< ClarisWksStruct::DSET > readSpreadsheetZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksSpreadsheet.cxx:177
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:113
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
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:458
@ F_DATE
Definition: MWAWCell.hxx:56
void updateFormulaCells(MWAWVec2i const &removeDelta)
update the formula cell (removing delta to each position)
Definition: ClarisWksDbaseContent.cxx:1505
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
MWAWCell::HorizontalAlignment m_hAlign
the cell alignment : by default nothing
Definition: ClarisWksDbaseContent.hxx:109
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:464
@ Spreadsheet
Definition: MWAWListener.hxx:56
MWAWColor m_backgroundColor
the background color
Definition: ClarisWksDbaseContent.hxx:119
@ BottomBit
Definition: libmwaw_internal.hxx:178
ClarisWksSpreadsheet(ClarisWksSpreadsheet const &orig)=delete
std::map< int, std::shared_ptr< Spreadsheet > > m_spreadsheetMap
a map zoneId to spreadsheet
Definition: ClarisWksSpreadsheet.cxx:140
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:242
std::shared_ptr< ClarisWksDbaseContent > m_content
the data
Definition: ClarisWksSpreadsheet.cxx:125
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
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:258
bool sendSpreadsheet(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksSpreadsheet.cxx:474
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
void setVAlignment(VerticalAlignment align)
sets the vertical alignment
Definition: MWAWCell.hxx:292
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:86
virtual ~ClarisWksSpreadsheet()
destructor
Definition: ClarisWksSpreadsheet.cxx:156
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:420
a border
Definition: libmwaw_internal.hxx:333
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
Spreadsheet(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
Definition: ClarisWksSpreadsheet.cxx:63
@ VALIGN_BOTTOM
Definition: MWAWCell.hxx:134
double m_value
the cell value
Definition: MWAWCell.hxx:485
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
@ RightBit
Definition: libmwaw_internal.hxx:178
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:83
bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector< MWAWVec2i > &res)
try to read a structured zone list of cells
Definition: ClarisWksDocument.cxx:2379
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
Internal: the structures of a ClarisWksSpreadsheet.
Definition: ClarisWksSpreadsheet.cxx:59
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
@ LeftBit
Definition: libmwaw_internal.hxx:178
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
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:180
std::shared_ptr< ClarisWksSpreadsheetInternal::State > m_state
the state
Definition: ClarisWksSpreadsheet.hxx:129
bool readZone1(ClarisWksSpreadsheetInternal::Spreadsheet &sheet)
try to read the first spreadsheet zone
Definition: ClarisWksSpreadsheet.cxx:353
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
State()
constructor
Definition: ClarisWksSpreadsheet.cxx:135
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
@ TopBit
Definition: libmwaw_internal.hxx:178
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:382
~Spreadsheet() final
destructor
Definition: ClarisWksSpreadsheet.cxx:128
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
std::vector< int > m_colWidths
the columns width
Definition: ClarisWksSpreadsheet.cxx:121
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
a basic structure
Definition: ClarisWksStruct.hxx:53
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
ClarisWksSpreadsheet(ClarisWksDocument &document)
constructor
Definition: ClarisWksSpreadsheet.cxx:148
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:107
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:184
bool canSendSpreadsheetAsGraphic(int) const
check if we can send a spreadsheet as graphic
Definition: ClarisWksSpreadsheet.hxx:90
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
int version() const
returns the file version
Definition: ClarisWksSpreadsheet.cxx:159
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20