Go to the documentation of this file.
38 #ifndef CLARIS_WKS_DATABASE
39 # define CLARIS_WKS_DATABASE
131 std::shared_ptr<ClarisWksDatabaseInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
@ Cell
Definition: MWAWPosition.hxx:51
Type
Definition: ClarisWksDatabase.cxx:61
@ F_PopupMenu
Definition: ClarisWksDatabase.cxx:63
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
friend std::ostream & operator<<(std::ostream &o, Field const &field)
operator<<
Definition: ClarisWksDatabase.cxx:78
MWAWCellContent m_content
the content
Definition: ClarisWksDbaseContent.hxx:113
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ F_Formula
Definition: ClarisWksDatabase.cxx:62
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
long m_headerSize
the header size
Definition: ClarisWksStruct.hxx:75
virtual ~ClarisWksDatabase()
destructor
Definition: ClarisWksDatabase.cxx:276
@ F_DATE
Definition: MWAWCell.hxx:56
bool readFields(ClarisWksDatabaseInternal::Database &dBase)
try to read the database structure
Definition: ClarisWksDatabase.cxx:474
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
int version() const
returns the file version
Definition: ClarisWksDatabase.cxx:279
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:464
@ Spreadsheet
Definition: MWAWListener.hxx:56
the main class to read the text part of Claris Works file
Definition: ClarisWksDatabase.hxx:72
std::string m_name
the field name
Definition: ClarisWksDatabase.cxx:212
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:345
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksDatabase.hxx:128
std::vector< MWAWEntry > m_valuesList
list of different value list
Definition: ClarisWksDatabase.cxx:216
std::vector< MWAWCellContent::FormulaInstruction > m_formula
the formula
Definition: ClarisWksDatabase.cxx:218
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
@ F_Unknown
Definition: ClarisWksDatabase.cxx:61
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
std::shared_ptr< ClarisWksStruct::DSET > readDatabaseZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksDatabase.cxx:297
@ F_RadioButton
Definition: ClarisWksDatabase.cxx:63
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
@ F_Number
Definition: ClarisWksDatabase.cxx:61
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
ClarisWksDatabase(ClarisWksDocument &document)
constructor
Definition: ClarisWksDatabase.cxx:268
@ F_Checkbox
Definition: ClarisWksDatabase.cxx:63
~Database() final
destructor
Definition: ClarisWksDatabase.cxx:247
State()
constructor
Definition: ClarisWksDatabase.cxx:255
std::map< int, std::shared_ptr< Database > > m_databaseMap
Definition: ClarisWksDatabase.cxx:260
Defines MWAWCell (cell content and format)
std::string m_default
the default value
Definition: ClarisWksDatabase.cxx:214
std::shared_ptr< ClarisWksDatabaseInternal::State > m_state
the state
Definition: ClarisWksDatabase.hxx:131
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:86
int m_defType
the local definition type
Definition: ClarisWksDatabase.cxx:208
ClarisWksDocument & m_document
the document
Definition: ClarisWksDatabase.hxx:125
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:217
librevenge::RVNGString m_anchorCellName
the anchor cell name
Definition: MWAWPosition.hxx:272
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
ClarisWksDatabase(ClarisWksDatabase const &)=delete
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
int getNumDefault(int version) const
Definition: ClarisWksDatabase.cxx:174
bool isText() const
Definition: ClarisWksDatabase.cxx:165
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksDatabase.hxx:134
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
@ F_Date
Definition: ClarisWksDatabase.cxx:61
double m_value
the cell value
Definition: MWAWCell.hxx:485
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
@ F_Text
Definition: ClarisWksDatabase.cxx:61
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
bool isFormula() const
Definition: ClarisWksDatabase.cxx:169
std::shared_ptr< ClarisWksDbaseContent > m_content
the data
Definition: ClarisWksDatabase.cxx:244
Internal: the state of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:253
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
std::map< int, MWAWFont > m_posToFontMap
map id to font ( in database)
Definition: ClarisWksDbaseContent.hxx:125
bool readIntZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete, int intSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32)
Definition: ClarisWksStruct.cxx:99
bool sendDatabasePictZone(int pictId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a database picture
Definition: ClarisWksDocument.cxx:504
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
Definition: ClarisWksDatabase.cxx:59
bool m_valueSet
true if the value has been set
Definition: MWAWCell.hxx:487
@ F_Cell
Definition: MWAWCell.hxx:398
@ F_Multimedia
Definition: ClarisWksDatabase.cxx:64
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
@ F_FormulaSum
Definition: ClarisWksDatabase.cxx:62
@ F_NUMBER
Definition: MWAWCell.hxx:56
@ F_TIME
Definition: MWAWCell.hxx:56
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
Database(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksDatabase.cxx:227
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
@ F_Time
Definition: ClarisWksDatabase.cxx:61
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
bool readDefaults(ClarisWksDatabaseInternal::Database &dBase)
try to read the default structure
Definition: ClarisWksDatabase.cxx:656
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
int m_resType
the result type
Definition: ClarisWksDatabase.cxx:210
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
Internal: the structures of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:58
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
ClarisWksDatabase & operator=(ClarisWksDatabase const &)=delete
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2095
a basic structure
Definition: ClarisWksStruct.hxx:53
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Field()
Definition: ClarisWksDatabase.cxx:66
std::vector< Field > m_fields
the list of field
Definition: ClarisWksDatabase.cxx:242
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
int numPages() const
returns the number of pages
Definition: ClarisWksDatabase.cxx:285
bool sendDatabase(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksDatabase.cxx:825
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:107
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
@ F_ValueList
Definition: ClarisWksDatabase.cxx:63
bool canSendDatabaseAsGraphic(int) const
check if we can send a database as graphic
Definition: ClarisWksDatabase.hxx:91
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
bool readLayout(ClarisWksDatabaseInternal::Database &dBase)
try to read the layout structures
Definition: ClarisWksDatabase.cxx:747
Internal: the database of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:225
Type m_type
Definition: ClarisWksDatabase.cxx:206
@ F_TEXT
Definition: MWAWCell.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20