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 
60 {
62  friend class NisusWrtGraph;
63  friend class NisusWrtText;
64 public:
68  virtual ~NisusWrtParser();
69 
71  bool checkHeader(MWAWHeader *header, bool strict=false);
72 
73  // the main parse function
74  void parse(librevenge::RVNGTextInterface *documentInterface);
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;
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 
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 
146 
149 
150  //
151  // data
152  //
154  shared_ptr<NisusWrtParserInternal::State> m_state;
155 
157  shared_ptr<NisusWrtGraph> m_graphParser;
158 
160  shared_ptr<NisusWrtText> m_textParser;
161 };
162 #endif
163 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
NisusWrtStruct::FootnoteInfo::m_distToDocument
int m_distToDocument
the distance between the footnote and the document
Definition: NisusWrtStruct.hxx:128
MWAWTextParser
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
NisusWrtParser::readINFO
bool readINFO(MWAWEntry const &entry)
read the INFO info zone, an unknown zone of size 0x23a: to doo
Definition: NisusWrtParser.cxx:2053
MWAWRSRCParser::Version::m_majorVersion
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:140
MWAWRSRCParser::Version
a public structure used to return the version
Definition: MWAWRSRCParser.hxx:133
MWAWTextListenerPtr
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
NisusWrtText.hxx
NisusWrtParserInternal::Zone::m_referenceList
std::vector< Reference > m_referenceList
the list of reference
Definition: NisusWrtParser.cxx:278
MWAWEntry::setName
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:137
libmwaw::NONE
@ NONE
Definition: libmwaw_internal.hxx:170
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
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:127
NisusWrtParser::getDateFormat
std::string getDateFormat(NisusWrtStruct::ZoneType zoneId, int vId) const
returns the date format corresponding to a variable id or ""
Definition: NisusWrtParser.cxx:387
NisusWrtParserInternal::State::m_zones
Zone m_zones[3]
the main zones : Main, Footnote, HeaderFooter
Definition: NisusWrtParser.cxx:300
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
libmwaw::numberingValueToString
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:129
NisusWrtParserInternal::Variable::m_suffix
std::string m_suffix
the suffix
Definition: NisusWrtParser.cxx:123
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
libmwaw::NumberingType
NumberingType
Definition: libmwaw_internal.hxx:170
NisusWrtParserInternal::State::m_columnSep
float m_columnSep
the columns separator
Definition: NisusWrtParser.cxx:306
NisusWrtParserInternal::Zone::m_versionList
std::vector< Variable > m_versionList
the list of versions
Definition: NisusWrtParser.cxx:284
NisusWrtStruct::RecursifData
Internal: low level a structure helping to read recursifList.
Definition: NisusWrtStruct.hxx:138
NisusWrtParserInternal::State::m_numColumns
int m_numColumns
the number of columns
Definition: NisusWrtParser.cxx:305
NisusWrtParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: NisusWrtParser.cxx:780
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:596
NisusWrtStruct::RecursifData::Node::m_type
int m_type
the variable type
Definition: NisusWrtStruct.hxx:196
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:342
NisusWrtParser::newPage
void newPage(int number)
adds a new page
Definition: NisusWrtParser.cxx:492
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:153
libmwaw::UPPERCASE
@ UPPERCASE
Definition: libmwaw_internal.hxx:170
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
MWAWFontConverter.hxx
libmwaw::numberingTypeToString
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:105
NisusWrtStruct::ZoneType
ZoneType
the different zone
Definition: NisusWrtStruct.hxx:50
MWAWField::Type
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:371
NisusWrtStruct::RecursifData::m_childList
std::vector< Node > m_childList
the list of data entry
Definition: NisusWrtStruct.hxx:169
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:126
libmwaw::LOWERCASE_ROMAN
@ LOWERCASE_ROMAN
Definition: libmwaw_internal.hxx:170
MWAWPrinter.hxx
MWAWPageSpan::setFormOrientation
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:182
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:89
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
MWAWParser::getTextListener
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
libmwaw::UPPERCASE_ROMAN
@ UPPERCASE_ROMAN
Definition: libmwaw_internal.hxx:170
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:308
NisusWrtParser::readCNTR
bool readCNTR(MWAWEntry const &entry, int zoneId)
read the CNTR resource: a list of version controler ?
Definition: NisusWrtParser.cxx:1871
NisusWrtParserInternal::Variable::operator<<
friend std::ostream & operator<<(std::ostream &o, Variable const &num)
operator<<
Definition: NisusWrtParser.cxx:132
NisusWrtParserInternal::Variable::isDate
bool isDate() const
returns true if this is a date
Definition: NisusWrtParser.cxx:71
NisusWrtStruct::RecursifData::Node::m_data
shared_ptr< RecursifData > m_data
the recursif data
Definition: NisusWrtStruct.hxx:200
NisusWrtParser::parse
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: NisusWrtParser.cxx:508
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:1913
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:371
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
NisusWrtParserInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: NisusWrtParser.cxx:304
NisusWrtParserInternal::Variable::m_increment
int m_increment
the increment
Definition: NisusWrtParser.cxx:119
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
NisusWrtParser::readFTA2
bool readFTA2(MWAWEntry const &entry)
parse the FTA2 resource: a list of ? find in v6 document
Definition: NisusWrtParser.cxx:1966
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:282
NisusWrtParserInternal::Reference::Reference
Reference()
constructor
Definition: NisusWrtParser.cxx:259
NisusWrtParserInternal::Variable::m_extra
std::string m_extra
some extra debuging information
Definition: NisusWrtParser.cxx:129
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
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:1224
NisusWrtParserInternal::State::m_isTextDocument
bool m_isTextDocument
a bool to know if we examine a text document or another thing glossary ...
Definition: NisusWrtParser.cxx:310
NisusWrtParserInternal::State::m_numberingList
std::vector< Variable > m_numberingList
the list of numbering
Definition: NisusWrtParser.cxx:298
MWAWParser::setTextListener
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
NisusWrtStruct::RecursifData::Node::isLeaf
bool isLeaf() const
returns true if the node is a final node
Definition: NisusWrtStruct.hxx:190
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:272
NisusWrtStruct::RecursifData::m_info
shared_ptr< Info > m_info
zone information
Definition: NisusWrtStruct.hxx:165
NisusWrtParser::readPrintInfo
bool readPrintInfo(MWAWEntry const &entry)
read the print info zone ( id=128 )
Definition: NisusWrtParser.cxx:1561
MWAWRSRCParser.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:620
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:280
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:615
NisusWrtParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: NisusWrtParser.cxx:301
NisusWrtParserInternal::Variable::m_prefix
std::string m_prefix
the prefix
Definition: NisusWrtParser.cxx:121
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:367
NisusWrtStruct::RecursifData::Node
the data data
Definition: NisusWrtStruct.hxx:184
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:115
NisusWrtStruct::FootnoteInfo::m_distSeparator
int m_distSeparator
the distance between two footnotes ( or between a footnote and the line sep)
Definition: NisusWrtStruct.hxx:130
NisusWrtStruct::RecursifData::Node::m_entry
MWAWEntry m_entry
the entry
Definition: NisusWrtStruct.hxx:198
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
NisusWrtParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: NisusWrtParser.cxx:301
NisusWrtParser::createDocument
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: NisusWrtParser.cxx:541
NisusWrtStruct::FootnoteInfo::m_separatorLength
int m_separatorLength
the separator length
Definition: NisusWrtStruct.hxx:132
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
NisusWrtParserInternal::Variable::m_dateFormat
int m_dateFormat
the date format
Definition: NisusWrtParser.cxx:125
NisusWrtParserInternal::Reference::m_text
std::string m_text
Definition: NisusWrtParser.cxx:268
NisusWrtParser::sendPicture
bool sendPicture(int pictId, MWAWPosition const &pictPos)
try to send a picture
Definition: NisusWrtParser.cxx:375
NisusWrtParserInternal::State
Internal: the state of a NisusWrtParser.
Definition: NisusWrtParser.cxx:289
NisusWrtParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: NisusWrtParser.cxx:355
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
MWAWField::None
@ None
Definition: libmwaw_internal.hxx:371
NisusWrtParser::getColumnInfo
void getColumnInfo(int &numColumns, float &colSep) const
returns the columns information
Definition: NisusWrtParser.cxx:361
NisusWrtParser::NisusWrtText
friend class NisusWrtText
Definition: NisusWrtParser.hxx:63
MWAWVec2< float >
libmwaw::ARABIC
@ ARABIC
Definition: libmwaw_internal.hxx:170
libmwaw::ParseException
Definition: libmwaw_internal.hxx:142
MWAWDebug.hxx
NisusWrtStruct::FootnoteInfo
Internal: low level a structure helping to store the footnote information.
Definition: NisusWrtStruct.hxx:106
NisusWrtParser::readVariable
bool readVariable(NisusWrtStruct::RecursifData const &data)
parse the DSPL/VARI/VRS resource: numbering definition, variable or variable ?
Definition: NisusWrtParser.cxx:904
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
NisusWrtParserInternal::State::State
State()
constructor
Definition: NisusWrtParser.cxx:291
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
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:111
NisusWrtParserInternal::Reference
Internal structure: use to store a mark (reference)
Definition: NisusWrtParser.cxx:257
NisusWrtParser.hxx
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:371
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
NisusWrtParser::m_graphParser
shared_ptr< NisusWrtGraph > m_graphParser
the graph parser
Definition: NisusWrtParser.hxx:157
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
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:822
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
NisusWrtParser::NisusWrtParser
NisusWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: NisusWrtParser.cxx:318
MWAWHeader.hxx
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
NisusWrtParserInternal::Reference::m_textPosition
MWAWEntry m_textPosition
Definition: NisusWrtParser.cxx:266
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
NisusWrtParserInternal::Zone::Zone
Zone()
constructor
Definition: NisusWrtParser.cxx:274
NisusWrtParser::readCPRC
bool readCPRC(MWAWEntry const &entry)
read the CPRC info zone ( id=128 ), an unknown zone
Definition: NisusWrtParser.cxx:1833
NisusWrtParserInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: NisusWrtParser.cxx:303
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:2016
MWAWTextListener.hxx
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:406
libmwaw::LOWERCASE
@ LOWERCASE
Definition: libmwaw_internal.hxx:170
NisusWrtParserInternal::Variable::m_sample
std::string m_sample
a sample used in a dialog ?
Definition: NisusWrtParser.cxx:127
NisusWrtParserInternal::Variable::m_containerType
NisusWrtStruct::VariableType m_containerType
the container type
Definition: NisusWrtParser.cxx:109
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MWAWRSRCParserPtr
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
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:223
NisusWrtParser::init
void init()
inits all internal variables
Definition: NisusWrtParser.cxx:328
NisusWrtParser::readPageLimit
bool readPageLimit(MWAWEntry const &entry)
read the PGLY info zone ( id=128 )
Definition: NisusWrtParser.cxx:1628
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
NisusWrtParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, Variable const &num)
Definition: NisusWrtParser.cxx:132
NisusWrtParser::readSGP1
bool readSGP1(NisusWrtStruct::RecursifData const &data)
parse the SGP1 resource: a unknown resource
Definition: NisusWrtParser.cxx:1420
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:107
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:264
MWAWInputStream.hxx
NisusWrtParserInternal::Variable::getDateFormat
std::string getDateFormat() const
returns the date format
Definition: NisusWrtParser.cxx:76
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:82
NisusWrtParser::m_state
shared_ptr< NisusWrtParserInternal::State > m_state
the state
Definition: NisusWrtParser.hxx:154
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
NisusWrtParserInternal::Variable::m_refId
int m_refId
the reference id
Definition: NisusWrtParser.cxx:113
NisusWrtParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:347
MWAWBox2< int >
NisusWrtParserInternal::Variable::m_startNumber
int m_startNumber
the start number
Definition: NisusWrtParser.cxx:117
NisusWrtParser::~NisusWrtParser
virtual ~NisusWrtParser()
destructor
Definition: NisusWrtParser.cxx:324
MWAWDocument::MWAW_T_NISUSWRITER
@ MWAW_T_NISUSWRITER
Nisus Writer (v3.4-v6.5)
Definition: MWAWDocument.hxx:136
NisusWrtParser::m_textParser
shared_ptr< NisusWrtText > m_textParser
the text parser
Definition: NisusWrtParser.hxx:160
MWAWPageSpan::LANDSCAPE
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:99
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
NisusWrtStruct::FootnoteInfo::m_flags
int m_flags
the footnote flags
Definition: NisusWrtStruct.hxx:126
NisusWrtStruct::FootnoteInfo::m_unknown
int m_unknown
a unknown value
Definition: NisusWrtStruct.hxx:134
NisusWrtStruct::Z_Main
@ Z_Main
Definition: NisusWrtStruct.hxx:50
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:1186
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
MWAWParser::resetTextListener
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
NisusWrtGraph
the main class to read the graphic part of a Nisus file
Definition: NisusWrtGraph.hxx:68
NisusWrtGraph.hxx

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