FullWrtParser.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 /*
35  * Parser to convert FullWrite document
36  *
37  */
38 #ifndef FULL_WRT_PARSER
39 # define FULL_WRT_PARSER
40 
41 #include <list>
42 #include <string>
43 #include <vector>
44 
45 #include <librevenge/librevenge.h>
46 
47 #include "MWAWInputStream.hxx"
48 
49 #include "FullWrtStruct.hxx"
50 #include "MWAWParser.hxx"
51 
52 namespace FullWrtParserInternal
53 {
54 struct State;
55 class SubDocument;
56 }
57 
58 class FullWrtGraph;
59 class FullWrtText;
60 
66 class FullWrtParser final : public MWAWTextParser
67 {
68  friend class FullWrtGraph;
69  friend class FullWrtText;
71 
72 public:
74  FullWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
76  ~FullWrtParser() final;
77 
79  bool checkHeader(MWAWHeader *header, bool strict=false) final;
80 
81  // the main parse function
82  void parse(librevenge::RVNGTextInterface *documentInterface) final;
83 
84 protected:
86  void init();
87 
89  void createDocument(librevenge::RVNGTextInterface *documentInterface);
90 
92  bool createZones();
93 
95  bool createFileZones();
96 
98  void newPage(int number);
99 
101  bool readDocPosition();
102 
105 
108 
111 
114 
116  bool readDocInfo(FullWrtStruct::EntryPtr zone);
117 
120 
123 
126 
127  //
128  // interface to the graph parser
129  //
130 
132  MWAWVec2f getPageLeftTop() const;
134  bool getBorder(int bId, FullWrtStruct::Border &border) const;
135 
136  //
137  // interface to the text parser
138  //
139 
141  void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote);
143  void sendGraphic(int docId);
145  void sendVariable(int docId);
147  void sendReference(int docId);
149  bool send(int fileId, MWAWColor fontColor=MWAWColor::black());
150 
151  //
152  // interface ( mainly debugging function)
153  //
154 
156  int getNumDocZoneStruct() const;
158  std::string getDocumentTypeName(int zId) const;
159 
160  //
161  // low level
162  //
163 
167  bool readGenericDocData(FullWrtStruct::EntryPtr zone, FullWrtStruct::ZoneHeader &doc);
168 
169 protected:
170  //
171  // data
172  //
174  std::shared_ptr<FullWrtParserInternal::State> m_state;
175 
177  std::shared_ptr<FullWrtGraph> m_graphParser;
179  std::shared_ptr<FullWrtText> m_textParser;
180 };
181 #endif
182 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
FullWrtParser::readFileZoneFlags
bool readFileZoneFlags(FullWrtStruct::EntryPtr zone)
try to read the file zones main flags
Definition: FullWrtParser.cxx:1624
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
FullWrtParserInternal::ReferenceCalledData::m_values
int m_values[5]
some unknown values
Definition: FullWrtParser.cxx:158
FullWrtParser::readDocPosition
bool readDocPosition()
find the last position of the document and read data
Definition: FullWrtParser.cxx:1856
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWTextParser
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
FullWrtParserInternal::ReferenceCalledData::operator<<
friend std::ostream & operator<<(std::ostream &o, ReferenceCalledData const &dt)
the operator<<
Definition: FullWrtParser.cxx:146
FullWrtParser::sendReference
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1929
MWAW_shared_ptr_noop_deleter
an noop deleter used to transform a libwpd pointer in a false std::shared_ptr
Definition: libmwaw_internal.hxx:101
MWAWNote
a note
Definition: libmwaw_internal.hxx:445
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
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
FullWrtParser::readEndDocInfo
bool readEndDocInfo(FullWrtStruct::EntryPtr zone)
try to read the end of zone2 (only v2) ?
Definition: FullWrtParser.cxx:928
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
FullWrtParserInternal::DocZoneStruct::operator<<
friend std::ostream & operator<<(std::ostream &o, DocZoneStruct const &dt)
the operator<<
Definition: FullWrtParser.cxx:74
FullWrtStruct
a namespace use to define common structure in a FullWrite file
Definition: FullWrtStruct.cxx:44
FullWrtParserInternal::ReferenceCalledData::m_id
int m_id
the reference id
Definition: FullWrtParser.cxx:156
FullWrtStruct::ZoneHeader::m_type
int m_type
the zone type
Definition: FullWrtStruct.hxx:172
FullWrtParser::parse
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: FullWrtParser.cxx:399
FullWrtParser::createZones
bool createZones()
finds the different objects zones
Definition: FullWrtParser.cxx:572
FullWrtParserInternal::State::m_pageSpanSet
bool m_pageSpanSet
a flag to know if the page span has been filled
Definition: FullWrtParser.cxx:215
FullWrtParserInternal::DocZoneStruct::m_fatherId
int m_fatherId
the father id
Definition: FullWrtParser.cxx:110
libmwaw::DOC_COMMENT_ANNOTATION
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
FullWrtParser::readCitationDocInfo
bool readCitationDocInfo(FullWrtStruct::EntryPtr zone)
try to read the list of citation (at the end of doc info)
Definition: FullWrtParser.cxx:985
FullWrtParser::readPrintInfo
bool readPrintInfo(FullWrtStruct::EntryPtr zone)
try read the print info zone
Definition: FullWrtParser.cxx:1050
MWAWTextListener
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWNote::Type
Type
enum to define note type
Definition: libmwaw_internal.hxx:447
FullWrtStruct::Entry
the definition of a zone in a FullWrite file
Definition: FullWrtStruct.hxx:111
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
FullWrtParserInternal
Internal: the structures of a FullWrtParser.
Definition: FullWrtParser.cxx:62
FullWrtStruct::getTypeName
std::string getTypeName(int type)
returns the type name
Definition: FullWrtStruct.cxx:66
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
FullWrtParserInternal::State::State
State()
constructor
Definition: FullWrtParser.cxx:165
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
FullWrtStruct::Border
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
FullWrtParserInternal::DocZoneStruct::m_type
int m_type
the type
Definition: FullWrtParser.cxx:106
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
FullWrtParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: FullWrtParser.cxx:265
MWAWPrinter.hxx
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
FullWrtParserInternal::SideBar::~SideBar
~SideBar() final
destructor
Definition: FullWrtParser.cxx:132
FullWrtParserInternal::State
Internal: the state of a FullWrtParser.
Definition: FullWrtParser.cxx:163
FullWrtParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: FullWrtParser.cxx:262
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWDocument::MWAW_T_FULLWRITE
@ MWAW_T_FULLWRITE
FullWrite Professional: basic.
Definition: MWAWDocument.hxx:115
MWAWParser::getTextListener
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
FullWrtParser::FullWrtGraph
friend class FullWrtGraph
Definition: FullWrtParser.hxx:68
FullWrtParser::createDocument
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FullWrtParser.cxx:470
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
FullWrtParser::getNumDocZoneStruct
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:361
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
FullWrtParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: FullWrtParser.cxx:660
FullWrtParserInternal::State::getFileZoneId
int getFileZoneId(int docId) const
return the file zone id ( if found or -1)
Definition: FullWrtParser.cxx:205
MWAWCell.hxx
Defines MWAWCell (cell content and format)
FullWrtParserInternal::ReferenceCalledData
Internal: the reference data call of a FullWrtParser.
Definition: FullWrtParser.cxx:138
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
FullWrtParser::m_graphParser
std::shared_ptr< FullWrtGraph > m_graphParser
the graph parser
Definition: FullWrtParser.hxx:177
MWAWSubDocument.hxx
FullWrtParserInternal::DocZoneStruct::m_childList
std::vector< int > m_childList
the list of child id
Definition: FullWrtParser.cxx:112
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
FullWrtParser::getDocumentTypeName
std::string getDocumentTypeName(int zId) const
returns a the type of a document zone ( mainly used for debugging)
Definition: FullWrtParser.cxx:366
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
FullWrtParser::newPage
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:337
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
FullWrtText
the main class to read the text part of writenow file
Definition: FullWrtText.hxx:67
FullWrtParser::sendGraphic
void sendGraphic(int docId)
try to send a graphic
Definition: FullWrtParser.cxx:373
FullWrtParser
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
MWAWParser::setTextListener
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
FullWrtText.hxx
FullWrtParserInternal::State::m_referenceRedirectMap
std::map< int, ReferenceCalledData > m_referenceRedirectMap
redirection docId -> reference docId
Definition: FullWrtParser.cxx:244
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
FullWrtParser::FullWrtParser
FullWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: FullWrtParser.cxx:303
FullWrtParser::m_textParser
std::shared_ptr< FullWrtText > m_textParser
the text parser
Definition: FullWrtParser.hxx:179
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
FullWrtParserInternal::DocZoneStruct::DocZoneStruct
DocZoneStruct()
constructor
Definition: FullWrtParser.cxx:66
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
FullWrtParser.hxx
FullWrtParserInternal::SideBar
Internal: the sidebar of a FullWrtParser.
Definition: FullWrtParser.cxx:117
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
FullWrtParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: FullWrtParser.cxx:282
MWAWVec2< float >
MWAWPictMac.hxx
FullWrtParserInternal::State::m_fileZoneList
FullWrtStruct::EntryPtr m_fileZoneList
the list of file zone position
Definition: FullWrtParser.cxx:220
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
FullWrtParserInternal::SubDocument
Internal: the subdocument of a FullWrtParser.
Definition: FullWrtParser.cxx:255
FullWrtStruct::ZoneHeader
a structure used to store the data of a zone header in a FullWrite file
Definition: FullWrtStruct.hxx:156
FullWrtParserInternal::State::m_fileDocIdMap
std::map< int, int > m_fileDocIdMap
the correspondance file id -> doc id
Definition: FullWrtParser.cxx:232
FullWrtParserInternal::DocZoneStruct
Internal and low level: a structure used to define the list of zone in Zone 0 data of a FullWrite fil...
Definition: FullWrtParser.cxx:64
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
FullWrtParser::readGenericDocData
bool readGenericDocData(FullWrtStruct::EntryPtr zone, FullWrtStruct::ZoneHeader &doc)
try to read the data of a zone which begins with a generic header
Definition: FullWrtParser.cxx:1458
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
FullWrtStruct::ZoneHeader::m_docId
int m_docId
the doc id
Definition: FullWrtStruct.hxx:174
FullWrtParser::~FullWrtParser
~FullWrtParser() final
destructor
Definition: FullWrtParser.cxx:312
FullWrtParser::readDocZoneData
bool readDocZoneData(FullWrtStruct::EntryPtr zone)
try to read the zone containing the data of each doc zone (ie. Zone0)
Definition: FullWrtParser.cxx:1124
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
FullWrtParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: FullWrtParser.cxx:279
FullWrtParser::FullWrtText
friend class FullWrtText
Definition: FullWrtParser.hxx:69
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
FullWrtParser::sendText
void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote)
try to send a footnote/endnote entry
Definition: FullWrtParser.cxx:2002
libmwaw::DOC_NOTE
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
FullWrtParserInternal::State::m_biblioId
int m_biblioId
the bibliography id
Definition: FullWrtParser.cxx:235
FullWrtParserInternal::State::m_entryMap
std::multimap< int, FullWrtStruct::EntryPtr > m_entryMap
zoneId -> entry
Definition: FullWrtParser.cxx:238
FullWrtParserInternal::State::m_fileZoneFlagsList
FullWrtStruct::EntryPtr m_fileZoneFlagsList
the list of file zone flags
Definition: FullWrtParser.cxx:223
FullWrtParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: FullWrtParser.cxx:350
FullWrtParser::readDocZoneStruct
bool readDocZoneStruct(FullWrtStruct::EntryPtr zone)
try to read the zone which stores the structure of zone0, ... (ie. Zone1)
Definition: FullWrtParser.cxx:1314
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
FullWrtParser::readFileZonePos
bool readFileZonePos(FullWrtStruct::EntryPtr zone)
try to read the file zones position
Definition: FullWrtParser.cxx:1721
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
FullWrtParser::createFileZones
bool createFileZones()
create the file zone ( first step of create zones)
Definition: FullWrtParser.cxx:540
FullWrtGraph.hxx
FullWrtParser::readDocInfo
bool readDocInfo(FullWrtStruct::EntryPtr zone)
try to read zone2, a zone which stores the document information zone, ...
Definition: FullWrtParser.cxx:686
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
FullWrtStruct::ZoneHeader::read
bool read(std::shared_ptr< FullWrtStruct::Entry > zone)
try to read the data header of a classical zone
Definition: FullWrtStruct.cxx:419
FullWrtParserInternal::SideBar::SideBar
SideBar(FullWrtStruct::ZoneHeader &)
constructor
Definition: FullWrtParser.cxx:119
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
FullWrtParser::getBorder
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:356
FullWrtParserInternal::State::m_docZoneList
std::vector< DocZoneStruct > m_docZoneList
the list of the documents zone list
Definition: FullWrtParser.cxx:226
FullWrtParser::m_state
std::shared_ptr< FullWrtParserInternal::State > m_state
the state
Definition: FullWrtParser.hxx:174
FullWrtParserInternal::DocZoneStruct::m_pos
long m_pos
the file position
Definition: FullWrtParser.cxx:102
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
FullWrtParserInternal::State::m_docFileIdMap
std::map< int, int > m_docFileIdMap
the correspondance doc id -> file id
Definition: FullWrtParser.cxx:229
FullWrtParserInternal::State::addCorrespondance
bool addCorrespondance(int docId, int fileId)
insert a docId fileId in the correspondance map
Definition: FullWrtParser.cxx:185
FullWrtParser::readReferenceData
bool readReferenceData(FullWrtStruct::EntryPtr zone)
try to read the reference data
Definition: FullWrtParser.cxx:1560
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
MWAWInputStream.hxx
FullWrtParserInternal::DocZoneStruct::m_nextId
int m_nextId
the next id
Definition: FullWrtParser.cxx:108
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
FullWrtStruct.hxx
MWAWFont.hxx
librevenge
Definition: MWAWDocument.hxx:57
FullWrtParserInternal::DocZoneStruct::m_structType
int m_structType
the struct type
Definition: FullWrtParser.cxx:104
FullWrtParser::init
void init()
inits all internal variables
Definition: FullWrtParser.cxx:320
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MWAWBox2< float >
FullWrtParserInternal::ReferenceCalledData::ReferenceCalledData
ReferenceCalledData()
Definition: FullWrtParser.cxx:140
FullWrtParserInternal::State::m_variableRedirectMap
std::map< int, int > m_variableRedirectMap
redirection docId -> variable docId
Definition: FullWrtParser.cxx:241
FullWrtParserInternal::SideBar::m_box
MWAWBox2f m_box
the position (in point)
Definition: FullWrtParser.cxx:127
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
FullWrtParser::sendVariable
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1959
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWParser::resetTextListener
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
FullWrtGraph
the main class to read the graphic part of a FullWrite Text file
Definition: FullWrtGraph.hxx:68
FullWrtStruct::EntryPtr
std::shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:153
FullWrtParserInternal::SubDocument::SubDocument
SubDocument(FullWrtParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: FullWrtParser.cxx:257
FullWrtParser::send
bool send(int fileId, MWAWColor fontColor=MWAWColor::black())
ask the text parser to send a zone
Definition: FullWrtParser.cxx:387
FullWrtParserInternal::SideBar::m_page
int m_page
the page
Definition: FullWrtParser.cxx:129

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