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:
70  MsWksDBParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
72  ~MsWksDBParser() final;
73 
75  bool checkHeader(MWAWHeader *header, bool strict=false) final;
76 
77  // the main parse function
78  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
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();
139  bool readFormTypes(MsWksDBParserInternal::Form &form);
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  std::shared_ptr<MsWksDBParserInternal::State> m_state;
167 
169  std::vector<MWAWEntry> m_listZones;
170 
172  std::shared_ptr<MsWksDocument> m_document;
173 };
174 #endif
175 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MsWksDBParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: MsWksDBParser.cxx:497
MWAWCellContent::FormulaInstruction::F_CellList
@ F_CellList
Definition: MWAWCell.hxx:398
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:440
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:343
MsWksDBParserInternal::State::m_pageLength
int m_pageLength
the page length in point (if known)
Definition: MsWksDBParser.cxx:482
MsWksDBParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: MsWksDBParser.cxx:572
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWCell::getFormat
Format const & getFormat() const
returns the cell format
Definition: MWAWCell.hxx:237
MsWksDBParserInternal::Form::operator<<
friend std::ostream & operator<<(std::ostream &o, Form const &form)
operator<<
Definition: MsWksDBParser.cxx:403
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
MsWksDocument::Zone
a zone of a MsWksDocument ( main, header, footer )
Definition: MsWksDocument.hxx:80
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:90
MWAWEntry::setName
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:148
MsWksDBParserInternal::FieldType::m_height
int m_height
the height
Definition: MsWksDBParser.cxx:196
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
MsWksDBParser::init
void init()
inits all internal variables
Definition: MsWksDBParser.cxx:558
MsWksDBParser::readFormTypes
bool readFormTypes(MsWksDBParserInternal::Form &form)
read a form types
Definition: MsWksDBParser.cxx:1141
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MsWksDBParserInternal::State::m_widthCols
std::vector< int > m_widthCols
the column size in pixels(?)
Definition: MsWksDBParser.cxx:473
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MsWksDBParserInternal::State
Internal: the state of a MsWksDBParser.
Definition: MsWksDBParser.cxx:457
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWCellContent::setValue
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:458
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
MsWksDBParserInternal::State::m_database
DataBase m_database
the database
Definition: MsWksDBParser.cxx:471
MsWksDBParser::readFieldTypes
bool readFieldTypes()
reads the list of the fields type v3-v4
Definition: MsWksDBParser.cxx:1521
MsWksDBParserInternal::FieldType::m_serialId
int m_serialId
serialized field identificator
Definition: MsWksDBParser.cxx:191
MsWksDBParserInternal::DataBase::m_numRecords
int m_numRecords
the number of records
Definition: MsWksDBParser.cxx:289
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
MsWksDBParserInternal::FormVisibility
FormVisibility
Definition: MsWksDBParser.cxx:303
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:281
MsWksDBParserInternal::Forms::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:442
MWAWCellContent::FormulaInstruction::F_Operator
@ F_Operator
Definition: MWAWCell.hxx:398
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
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:464
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MWAWCellContent::FormulaInstruction
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
MWAWEntry.hxx
MsWksDBParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, SerialFormula const &form)
operator<<
Definition: MsWksDBParser.cxx:139
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MsWksDBParserInternal::V_VALUE
@ V_VALUE
Definition: MsWksDBParser.cxx:303
MsWksDBParser::~MsWksDBParser
~MsWksDBParser() final
destructor
Definition: MsWksDBParser.cxx:554
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MsWksDBParserInternal::Form::Form
Form()
the constructor
Definition: MsWksDBParser.cxx:383
MsWksDBParserInternal::FieldType::FieldType
FieldType()
constructor
Definition: MsWksDBParser.cxx:152
MsWksDBParserInternal::V_NAMEVALUE
@ V_NAMEVALUE
Definition: MsWksDBParser.cxx:303
MsWksDBParser::readReportHeader
bool readReportHeader()
read a report header
Definition: MsWksDBParser.cxx:2057
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWPrinter.hxx
MsWksDBParserInternal::V_UNKNOWN
@ V_UNKNOWN
Definition: MsWksDBParser.cxx:303
MsWksDBParserInternal::State::State
State()
constructor
Definition: MsWksDBParser.cxx:459
MsWksDBParserInternal::Form::m_name
std::string m_name
the form name
Definition: MsWksDBParser.cxx:393
MWAWCellContent::FormulaInstruction::F_Function
@ F_Function
Definition: MWAWCell.hxx:398
MsWksDBParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MsWksDBParser.cxx:510
MsWksDBParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksDBParser.cxx:607
MsWksDBParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: MsWksDBParser.cxx:479
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MsWksDBParserInternal::FormType::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:339
MsWksDBParser::readFieldTypesV2
bool readFieldTypesV2()
reads the list of the fields type v2
Definition: MsWksDBParser.cxx:1709
MWAWOLEParser
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: MWAWOLEParser.hxx:86
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
MsWksDBParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: MsWksDBParser.cxx:479
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:417
MsWksDBParser::m_state
std::shared_ptr< MsWksDBParserInternal::State > m_state
the state
Definition: MsWksDBParser.hxx:166
MWAWCell::Format::m_DTFormat
std::string m_DTFormat
a date/time format ( using a subset of strftime format )
Definition: MWAWCell.hxx:113
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:258
MsWksDBParser::createZones
bool createZones()
finds the different objects zones
Definition: MsWksDBParser.cxx:633
MsWksDBParserInternal::FieldType::updateWithContent
void updateWithContent(MWAWVec2i const &pos, MWAWCellContent const &content)
update a field with the record data
Definition: MsWksDBParser.cxx:223
MsWksDBParserInternal::FieldType::m_used
bool m_used
a flag to know if the field is used or not
Definition: MsWksDBParser.cxx:187
MsWksDBParserInternal::SerialFormula::m_suffix
std::string m_suffix
the suffix
Definition: MsWksDBParser.cxx:93
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
MWAWCell.hxx
Defines MWAWCell (cell content and format)
MsWksDBParserInternal::FieldType::m_extra
std::string m_extra
extra data
Definition: MsWksDBParser.cxx:198
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:99
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:398
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:97
MsWksDBParser::readUnknownV2
bool readUnknownV2()
reads an unknown zone V2
Definition: MsWksDBParser.cxx:2676
MsWksDBParserInternal
Internal: the structures of a MsWksDBParser.
Definition: MsWksDBParser.cxx:59
MsWksDBParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: MsWksDBParser.cxx:507
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MsWksDBParserInternal::Forms
a class used to store a list of forms
Definition: MsWksDBParser.cxx:414
MsWksDBParser::readDataBase
bool readDataBase()
try to read the database zone
Definition: MsWksDBParser.cxx:698
MWAWCellContent::m_formula
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
MWAWSpreadsheetListenerPtr
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MsWksDBParserInternal::FieldType::m_isSerial
bool m_isSerial
a flag to deferentiate a serial formula to a formula
Definition: MsWksDBParser.cxx:189
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:446
MsWksDBParserInternal::SerialFormula::SerialFormula
SerialFormula()
the constructor
Definition: MsWksDBParser.cxx:70
MsWksDBParserInternal::FormType::m_font
MWAWFont m_font
the font
Definition: MsWksDBParser.cxx:330
MsWksDBParser::readReportV2
bool readReportV2()
reads a report zone in v.2 file
Definition: MsWksDBParser.cxx:2237
MWAWCellContent::FormulaInstruction::m_type
Type m_type
the type
Definition: MWAWCell.hxx:415
MsWksDBParser::readDefaultValues
bool readDefaultValues()
reads the default value
Definition: MsWksDBParser.cxx:2535
MsWksDBParser::readColSize
bool readColSize(std::vector< int > &colSize)
reads the list of the columns size
Definition: MsWksDBParser.cxx:2635
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:296
MsWksDBParserInternal::FieldType::m_serialFormula
SerialFormula m_serialFormula
the serial formula ( if the field is serialized )
Definition: MsWksDBParser.cxx:193
MsWksDBParserInternal::FormType
a class used to store a form
Definition: MsWksDBParser.cxx:308
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MsWksDBParser::readForm
bool readForm()
reads one form
Definition: MsWksDBParser.cxx:1030
MsWksDBParserInternal::Forms::m_numForms
int m_numForms
the number of forms
Definition: MsWksDBParser.cxx:428
MsWksDBParserInternal::Form::m_bdbox
MWAWBox2f m_bdbox[3]
three bdbox : the last is the page bdbox
Definition: MsWksDBParser.cxx:396
MsWksDBParserInternal::SerialFormula::m_nextValue
long m_nextValue
the first value
Definition: MsWksDBParser.cxx:87
MWAWCellContent::m_value
double m_value
the cell value
Definition: MWAWCell.hxx:485
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MsWksDBParserInternal::State::m_numReports
int m_numReports
the number of report
Definition: MsWksDBParser.cxx:477
MsWksDBParserInternal::SerialFormula::updateContent
void updateContent(double value, MWAWCellContent &content) const
update a content (knowing the value)
Definition: MsWksDBParser.cxx:96
MWAWOLEParser.hxx
MWAWVec2< int >
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MsWksDBParserInternal::SubDocument::SubDocument
SubDocument(MsWksDBParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: MsWksDBParser.cxx:490
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:83
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:72
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:431
MsWksDBParserInternal::FieldType::FieldType
FieldType(FieldType const &)=default
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
MsWksDBParserInternal::DataBase::m_listFieldTypes
std::vector< FieldType > m_listFieldTypes
the list of field type
Definition: MsWksDBParser.cxx:293
MsWksDBParserInternal::Forms::m_backColor
int m_backColor
the default font back color
Definition: MsWksDBParser.cxx:434
MsWksDBParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MsWksDBParser.cxx:2746
MsWksDBParser::m_document
std::shared_ptr< MsWksDocument > m_document
the actual zone
Definition: MsWksDBParser.hxx:172
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWCellContent::FormulaInstruction::m_longValue
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:419
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MsWksDBParserInternal::V_UNDEF
@ V_UNDEF
Definition: MsWksDBParser.cxx:303
MsWksDBParserInternal::FieldType
the type of each field
Definition: MsWksDBParser.cxx:149
MsWksDBParserInternal::FormType::m_bdbox
MWAWBox2f m_bdbox[2]
two bdbox one for content and field name
Definition: MsWksDBParser.cxx:336
MsWksDBParserInternal::DataBase::DataBase
DataBase()
constructor
Definition: MsWksDBParser.cxx:265
MsWksDBParser::readFormula
bool readFormula()
reads the formula value
Definition: MsWksDBParser.cxx:2351
MsWksDBParserInternal::FieldType::~FieldType
~FieldType() final
destructor
Definition: MsWksDBParser.cxx:201
MsWksDBParserInternal::FormType::m_fieldId
int m_fieldId
the associated field
Definition: MsWksDBParser.cxx:324
MsWksDBParserInternal::V_HEADER
@ V_HEADER
Definition: MsWksDBParser.cxx:303
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:433
MsWksDBParserInternal::FieldType::m_name
std::string m_name
the field name
Definition: MsWksDBParser.cxx:184
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:147
MWAWCellContent::FormulaInstruction::F_Cell
@ F_Cell
Definition: MWAWCell.hxx:398
MsWksDBParser::sendDatabase
bool sendDatabase()
try to send the main database
Definition: MsWksDBParser.cxx:2298
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MsWksDBParserInternal::FormType::m_visible
FormVisibility m_visible
the form visibility
Definition: MsWksDBParser.cxx:327
MsWksDBParserInternal::FormType::FormType
FormType()
the constructor
Definition: MsWksDBParser.cxx:311
MWAWCellContent::FormulaInstruction::F_Long
@ F_Long
Definition: MWAWCell.hxx:398
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MsWksDBParser::readReports
bool readReports()
reads the reports
Definition: MsWksDBParser.cxx:1971
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:488
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
MsWksDBParserInternal::FieldType::operator=
FieldType & operator=(FieldType const &)=default
MsWksDBParserInternal::DataBase::m_numFields
int m_numFields
the number of fields
Definition: MsWksDBParser.cxx:286
MsWksDBParser.hxx
MsWksDBParserInternal::State::m_forms
Forms m_forms
the forms
Definition: MsWksDBParser.cxx:475
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MsWksDBParserInternal::SerialFormula::operator<<
friend std::ostream & operator<<(std::ostream &o, SerialFormula const &form)
operator<<
Definition: MsWksDBParser.cxx:139
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MsWksDBParserInternal::Form
a class used to store a form
Definition: MsWksDBParser.cxx:380
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:399
MsWksDocument.hxx
MsWksDBParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MsWksDBParser.cxx:523
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:433
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition: MWAWCell.hxx:95
MsWksDBParserInternal::FieldType::empty
bool empty() const
returns true if the field has no content
Definition: MsWksDBParser.cxx:173
MsWksDBParserInternal::Forms::m_bdbox
MWAWBox2f m_bdbox[2]
two bdbox
Definition: MsWksDBParser.cxx:437
MsWksDBParserInternal::FormType::m_backColor
int m_backColor
the backgroun color
Definition: MsWksDBParser.cxx:333
MsWks3Text.hxx
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:417
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MsWksDBParser::MsWksDBParser
MsWksDBParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksDBParser.cxx:537
MsWksDBParser::readSerialFormula
bool readSerialFormula()
reads the serial value
Definition: MsWksDBParser.cxx:2453
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:894
MWAWSpreadsheetListener.hxx
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
MsWksDBParser::readFilters
bool readFilters()
reads the filters
Definition: MsWksDBParser.cxx:1850
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:303
MWAWCellContent::empty
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:450
MWAWInputStream.hxx
MsWksDBParserInternal::SerialFormula::m_increment
long m_increment
the increment
Definition: MsWksDBParser.cxx:85
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
librevenge
Definition: MWAWDocument.hxx:57
MWAWCell::HALIGN_LEFT
@ HALIGN_LEFT
Definition: MWAWCell.hxx:128
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MsWksDBParserInternal::DataBase
the database
Definition: MsWksDBParser.cxx:262
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:273
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:433
MsWksDBParser::readForms
bool readForms()
reads all the form
Definition: MsWksDBParser.cxx:966
MsWksDBParser::readRecords
bool readRecords(bool onlyCheck)
reads the database contents: field's names and values
Definition: MsWksDBParser.cxx:1298
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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:466
MWAWCellContent::C_UNKNOWN
@ C_UNKNOWN
Definition: MWAWCell.hxx:433
MWAWCell::Format::m_thousandHasSeparator
bool m_thousandHasSeparator
true if we must separate the thousand
Definition: MWAWCell.hxx:107
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
MsWksDBParserInternal::FieldType::m_content
MWAWCellContent m_content
the cell content
Definition: MsWksDBParser.cxx:182
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20