Go to the documentation of this file.
38 #ifndef CLARIS_WKS_DATABASE
39 # define CLARIS_WKS_DATABASE
131 shared_ptr<ClarisWksDatabaseInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisWksDatabase & operator=(ClarisWksDatabase const &orig)
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
Type
Definition: ClarisWksDatabase.cxx:60
@ F_PopupMenu
Definition: ClarisWksDatabase.cxx:62
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
friend std::ostream & operator<<(std::ostream &o, Field const &field)
operator<<
Definition: ClarisWksDatabase.cxx:70
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
@ F_Formula
Definition: ClarisWksDatabase.cxx:61
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
virtual ~ClarisWksDatabase()
destructor
Definition: ClarisWksDatabase.cxx:259
@ F_DATE
Definition: MWAWCell.hxx:56
bool readFields(ClarisWksDatabaseInternal::Database &dBase)
try to read the database structure
Definition: ClarisWksDatabase.cxx:457
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
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
int version() const
returns the file version
Definition: ClarisWksDatabase.cxx:262
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
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:204
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksDatabase.hxx:128
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
@ F_Unknown
Definition: ClarisWksDatabase.cxx:60
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
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
@ F_RadioButton
Definition: ClarisWksDatabase.cxx:62
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:60
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
ClarisWksDatabase(ClarisWksDocument &document)
constructor
Definition: ClarisWksDatabase.cxx:253
@ F_Checkbox
Definition: ClarisWksDatabase.cxx:62
State()
constructor
Definition: ClarisWksDatabase.cxx:241
std::string m_default
the default value
Definition: ClarisWksDatabase.cxx:206
struct which stores a record in ClarisWksDbaseContent
Definition: ClarisWksDbaseContent.hxx:83
int m_defType
the local definition type
Definition: ClarisWksDatabase.cxx:200
shared_ptr< ClarisWksStruct::DSET > readDatabaseZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksDatabase.cxx:280
ClarisWksDocument & m_document
the document
Definition: ClarisWksDatabase.hxx:125
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:174
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:166
bool isText() const
Definition: ClarisWksDatabase.cxx:157
void insertCharacter(unsigned char c)
insert a character using the font converter to find the utf8 character
Definition: MWAWSpreadsheetListener.cxx:257
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksDatabase.hxx:134
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
@ F_Date
Definition: ClarisWksDatabase.cxx:60
double m_value
the cell value
Definition: MWAWCell.hxx:434
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
@ F_Text
Definition: ClarisWksDatabase.cxx:60
bool isFormula() const
Definition: ClarisWksDatabase.cxx:161
Internal: the state of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:239
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
ClarisWksDatabase(ClarisWksDatabase const &orig)
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:53
shared_ptr< ClarisWksDbaseContent > m_content
the data
Definition: ClarisWksDatabase.cxx:230
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
Definition: ClarisWksDatabase.cxx:58
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
@ F_Multimedia
Definition: ClarisWksDatabase.cxx:63
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
@ F_FormulaSum
Definition: ClarisWksDatabase.cxx:61
@ F_NUMBER
Definition: MWAWCell.hxx:56
@ F_TIME
Definition: MWAWCell.hxx:56
Database(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksDatabase.cxx:215
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:60
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
bool readDefaults(ClarisWksDatabaseInternal::Database &dBase)
try to read the default structure
Definition: ClarisWksDatabase.cxx:645
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
int m_resType
the result type
Definition: ClarisWksDatabase.cxx:202
Internal: the structures of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:57
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
std::map< int, shared_ptr< Database > > m_databaseMap
Definition: ClarisWksDatabase.cxx:245
friend std::ostream & operator<<(std::ostream &o, Database const &doc)
operator<<
Definition: ClarisWksDatabase.cxx:222
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
bool readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2073
shared_ptr< ClarisWksDatabaseInternal::State > m_state
the state
Definition: ClarisWksDatabase.hxx:131
void closeSheetCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1760
Field()
Definition: ClarisWksDatabase.cxx:65
std::vector< Field > m_fields
the list of field
Definition: ClarisWksDatabase.cxx:228
int numPages() const
returns the number of pages
Definition: ClarisWksDatabase.cxx:268
bool sendDatabase(int number, MWAWListenerPtr listener)
sends the zone data to the listener (if it exists )
Definition: ClarisWksDatabase.cxx:811
MWAWCell::Format m_format
the format
Definition: ClarisWksDbaseContent.hxx:94
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
@ F_ValueList
Definition: ClarisWksDatabase.cxx:62
void insertTab()
adds a tab
Definition: MWAWSpreadsheetListener.cxx:361
bool canSendDatabaseAsGraphic(int) const
check if we can send a database as graphic
Definition: ClarisWksDatabase.hxx:91
virtual ~Database()
destructor
Definition: ClarisWksDatabase.cxx:233
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
bool readLayout(ClarisWksDatabaseInternal::Database &dBase)
try to read the layout structures
Definition: ClarisWksDatabase.cxx:720
Internal: the database of a ClarisWksDatabase.
Definition: ClarisWksDatabase.cxx:213
Type m_type
Definition: ClarisWksDatabase.cxx:198
void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content, int numRepeated=1)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1656
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18