MsWksDBParser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 #ifndef MS_WKS_DB_PARSER
35 # define MS_WKS_DB_PARSER
36 
37 #include <list>
38 #include <string>
39 #include <vector>
40 
41 #include "MWAWCell.hxx"
42 #include "MWAWDebug.hxx"
43 #include "MWAWEntry.hxx"
44 #include "MWAWInputStream.hxx"
45 
46 #include "MsWksDocument.hxx"
47 
48 #include "MWAWParser.hxx"
49 
50 namespace MsWksDBParserInternal
51 {
52 class Form;
53 struct State;
54 
55 class SubDocument;
56 }
57 
58 class MsWksDocument;
59 
66 {
68 public:
72  virtual ~MsWksDBParser();
73 
75  bool checkHeader(MWAWHeader *header, bool strict=false);
76 
77  // the main parse function
78  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface);
79 
80 protected:
82  void init();
83 
85  void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
86 
88  bool createZones();
89 
90  //
91  // intermediate level
92  //
93 
95  bool readDataBase();
96 
98  bool sendDatabase();
99 
100  //
101  // low level
102  //
103 
105  // FIELD/RECORD/FILTERS
107 
109  bool readFieldTypes();
111  bool readFieldTypesV2();
115  bool readRecords(bool onlyCheck);
117  bool readFilters();
119  bool readColSize(std::vector<int> &colSize);
120 
122  bool readDefaultValues();
124  bool readFormula();
126  bool readSerialFormula();
127 
128 
130  // FORM
132 
133  bool readForms();
135  bool readFormV2();
137  bool readForm();
140 
142  // REPORT
144 
145  bool readReports();
147  bool readReportHeader();
149  bool readReportV2();
150 
152  // UNKNOWN
154 
158  bool readUnknownV2();
159 
160 
161 protected:
162  //
163  // data
164  //
166  shared_ptr<MsWksDBParserInternal::State> m_state;
167 
169  std::vector<MWAWEntry> m_listZones;
170 
172  shared_ptr<MsWksDocument> m_document;
173 };
174 #endif
175 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWCellContent::FormulaInstruction::F_CellList
@ F_CellList
Definition: MWAWCell.hxx:360
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MsWksDBParserInternal::Forms::m_listForms
std::vector< Form > m_listForms
the list of forms
Definition: MsWksDBParser.cxx:400
MWAWDocument::MWAW_K_DATABASE
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
MsWksDBParserInternal::FormType::operator<<
friend std::ostream & operator<<(std::ostream &o, FormType const &form)
operator<<
Definition: MsWksDBParser.cxx:314
MsWksDBParserInternal::State::m_pageLength
int m_pageLength
the page length in point (if known)
Definition: MsWksDBParser.cxx:436
MWAWCell::getFormat
Format const & getFormat() const
returns the cell format
Definition: MWAWCell.hxx:211
MsWksDBParserInternal::Form::operator<<
friend std::ostream & operator<<(std::ostream &o, Form const &form)
operator<<
Definition: MsWksDBParser.cxx:370
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:281
MsWksDocument::Zone
a zone of a MsWksDocument ( main, header, footer )
Definition: MsWksDocument.hxx:80
MsWksDBParser::m_document
shared_ptr< MsWksDocument > m_document
the actual zone
Definition: MsWksDBParser.hxx:172
MsWksDocument
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
MsWksDBParserInternal::SerialFormula::m_prefix
std::string m_prefix
the prefix
Definition: MsWksDBParser.cxx:84
MWAWEntry::setName
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:137
MsWksDBParserInternal::FieldType::m_height
int m_height
the height
Definition: MsWksDBParser.cxx:179
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
MsWksDBParser::init
void init()
inits all internal variables
Definition: MsWksDBParser.cxx:511
MWAWSpreadsheetListenerPtr
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
MsWksDBParser::readFormTypes
bool readFormTypes(MsWksDBParserInternal::Form &form)
read a form types
Definition: MsWksDBParser.cxx:1095
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MsWksDBParserInternal::State::m_widthCols
std::vector< int > m_widthCols
the column size in pixels(?)
Definition: MsWksDBParser.cxx:427
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
MsWksDBParserInternal::State
Internal: the state of a MsWksDBParser.
Definition: MsWksDBParser.cxx:417
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MsWksDBParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
virtual function used to parse the input
Definition: MsWksDBParser.cxx:525
MWAWCellContent::setValue
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:407
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
MsWksDBParserInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: MsWksDBParser.cxx:479
MsWksDBParserInternal::State::m_database
DataBase m_database
the database
Definition: MsWksDBParser.cxx:425
MsWksDBParser::readFieldTypes
bool readFieldTypes()
reads the list of the fields type v3-v4
Definition: MsWksDBParser.cxx:1474
MsWksDBParserInternal::FieldType::m_serialId
int m_serialId
serialized field identificator
Definition: MsWksDBParser.cxx:174
MsWksDBParserInternal::DataBase::m_numRecords
int m_numRecords
the number of records
Definition: MsWksDBParser.cxx:267
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
MsWksDBParserInternal::FormVisibility
FormVisibility
Definition: MsWksDBParser.cxx:281
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
MsWksGraph.hxx
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:255
MsWksDBParserInternal::Forms::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:402
MWAWCellContent::FormulaInstruction::F_Operator
@ F_Operator
Definition: MWAWCell.hxx:360
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:182
MWAWCell::F_NUMBER_PERCENT
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
MWAWCellContent::isValueSet
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:413
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
MWAWCellContent::FormulaInstruction
small class use to define a formula instruction
Definition: MWAWCell.hxx:359
MWAWEntry.hxx
MsWksDBParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, SerialFormula const &form)
operator<<
Definition: MsWksDBParser.cxx:133
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
MsWksDBParserInternal::V_VALUE
@ V_VALUE
Definition: MsWksDBParser.cxx:281
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MsWksDBParserInternal::Form::Form
Form()
the constructor
Definition: MsWksDBParser.cxx:354
MsWksDBParserInternal::FieldType::FieldType
FieldType()
constructor
Definition: MsWksDBParser.cxx:146
MsWksDBParserInternal::SubDocument::SubDocument
SubDocument(MsWksDBParser &pars, MWAWInputStreamPtr input, int zoneId)
Definition: MsWksDBParser.cxx:444
MsWksDBParserInternal::V_NAMEVALUE
@ V_NAMEVALUE
Definition: MsWksDBParser.cxx:281
MsWksDBParser::readReportHeader
bool readReportHeader()
read a report header
Definition: MsWksDBParser.cxx:2010
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWPrinter.hxx
MsWksDBParserInternal::V_UNKNOWN
@ V_UNKNOWN
Definition: MsWksDBParser.cxx:281
MsWksDBParserInternal::State::State
State()
constructor
Definition: MsWksDBParser.cxx:419
MsWksDBParserInternal::Form::m_name
std::string m_name
the form name
Definition: MsWksDBParser.cxx:360
MWAWCellContent::FormulaInstruction::F_Function
@ F_Function
Definition: MWAWCell.hxx:360
MsWksDBParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksDBParser.cxx:560
MsWksDBParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: MsWksDBParser.cxx:433
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MsWksDBParserInternal::FormType::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:310
MsWksDBParser::readFieldTypesV2
bool readFieldTypesV2()
reads the list of the fields type v2
Definition: MsWksDBParser.cxx:1662
MWAWOLEParser
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: MWAWOLEParser.hxx:86
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:140
MsWksDBParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: MsWksDBParser.cxx:433
MWAWCell::F_NUMBER_GENERIC
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWCellContent::FormulaInstruction::m_content
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:376
MWAWCell::Format::m_DTFormat
std::string m_DTFormat
a date/time format ( using a subset of strftime format )
Definition: MWAWCell.hxx:101
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:232
MsWksDBParser::createZones
bool createZones()
finds the different objects zones
Definition: MsWksDBParser.cxx:586
MsWksDBParserInternal::FieldType::updateWithContent
void updateWithContent(MWAWVec2i const &pos, MWAWCellContent const &content)
update a field with the record data
Definition: MsWksDBParser.cxx:206
MsWksDBParserInternal::FieldType::m_used
bool m_used
a flag to know if the field is used or not
Definition: MsWksDBParser.cxx:170
MsWksDBParserInternal::SerialFormula::m_suffix
std::string m_suffix
the suffix
Definition: MsWksDBParser.cxx:87
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:182
MsWksDBParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MsWksDBParser.cxx:466
MWAWCell.hxx
MsWksDBParserInternal::FieldType::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:181
MsWksDBParser::MsWksDBParser
MsWksDBParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksDBParser.cxx:493
MsWksDBParserInternal::SerialFormula
a class to store the serial data which code a auto increment column with potential prefix and suffix ...
Definition: MsWksDBParser.cxx:67
MWAWCell::Format::m_digits
int m_digits
the number of digits
Definition: MWAWCell.hxx:87
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWSubDocument.hxx
MWAWCellContent::FormulaInstruction::F_Text
@ F_Text
Definition: MWAWCell.hxx:360
MWAWParser::getSpreadsheetListener
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
MWAWCell::Format::m_numberFormat
NumberType m_numberFormat
the numeric format
Definition: MWAWCell.hxx:85
MsWksDBParser::readUnknownV2
bool readUnknownV2()
reads an unknown zone V2
Definition: MsWksDBParser.cxx:2625
MsWksDBParserInternal
Internal: the structures of a MsWksDBParser.
Definition: MsWksDBParser.cxx:59
MsWksDBParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: MsWksDBParser.cxx:463
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
MsWksDBParserInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: MsWksDBParser.cxx:453
MsWksDBParserInternal::Forms
a class used to store a list of forms
Definition: MsWksDBParser.cxx:381
MsWksDBParser::readDataBase
bool readDataBase()
try to read the database zone
Definition: MsWksDBParser.cxx:651
MWAWCellContent::m_formula
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:440
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:183
MsWksDBParserInternal::FieldType::m_isSerial
bool m_isSerial
a flag to deferentiate a serial formula to a formula
Definition: MsWksDBParser.cxx:172
MWAWSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MsWksDBParserInternal::Forms::operator<<
friend std::ostream & operator<<(std::ostream &o, Forms const &form)
operator<<
Definition: MsWksDBParser.cxx:406
MWAWFont::getDebugString
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MsWksDBParserInternal::SerialFormula::SerialFormula
SerialFormula()
the constructor
Definition: MsWksDBParser.cxx:70
MsWksDBParserInternal::FormType::m_font
MWAWFont m_font
the font
Definition: MsWksDBParser.cxx:301
MsWksDBParser::readReportV2
bool readReportV2()
reads a report zone in v.2 file
Definition: MsWksDBParser.cxx:2190
MWAWCellContent::FormulaInstruction::m_type
Type m_type
the type
Definition: MWAWCell.hxx:374
MsWksDBParser::readDefaultValues
bool readDefaultValues()
reads the default value
Definition: MsWksDBParser.cxx:2484
MsWksDBParser::readColSize
bool readColSize(std::vector< int > &colSize)
reads the list of the columns size
Definition: MsWksDBParser.cxx:2584
MWAWCell::Format
a structure uses to define the format of a cell content
Definition: MWAWCell.hxx:60
MsWksDBParserInternal::DataBase::m_listRecords
std::vector< std::vector< MWAWCellContent > > m_listRecords
the list of record by row
Definition: MsWksDBParser.cxx:274
MsWksDBParserInternal::FieldType::m_serialFormula
SerialFormula m_serialFormula
the serial formula ( if the field is serialized )
Definition: MsWksDBParser.cxx:176
MsWksDBParserInternal::FormType
a class used to store a form
Definition: MsWksDBParser.cxx:286
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
MsWksDBParser::readForm
bool readForm()
reads one form
Definition: MsWksDBParser.cxx:984
MsWksDBParserInternal::Forms::m_numForms
int m_numForms
the number of forms
Definition: MsWksDBParser.cxx:388
MsWksDBParserInternal::Form::m_bdbox
MWAWBox2f m_bdbox[3]
three bdbox : the last is the page bdbox
Definition: MsWksDBParser.cxx:363
MsWksDBParserInternal::SerialFormula::m_nextValue
long m_nextValue
the first value
Definition: MsWksDBParser.cxx:81
MWAWCellContent::m_value
double m_value
the cell value
Definition: MWAWCell.hxx:434
MsWksDBParserInternal::State::m_numReports
int m_numReports
the number of report
Definition: MsWksDBParser.cxx:431
MsWksDBParserInternal::SerialFormula::updateContent
void updateContent(double value, MWAWCellContent &content) const
update a content (knowing the value)
Definition: MsWksDBParser.cxx:90
MWAWOLEParser.hxx
MWAWVec2< int >
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
libmwaw::ParseException
Definition: libmwaw_internal.hxx:142
MWAWDebug.hxx
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MsWksDBParser
the main class to read a Microsoft Works database file and convert it in a spreadsheet file
Definition: MsWksDBParser.hxx:66
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MsWksDBParserInternal::Forms::m_font
MWAWFont m_font
the default font
Definition: MsWksDBParser.cxx:391
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
MsWksDBParserInternal::DataBase::m_listFieldTypes
std::vector< FieldType > m_listFieldTypes
the list of field type
Definition: MsWksDBParser.cxx:271
MsWksDBParserInternal::Forms::m_backColor
int m_backColor
the default font back color
Definition: MsWksDBParser.cxx:394
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
MWAWCellContent::FormulaInstruction::m_longValue
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:378
MsWksDBParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MsWksDBParser.cxx:2695
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:158
MsWksDBParserInternal::V_UNDEF
@ V_UNDEF
Definition: MsWksDBParser.cxx:281
MsWksDBParserInternal::FieldType
the type of each field
Definition: MsWksDBParser.cxx:143
MsWksDBParserInternal::FormType::m_bdbox
MWAWBox2f m_bdbox[2]
two bdbox one for content and field name
Definition: MsWksDBParser.cxx:307
MsWksDBParserInternal::DataBase::DataBase
DataBase()
constructor
Definition: MsWksDBParser.cxx:249
MsWksDBParser::readFormula
bool readFormula()
reads the formula value
Definition: MsWksDBParser.cxx:2304
MsWksDBParserInternal::FormType::m_fieldId
int m_fieldId
the associated field
Definition: MsWksDBParser.cxx:295
MsWksDBParserInternal::V_HEADER
@ V_HEADER
Definition: MsWksDBParser.cxx:281
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:390
MsWksDBParserInternal::FieldType::m_name
std::string m_name
the field name
Definition: MsWksDBParser.cxx:167
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MWAWParser::setSpreadsheetListener
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:135
MWAWCellContent::FormulaInstruction::F_Cell
@ F_Cell
Definition: MWAWCell.hxx:360
MsWksDBParserInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: MsWksDBParser.cxx:448
MsWksDBParser::sendDatabase
bool sendDatabase()
try to send the main database
Definition: MsWksDBParser.cxx:2251
MWAWHeader.hxx
MsWksDBParserInternal::FormType::m_visible
FormVisibility m_visible
the form visibility
Definition: MsWksDBParser.cxx:298
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MsWksDBParserInternal::FormType::FormType
FormType()
the constructor
Definition: MsWksDBParser.cxx:289
MWAWCellContent::FormulaInstruction::F_Long
@ F_Long
Definition: MWAWCell.hxx:360
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
MsWksDBParser::readReports
bool readReports()
reads the reports
Definition: MsWksDBParser.cxx:1924
MsWksDBParser::m_listZones
std::vector< MWAWEntry > m_listZones
the list of different Zones
Definition: MsWksDBParser.hxx:169
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
MsWksDBParserInternal::SubDocument
Internal: the subdocument of a MsWksDBParser.
Definition: MsWksDBParser.cxx:442
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
MsWksDBParserInternal::DataBase::m_numFields
int m_numFields
the number of fields
Definition: MsWksDBParser.cxx:264
MsWksDBParser.hxx
MsWksDBParserInternal::State::m_forms
Forms m_forms
the forms
Definition: MsWksDBParser.cxx:429
MsWksDBParserInternal::FieldType::operator<<
friend std::ostream & operator<<(std::ostream &o, FieldType const &fType)
operator<<
Definition: MsWksDBParser.cxx:188
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:182
MsWksDBParserInternal::SerialFormula::operator<<
friend std::ostream & operator<<(std::ostream &o, SerialFormula const &form)
operator<<
Definition: MsWksDBParser.cxx:133
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MsWksDBParserInternal::Form
a class used to store a form
Definition: MsWksDBParser.cxx:351
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MsWksDBParserInternal::Form::m_listTypes
std::vector< FormType > m_listTypes
the list of fields type
Definition: MsWksDBParser.cxx:366
MsWksDocument.hxx
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:390
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition: MWAWCell.hxx:83
MsWksDBParserInternal::FieldType::empty
bool empty() const
returns true if the field has no content
Definition: MsWksDBParser.cxx:156
MsWksDBParserInternal::Forms::m_bdbox
MWAWBox2f m_bdbox[2]
two bdbox
Definition: MsWksDBParser.cxx:397
MsWksDBParserInternal::FormType::m_backColor
int m_backColor
the backgroun color
Definition: MsWksDBParser.cxx:304
MsWks3Text.hxx
MWAWCellContent::FormulaInstruction::m_position
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:382
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MsWksDBParserInternal::Forms::Forms
Forms()
the constructor
Definition: MsWksDBParser.cxx:384
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MsWksDBParser::~MsWksDBParser
virtual ~MsWksDBParser()
destructor
Definition: MsWksDBParser.cxx:507
MsWksDBParser::readSerialFormula
bool readSerialFormula()
reads the serial value
Definition: MsWksDBParser.cxx:2406
MWAWRSRCParserPtr
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
MsWksDocument::Z_MAIN
@ Z_MAIN
Definition: MsWksDocument.hxx:78
MsWksDBParser::readFormV2
bool readFormV2()
reads a list of dimension(?) corresponding to the fields type v2
Definition: MsWksDBParser.cxx:847
MWAWSpreadsheetListener.hxx
MsWksDBParser::readFilters
bool readFilters()
reads the filters
Definition: MsWksDBParser.cxx:1803
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
MsWksDBParserInternal::V_HIDDEN
@ V_HIDDEN
Definition: MsWksDBParser.cxx:281
MsWksDBParser::m_state
shared_ptr< MsWksDBParserInternal::State > m_state
the state
Definition: MsWksDBParser.hxx:166
MWAWCellContent::empty
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:399
MWAWInputStream.hxx
MsWksDBParserInternal::SerialFormula::m_increment
long m_increment
the increment
Definition: MsWksDBParser.cxx:79
MWAWFont.hxx
MWAWCell::HALIGN_LEFT
@ HALIGN_LEFT
Definition: MWAWCell.hxx:116
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
MsWksDBParserInternal::DataBase
the database
Definition: MsWksDBParser.cxx:246
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
MsWksDBParserInternal::DataBase::convertInPoint
std::vector< float > convertInPoint(std::vector< int > const &list, float defSize) const
convert the m_widthCols in a vector of of point size
Definition: MsWksDBParser.cxx:251
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:432
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:390
MsWksDBParser::readForms
bool readForms()
reads all the form
Definition: MsWksDBParser.cxx:920
MsWksDBParser::readRecords
bool readRecords(bool onlyCheck)
reads the database contents: field's names and values
Definition: MsWksDBParser.cxx:1251
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:116
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
MWAWParser.hxx
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
MWAWCellContent::C_UNKNOWN
@ C_UNKNOWN
Definition: MWAWCell.hxx:390
MsWksDBParserInternal::FieldType::~FieldType
virtual ~FieldType()
destructor
Definition: MsWksDBParser.cxx:184
MWAWSubDocument::m_input
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWCell::Format::m_thousandHasSeparator
bool m_thousandHasSeparator
true if we must separate the thousand
Definition: MWAWCell.hxx:95
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition: MWAWCell.hxx:116
MsWksDBParserInternal::FieldType::m_content
MWAWCellContent m_content
the cell content
Definition: MsWksDBParser.cxx:165
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
MWAWCell::getFont
MWAWFont getFont() const
returns the font
Definition: MWAWCell.hxx:227

Generated on Wed Jun 17 2020 06:30:11 for libmwaw by doxygen 1.8.18