BeagleWksDBParser.hxx Source File documentation

BeagleWksDBParser.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 BEAGLE_WKS_DB_PARSER
35 # define BEAGLE_WKS_DB_PARSER
36
37 #include <string>
38 #include <vector>
39
40 #include <librevenge/librevenge.h>
41
42 #include "MWAWCell.hxx"
43 #include "MWAWDebug.hxx"
44 #include "MWAWGraphicStyle.hxx"
45 #include "MWAWInputStream.hxx"
46
47 #include "MWAWParser.hxx"
48
49 namespace BeagleWksDBParserInternal
50 {
51 class SubDocument;
52
53 struct Database;
54 struct State;
55 }
56
57 class BeagleWksStructManager;
58
61 class BeagleWksDBParser final : public MWAWSpreadsheetParser
62 {
63 friend class BeagleWksDBParserInternal::SubDocument;
64 public:
66 BeagleWksDBParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
68 ~BeagleWksDBParser() final;
69
71 bool checkHeader(MWAWHeader *header, bool strict=false) final;
72
73 // the main parse function
74 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
75
76 protected:
78 void init();
79
81 void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
82
84 MWAWVec2f getPageLeftTop() const;
85
87 bool sendDatabase();
89 bool sendText(MWAWEntry const &entry, bool headerFooter=false);
91 bool sendPageFrames();
93 bool sendFrame(BeagleWksStructManager::Frame const &frame);
95 bool sendPicture(int pId, MWAWPosition const &pos, bool readEDTP,
96 MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
97 protected:
99 bool createZones();
100
102 bool readRSRCZones();
103
104 //
105 // low level
106 //
107
108 // data fork similar than in BeagleWksParser ...
109
111 bool readPrintInfo();
112
113 // data fork
114
116 bool readDatabase();
118 bool readRow();
120 bool readFields();
122 bool readLayouts();
124 bool readLayout(int id);
126 bool readFormat(MWAWCell &cell, std::string &extra);
127
128 // resource fork
129
131 MWAWInputStreamPtr rsrcInput();
132
134 libmwaw::DebugFile &rsrcAscii();
135
137 std::shared_ptr<BeagleWksDBParserInternal::State> m_state;
138
140 std::shared_ptr<BeagleWksStructManager> m_structureManager;
141 };
142 #endif
143 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
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
BeagleWksDBParser::BeagleWksDBParser
BeagleWksDBParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: BeagleWksDBParser.cxx:269
MWAWDocument::MWAW_K_DATABASE
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
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
MWAWSubDocument::m_zone
MWAWEntry m_zone
if valid the zone to parse
Definition: MWAWSubDocument.hxx:79
BeagleWksDBParserInternal::Database::m_name
std::string m_name
the database name
Definition: BeagleWksDBParser.cxx:137
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
BeagleWksStructManager::Frame::m_dim
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
BeagleWksDBParser::sendFrame
bool sendFrame(BeagleWksStructManager::Frame const &frame)
try to send a frame
Definition: BeagleWksDBParser.cxx:1459
BeagleWksDBParserInternal::Cell::m_content
MWAWCellContent m_content
the cell content
Definition: BeagleWksDBParser.cxx:90
BeagleWksDBParserInternal::Cell::m_name
std::string m_name
the field name
Definition: BeagleWksDBParser.cxx:88
BeagleWksDBParserInternal::State::m_typeEntryMap
std::multimap< std::string, MWAWEntry > m_typeEntryMap
the type entry map
Definition: BeagleWksDBParser.cxx:211
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
BeagleWksDBParser::sendText
bool sendText(MWAWEntry const &entry, bool headerFooter=false)
try to send a text zone
Definition: BeagleWksDBParser.cxx:1499
MWAWPosition::setPagePos
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
BeagleWksDBParserInternal::Cell::m_formula
int m_formula
the formula id
Definition: BeagleWksDBParser.cxx:92
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
BeagleWksDBParser::readRow
bool readRow()
read a row
Definition: BeagleWksDBParser.cxx:949
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
BeagleWksStructManager::Frame::m_border
MWAWBorder m_border
the border
Definition: BeagleWksStructManager.hxx:145
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
BeagleWksDBParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: BeagleWksDBParser.cxx:212
BeagleWksDBParser::readFormat
bool readFormat(MWAWCell &cell, std::string &extra)
try to read a cell's format+font
Definition: BeagleWksDBParser.cxx:802
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
BeagleWksDBParserInternal::Cell::Picture
@ Picture
Definition: BeagleWksDBParser.cxx:64
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
BeagleWksDBParserInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: BeagleWksDBParser.cxx:215
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
MWAWFontConverter.hxx
MWAWCell::getBasicCellName
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
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
BeagleWksDBParserInternal::Cell::Formula
@ Formula
Definition: BeagleWksDBParser.cxx:64
BeagleWksDBParserInternal::State::m_database
Database m_database
the database
Definition: BeagleWksDBParser.cxx:209
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
BeagleWksDBParser
the main class to read a BeagleWorks database file
Definition: BeagleWksDBParser.hxx:62
BeagleWksStructManager::Frame::m_origin
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
BeagleWksDBParser::rsrcInput
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksDBParser.cxx:293
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
BeagleWksDBParserInternal::State
Internal: the state of a BeagleWksDBParser.
Definition: BeagleWksDBParser.cxx:194
BeagleWksDBParserInternal::Cell::Time
@ Time
Definition: BeagleWksDBParser.cxx:64
MWAWPrinter.hxx
MWAWPosition::setAnchorToCell
void setAnchorToCell(librevenge::RVNGString const &cellName)
sets the anchor to a cell position
Definition: MWAWPosition.hxx:244
BeagleWksDBParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: BeagleWksDBParser.cxx:315
BeagleWksStructManager::Frame::m_page
int m_page
the page ( for a page frame )
Definition: BeagleWksStructManager.hxx:141
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
BeagleWksDBParserInternal::Database::convertInPoint
static std::vector< float > convertInPoint(std::vector< int > const &list, float defSize)
convert the m_widthCols, m_heightRows in a vector of of point size
Definition: BeagleWksDBParser.cxx:115
BeagleWksDBParserInternal::Database::m_records
std::vector< std::vector< MWAWCellContent > > m_records
the list of not empty cells (one list by row )
Definition: BeagleWksDBParser.cxx:133
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
BeagleWksDBParser::readDatabase
bool readDatabase()
read the database zone
Definition: BeagleWksDBParser.cxx:713
MWAWCell::F_NUMBER_GENERIC
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
BeagleWksDBParserInternal::Database::Database
Database()
constructor
Definition: BeagleWksDBParser.cxx:106
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
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
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
BeagleWksDBParser::~BeagleWksDBParser
~BeagleWksDBParser() final
destructor
Definition: BeagleWksDBParser.cxx:277
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
BeagleWksDBParserInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
BeagleWksDBParserInternal::Cell::m_type
Type m_type
the cell type
Definition: BeagleWksDBParser.cxx:86
MWAWCell.hxx
Defines MWAWCell (cell content and format)
BeagleWksDBParserInternal::Cell
Internal: the cell of a BeagleWksDBParser.
Definition: BeagleWksDBParser.cxx:62
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
BeagleWksDBParser::readLayouts
bool readLayouts()
read the layout zone
Definition: BeagleWksDBParser.cxx:1210
BeagleWksDBParser::init
void init()
inits all internal variables
Definition: BeagleWksDBParser.cxx:281
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWParser::getSpreadsheetListener
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
BeagleWksStructManager
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:57
MWAWCell::Format::m_numberFormat
NumberType m_numberFormat
the numeric format
Definition: MWAWCell.hxx:97
BeagleWksDBParserInternal::State::State
State()
constructor
Definition: BeagleWksDBParser.cxx:196
BeagleWksDBParserInternal::Cell::Cell
Cell(Cell const &)=default
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
BeagleWksDBParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: BeagleWksDBParser.cxx:212
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
BeagleWksStructManager::Frame
Internal: a structure use to store a frame in a BeagleWorks files.
Definition: BeagleWksStructManager.hxx:102
BeagleWksStructManager.hxx
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
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
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
MWAWSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
BeagleWksDBParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: BeagleWksDBParser.cxx:306
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
BeagleWksDBParser::readRSRCZones
bool readRSRCZones()
read the resource fork zone
Definition: BeagleWksDBParser.cxx:619
MWAWRSRCParser.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWParser::getRSRCParser
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
BeagleWksDBParserInternal::SubDocument
Internal: the subdocument of a BeagleWksDBParser.
Definition: BeagleWksDBParser.cxx:221
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
BeagleWksDBParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: BeagleWksDBParser.cxx:344
MWAWCell::Format
a structure uses to define the format of a cell content
Definition: MWAWCell.hxx:60
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWDocument::MWAW_T_BEAGLEWORKS
@ MWAW_T_BEAGLEWORKS
BeagleWorks (v1.0)/WordPerfect Works (v1.2): export database(as spreadsheet), draw,...
Definition: MWAWDocument.hxx:103
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
BeagleWksDBParser.hxx
BeagleWksDBParserInternal::Cell::empty
bool empty() const
returns true if the field has no content
Definition: BeagleWksDBParser.cxx:81
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
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
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
BeagleWksDBParser::readLayout
bool readLayout(int id)
read a layout zone
Definition: BeagleWksDBParser.cxx:1236
BeagleWksDBParserInternal::Cell::Type
Type
the cell type
Definition: BeagleWksDBParser.cxx:64
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
BeagleWksDBParser::m_state
std::shared_ptr< BeagleWksDBParserInternal::State > m_state
the state
Definition: BeagleWksDBParser.hxx:137
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
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
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
BeagleWksStructManager::Frame::m_pictId
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
BeagleWksDBParser::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: BeagleWksDBParser.cxx:657
BeagleWksDBParserInternal::Database::m_numFields
int m_numFields
the number of rows
Definition: BeagleWksDBParser.cxx:129
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
BeagleWksDBParser::m_structureManager
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksDBParser.hxx:140
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MWAWSubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
comparison operator!=
Definition: MWAWSubDocument.cxx:49
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
BeagleWksDBParserInternal::Database::m_fields
std::vector< Cell > m_fields
the list of fields
Definition: BeagleWksDBParser.cxx:131
BeagleWksDBParserInternal::Cell::m_pictureId
int m_pictureId
picture id
Definition: BeagleWksDBParser.cxx:94
BeagleWksDBParser::readFields
bool readFields()
read the fields list
Definition: BeagleWksDBParser.cxx:1085
BeagleWksDBParserInternal::Cell::Cell
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: BeagleWksDBParser.cxx:66
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:433
BeagleWksDBParser::sendPicture
bool sendPicture(int pId, MWAWPosition const &pos, bool readEDTP, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: BeagleWksDBParser.cxx:1474
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
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
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
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
BeagleWksDBParser::sendDatabase
bool sendDatabase()
try to send the main database
Definition: BeagleWksDBParser.cxx:1535
MWAWList.hxx
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
BeagleWksDBParserInternal::Cell::Number
@ Number
Definition: BeagleWksDBParser.cxx:64
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:433
BeagleWksStructManager::Frame::m_wrap
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition: MWAWCell.hxx:95
BeagleWksDBParserInternal::SubDocument::SubDocument
SubDocument(BeagleWksDBParser &pars, MWAWInputStreamPtr const &input, MWAWEntry const &entry)
Definition: BeagleWksDBParser.cxx:223
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
BeagleWksDBParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: BeagleWksDBParser.cxx:1600
BeagleWksDBParserInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: BeagleWksDBParser.cxx:214
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
BeagleWksDBParserInternal::Cell::Memo
@ Memo
Definition: BeagleWksDBParser.cxx:64
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
BeagleWksDBParserInternal::Database::m_memos
std::vector< MWAWEntry > m_memos
the list of memo strings entry
Definition: BeagleWksDBParser.cxx:135
MWAWSpreadsheetListener.hxx
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
BeagleWksDBParserInternal::Cell::Text
@ Text
Definition: BeagleWksDBParser.cxx:64
BeagleWksDBParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: BeagleWksDBParser.cxx:229
BeagleWksDBParserInternal::Cell::Unknown
@ Unknown
Definition: BeagleWksDBParser.cxx:64
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
BeagleWksDBParserInternal
Internal: the structures of a BeagleWksDBParser.
Definition: BeagleWksDBParser.cxx:60
BeagleWksDBParserInternal::Cell::m_isEmpty
bool m_isEmpty
flag to know if the cell is empty
Definition: BeagleWksDBParser.cxx:96
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
MWAWCellContent::empty
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:450
MWAWInputStream.hxx
BeagleWksDBParser::sendPageFrames
bool sendPageFrames()
try to send the page graphic
Definition: BeagleWksDBParser.cxx:1451
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
librevenge
Definition: MWAWDocument.hxx:57
BeagleWksDBParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: BeagleWksDBParser.cxx:232
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
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
BeagleWksDBParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: BeagleWksDBParser.cxx:246
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
BeagleWksDBParserInternal::State::m_databaseBegin
long m_databaseBegin
the database begin position
Definition: BeagleWksDBParser.cxx:207
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
BeagleWksDBParserInternal::Cell::~Cell
~Cell() final
destructor
Definition: BeagleWksDBParser.cxx:99
BeagleWksDBParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksDBParser.cxx:298
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
BeagleWksStructManager::Frame::m_bordersSet
int m_bordersSet
the list of border which are set in form libmwaw::LeftBit|...
Definition: BeagleWksStructManager.hxx:147
MWAWParser.hxx
BeagleWksDBParser::createZones
bool createZones()
finds the different objects zones
Definition: BeagleWksDBParser.cxx:391
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
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
BeagleWksDBParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
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
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
BeagleWksDBParserInternal::Database::updateWithContent
void updateWithContent(Cell &cell, MWAWVec2i const &pos, MWAWCellContent const &content) const
update a field with the record data
Definition: BeagleWksDBParser.cxx:140
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
BeagleWksDBParserInternal::Cell::Date
@ Date
Definition: BeagleWksDBParser.cxx:64
BeagleWksDBParserInternal::Database
Internal: the spreadsheet of a BeagleWksDBParser.
Definition: BeagleWksDBParser.cxx:104