NisusWrtParser.hxx Source File documentation

NisusWrtParser.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 NISUS_WRT_PARSER
35 # define NISUS_WRT_PARSER
36
37 #include <string>
38 #include <vector>
39
40 #include <librevenge/librevenge.h>
41
42 #include "MWAWDebug.hxx"
43 #include "MWAWInputStream.hxx"
44
45 #include "NisusWrtStruct.hxx"
46
47 #include "MWAWParser.hxx"
48
49 namespace NisusWrtParserInternal
50 {
51 struct State;
52 }
53
54 class NisusWrtGraph;
55 class NisusWrtText;
56
59 class NisusWrtParser final : public MWAWTextParser
60 {
61 friend struct NisusWrtStruct::RecursifData;
62 friend class NisusWrtGraph;
63 friend class NisusWrtText;
64 public:
66 NisusWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
68 ~NisusWrtParser() final;
69
71 bool checkHeader(MWAWHeader *header, bool strict=false) final;
72
73 // the main parse function
74 void parse(librevenge::RVNGTextInterface *documentInterface) final;
75
76 protected:
78 void init();
79
81 void createDocument(librevenge::RVNGTextInterface *documentInterface);
82
84 MWAWVec2f getPageLeftTop() const;
86 void getColumnInfo(int &numColumns, float &colSep) const;
88 void getFootnoteInfo(NisusWrtStruct::FootnoteInfo &fInfo) const;
89
91 void newPage(int number);
92
93 // variable access
94
96 std::string getDateFormat(NisusWrtStruct::ZoneType zoneId, int vId) const;
97
99 bool getReferenceData(NisusWrtStruct::ZoneType zoneId, int vId,
100 MWAWField::Type &fType,
101 std::string &content,
102 std::vector<int> &number) const;
103
104 // interface with the graph parser
105
107 bool sendPicture(int pictId, MWAWPosition const &pictPos);
108
109 protected:
111 bool createZones();
112
114 bool readPrintInfo(MWAWEntry const &entry);
116 bool readCPRC(MWAWEntry const &entry);
118 bool readPageLimit(MWAWEntry const &entry);
119
121 bool readStringsList(MWAWEntry const &entry, std::vector<std::string> &list, bool simpleList);
122
124 bool readINFO(MWAWEntry const &entry);
125
127 bool readReference(NisusWrtStruct::RecursifData const &data);
129 bool readVariable(NisusWrtStruct::RecursifData const &data);
131 bool readCNTR(MWAWEntry const &entry, int zoneId);
133 bool readNumberingReset(MWAWEntry const &entry, int zoneId);
134
136 bool readSGP1(NisusWrtStruct::RecursifData const &data);
138 bool readABBR(MWAWEntry const &entry);
140 bool readFTA2(MWAWEntry const &entry);
142 bool readFnSc(MWAWEntry const &entry);
143
145 MWAWInputStreamPtr rsrcInput();
146
148 libmwaw::DebugFile &rsrcAscii();
149
150 //
151 // data
152 //
154 std::shared_ptr<NisusWrtParserInternal::State> m_state;
155
157 std::shared_ptr<NisusWrtGraph> m_graphParser;
158
160 std::shared_ptr<NisusWrtText> m_textParser;
161 };
162 #endif
163 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
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
NisusWrtParser::readINFO
bool readINFO(MWAWEntry const &entry)
read the INFO info zone, an unknown zone of size 0x23a: to doo
Definition: NisusWrtParser.cxx:2068
MWAWRSRCParser::Version::m_majorVersion
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:146
MWAWRSRCParser::Version
a public structure used to return the version
Definition: MWAWRSRCParser.hxx:133
NisusWrtText.hxx
NisusWrtParserInternal::Zone::m_referenceList
std::vector< Reference > m_referenceList
the list of reference
Definition: NisusWrtParser.cxx:297
MWAWEntry::setName
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:148
libmwaw::NONE
@ NONE
Definition: libmwaw_internal.hxx:180
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
NisusWrtStruct::RecursifData::read
bool read(NisusWrtParser &parser, MWAWEntry const &entry)
read the data
Definition: NisusWrtStruct.cxx:77
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
NisusWrtParser::getDateFormat
std::string getDateFormat(NisusWrtStruct::ZoneType zoneId, int vId) const
returns the date format corresponding to a variable id or ""
Definition: NisusWrtParser.cxx:412
NisusWrtParserInternal::State::m_zones
Zone m_zones[3]
the main zones : Main, Footnote, HeaderFooter
Definition: NisusWrtParser.cxx:324
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
libmwaw::numberingValueToString
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:130
NisusWrtParserInternal::Variable::m_suffix
std::string m_suffix
the suffix
Definition: NisusWrtParser.cxx:132
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
NisusWrtStruct::V_Numbering
@ V_Numbering
Definition: NisusWrtStruct.hxx:53
NisusWrtStruct::Z_Main
@ Z_Main
Definition: NisusWrtStruct.hxx:50
libmwaw::NumberingType
NumberingType
Definition: libmwaw_internal.hxx:180
NisusWrtParserInternal::State::m_columnSep
float m_columnSep
the columns separator
Definition: NisusWrtParser.cxx:328
NisusWrtParserInternal::Zone::m_versionList
std::vector< Variable > m_versionList
the list of versions
Definition: NisusWrtParser.cxx:303
NisusWrtStruct::RecursifData
Internal: low level a structure helping to read recursifList.
Definition: NisusWrtStruct.hxx:145
NisusWrtParserInternal::State::m_numColumns
int m_numColumns
the number of columns
Definition: NisusWrtParser.cxx:327
MWAWTextListener
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
NisusWrtParser::createZones
bool createZones()
finds the different objects zones
Definition: NisusWrtParser.cxx:621
NisusWrtStruct::RecursifData::Node::m_type
int m_type
the variable type
Definition: NisusWrtStruct.hxx:211
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
NisusWrtStruct::V_Version
@ V_Version
Definition: NisusWrtStruct.hxx:53
NisusWrtParser::rsrcInput
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: NisusWrtParser.cxx:367
NisusWrtParser::newPage
void newPage(int number)
adds a new page
Definition: NisusWrtParser.cxx:517
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
libmwaw::UPPERCASE
@ UPPERCASE
Definition: libmwaw_internal.hxx:180
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
MWAWFontConverter.hxx
libmwaw::numberingTypeToString
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:106
MWAWField::Type
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:401
NisusWrtStruct::RecursifData::m_childList
std::vector< Node > m_childList
the list of data entry
Definition: NisusWrtStruct.hxx:180
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
libmwaw::LOWERCASE_ROMAN
@ LOWERCASE_ROMAN
Definition: libmwaw_internal.hxx:180
MWAWPrinter.hxx
NisusWrtParser::m_state
std::shared_ptr< NisusWrtParserInternal::State > m_state
the state
Definition: NisusWrtParser.hxx:154
MWAWPageSpan::setFormOrientation
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:188
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
NisusWrtParser::NisusWrtParser
NisusWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: NisusWrtParser.cxx:340
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWParser::getTextListener
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
libmwaw::UPPERCASE_ROMAN
@ UPPERCASE_ROMAN
Definition: libmwaw_internal.hxx:180
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
NisusWrtParserInternal::State::m_footnoteInfo
NisusWrtStruct::FootnoteInfo m_footnoteInfo
the footnote placement
Definition: NisusWrtParser.cxx:330
NisusWrtParser::readCNTR
bool readCNTR(MWAWEntry const &entry, int zoneId)
read the CNTR resource: a list of version controler ?
Definition: NisusWrtParser.cxx:1886
NisusWrtParserInternal::Variable::operator<<
friend std::ostream & operator<<(std::ostream &o, Variable const &num)
operator<<
Definition: NisusWrtParser.cxx:141
NisusWrtParserInternal::Variable::isDate
bool isDate() const
returns true if this is a date
Definition: NisusWrtParser.cxx:80
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
NisusWrtParser::readABBR
bool readABBR(MWAWEntry const &entry)
parse the ABBR resource: a list of abreviation?
Definition: NisusWrtParser.cxx:1928
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
NisusWrtParserInternal::Variable::m_increment
int m_increment
the increment
Definition: NisusWrtParser.cxx:128
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
NisusWrtParser::readFTA2
bool readFTA2(MWAWEntry const &entry)
parse the FTA2 resource: a list of ? find in v6 document
Definition: NisusWrtParser.cxx:1981
NisusWrtText
the main class to read the text part of Nisus file
Definition: NisusWrtText.hxx:61
NisusWrtParserInternal::Zone::m_variableList
std::vector< Variable > m_variableList
the list of variable
Definition: NisusWrtParser.cxx:301
NisusWrtParserInternal::Reference::Reference
Reference()
constructor
Definition: NisusWrtParser.cxx:271
NisusWrtParserInternal::Variable::m_extra
std::string m_extra
some extra debuging information
Definition: NisusWrtParser.cxx:138
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
NisusWrtParserInternal
Internal: the structures of a NisusWrtParser.
Definition: NisusWrtParser.cxx:58
NisusWrtParser::readReference
bool readReference(NisusWrtStruct::RecursifData const &data)
parse the MRK7 resource
Definition: NisusWrtParser.cxx:1245
NisusWrtParserInternal::State::m_isTextDocument
bool m_isTextDocument
a bool to know if we examine a text document or another thing glossary ...
Definition: NisusWrtParser.cxx:332
NisusWrtParserInternal::State::m_numberingList
std::vector< Variable > m_numberingList
the list of numbering
Definition: NisusWrtParser.cxx:322
MWAWParser::setTextListener
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
NisusWrtParserInternal::Zone
internal structure used to stored some zone data
Definition: NisusWrtParser.cxx:287
NisusWrtParser::readPrintInfo
bool readPrintInfo(MWAWEntry const &entry)
read the print info zone ( id=128 )
Definition: NisusWrtParser.cxx:1580
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
NisusWrtParserInternal::Zone::m_numberingResetList
std::vector< int > m_numberingResetList
the list of numbering reset id
Definition: NisusWrtParser.cxx:299
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
NisusWrtParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: NisusWrtParser.cxx:325
NisusWrtParserInternal::Variable::m_prefix
std::string m_prefix
the prefix
Definition: NisusWrtParser.cxx:130
NisusWrtParserInternal::Variable
Internal structure: use to store a numbering, a variable or a version.
Definition: NisusWrtParser.cxx:60
NisusWrtParser::getFootnoteInfo
void getFootnoteInfo(NisusWrtStruct::FootnoteInfo &fInfo) const
returns the footnote information
Definition: NisusWrtParser.cxx:392
NisusWrtStruct::RecursifData::Node
the data data
Definition: NisusWrtStruct.hxx:196
NisusWrtParser::NisusWrtGraph
friend class NisusWrtGraph
Definition: NisusWrtParser.hxx:62
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
NisusWrtParserInternal::Variable::m_numberingType
libmwaw::NumberingType m_numberingType
the numbering type
Definition: NisusWrtParser.cxx:124
NisusWrtStruct::RecursifData::Node::m_entry
MWAWEntry m_entry
the entry
Definition: NisusWrtStruct.hxx:213
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
NisusWrtParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: NisusWrtParser.cxx:325
NisusWrtParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: NisusWrtParser.cxx:803
NisusWrtParser::createDocument
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: NisusWrtParser.cxx:566
NisusWrtStruct::ZoneType
ZoneType
the different zone
Definition: NisusWrtStruct.hxx:50
NisusWrtParser::m_graphParser
std::shared_ptr< NisusWrtGraph > m_graphParser
the graph parser
Definition: NisusWrtParser.hxx:157
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
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
NisusWrtParserInternal::Variable::m_dateFormat
int m_dateFormat
the date format
Definition: NisusWrtParser.cxx:134
NisusWrtStruct
a namespace used to regroup the different structure used to parse a Nisus File
Definition: NisusWrtStruct.cxx:42
NisusWrtParserInternal::Reference::m_text
std::string m_text
Definition: NisusWrtParser.cxx:283
NisusWrtParser::sendPicture
bool sendPicture(int pictId, MWAWPosition const &pictPos)
try to send a picture
Definition: NisusWrtParser.cxx:400
NisusWrtParserInternal::State
Internal: the state of a NisusWrtParser.
Definition: NisusWrtParser.cxx:308
NisusWrtParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: NisusWrtParser.cxx:380
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
NisusWrtStruct::RecursifData::m_info
std::shared_ptr< Info > m_info
zone information
Definition: NisusWrtStruct.hxx:176
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWField::None
@ None
Definition: libmwaw_internal.hxx:401
NisusWrtParser::getColumnInfo
void getColumnInfo(int &numColumns, float &colSep) const
returns the columns information
Definition: NisusWrtParser.cxx:386
NisusWrtParser::NisusWrtText
friend class NisusWrtText
Definition: NisusWrtParser.hxx:63
MWAWVec2< float >
libmwaw::ARABIC
@ ARABIC
Definition: libmwaw_internal.hxx:180
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
NisusWrtStruct::FootnoteInfo
Internal: low level a structure helping to store the footnote information.
Definition: NisusWrtStruct.hxx:109
NisusWrtParser::readVariable
bool readVariable(NisusWrtStruct::RecursifData const &data)
parse the DSPL/VARI/VRS resource: numbering definition, variable or variable ?
Definition: NisusWrtParser.cxx:927
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
NisusWrtParserInternal::State::State
State()
constructor
Definition: NisusWrtParser.cxx:310
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
NisusWrtParserInternal::Variable::m_fieldType
long m_fieldType
the variable type
Definition: NisusWrtParser.cxx:120
NisusWrtParser::parse
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: NisusWrtParser.cxx:533
NisusWrtParserInternal::Reference
Internal structure: use to store a mark (reference)
Definition: NisusWrtParser.cxx:269
NisusWrtParser.hxx
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
NisusWrtStruct::VariableType
VariableType
the different variable type
Definition: NisusWrtStruct.hxx:53
NisusWrtParserInternal::Variable::Variable
Variable(NisusWrtStruct::VariableType type=NisusWrtStruct::V_None)
Constructor.
Definition: NisusWrtParser.cxx:62
MWAWEntry::m_type
std::string m_type
the entry type
Definition: MWAWEntry.hxx:198
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
NisusWrtStruct::V_None
@ V_None
Definition: NisusWrtStruct.hxx:53
NisusWrtStruct.hxx
NisusWrtParser::readStringsList
bool readStringsList(MWAWEntry const &entry, std::vector< std::string > &list, bool simpleList)
read a list of strings
Definition: NisusWrtParser.cxx:845
FreeHandParserInternal::ZoneType
ZoneType
the different zone type
Definition: FreeHandParser.cxx:65
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
NisusWrtParserInternal::Reference::m_textPosition
MWAWEntry m_textPosition
Definition: NisusWrtParser.cxx:281
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
NisusWrtParserInternal::Zone::Zone
Zone()
constructor
Definition: NisusWrtParser.cxx:289
NisusWrtParser::readCPRC
bool readCPRC(MWAWEntry const &entry)
read the CPRC info zone ( id=128 ), an unknown zone
Definition: NisusWrtParser.cxx:1848
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
NisusWrtStruct::V_Variable
@ V_Variable
Definition: NisusWrtStruct.hxx:53
NisusWrtParser::readFnSc
bool readFnSc(MWAWEntry const &entry)
parse the FnSc resource: a unknown resource, find in v6 document
Definition: NisusWrtParser.cxx:2031
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
NisusWrtParser::m_textParser
std::shared_ptr< NisusWrtText > m_textParser
the text parser
Definition: NisusWrtParser.hxx:160
NisusWrtParser::getReferenceData
bool getReferenceData(NisusWrtStruct::ZoneType zoneId, int vId, MWAWField::Type &fType, std::string &content, std::vector< int > &number) const
returns the fieldtype or a string corresponding to a variable
Definition: NisusWrtParser.cxx:431
libmwaw::LOWERCASE
@ LOWERCASE
Definition: libmwaw_internal.hxx:180
NisusWrtParserInternal::Variable::m_sample
std::string m_sample
a sample used in a dialog ?
Definition: NisusWrtParser.cxx:136
NisusWrtParserInternal::Variable::m_containerType
NisusWrtStruct::VariableType m_containerType
the container type
Definition: NisusWrtParser.cxx:118
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
NisusWrtParser::~NisusWrtParser
~NisusWrtParser() final
destructor
Definition: NisusWrtParser.cxx:349
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
NisusWrtParser
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
NisusWrtParser::init
void init()
inits all internal variables
Definition: NisusWrtParser.cxx:353
NisusWrtParser::readPageLimit
bool readPageLimit(MWAWEntry const &entry)
read the PGLY info zone ( id=128 )
Definition: NisusWrtParser.cxx:1647
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
NisusWrtParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, Variable const &num)
Definition: NisusWrtParser.cxx:141
NisusWrtParser::readSGP1
bool readSGP1(NisusWrtStruct::RecursifData const &data)
parse the SGP1 resource: a unknown resource
Definition: NisusWrtParser.cxx:1441
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
NisusWrtParserInternal::Variable::m_type
int m_type
the main type
Definition: NisusWrtParser.cxx:116
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
NisusWrtParserInternal::Reference::m_id
int m_id
Definition: NisusWrtParser.cxx:279
MWAWInputStream.hxx
NisusWrtParserInternal::Variable::getDateFormat
std::string getDateFormat() const
returns the date format
Definition: NisusWrtParser.cxx:85
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
librevenge
Definition: MWAWDocument.hxx:57
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
NisusWrtParserInternal::Variable::m_refId
int m_refId
the reference id
Definition: NisusWrtParser.cxx:122
NisusWrtParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:372
MWAWBox2< int >
NisusWrtParserInternal::Variable::m_startNumber
int m_startNumber
the start number
Definition: NisusWrtParser.cxx:126
MWAWDocument::MWAW_T_NISUSWRITER
@ MWAW_T_NISUSWRITER
Nisus Writer (v3.4-v6.5)
Definition: MWAWDocument.hxx:136
MWAWPageSpan::LANDSCAPE
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:102
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
NisusWrtParser::readNumberingReset
bool readNumberingReset(MWAWEntry const &entry, int zoneId)
parse the DPND resource: numbering reset ( one by zone ) : related to CNTR and VRS ?
Definition: NisusWrtParser.cxx:1207
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWParser::resetTextListener
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
NisusWrtGraph
the main class to read the graphic part of a Nisus file
Definition: NisusWrtGraph.hxx:68
NisusWrtGraph.hxx