NisusWrtText.hxx Source File documentation

NisusWrtText.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 Nisus text document
36 *
37 */
38 #ifndef NISUS_WRT_TEXT
39 # define NISUS_WRT_TEXT
40
41 #include "libmwaw_internal.hxx"
42 #include "MWAWDebug.hxx"
43
44 #include "NisusWrtStruct.hxx"
45
46 namespace NisusWrtTextInternal
47 {
48 class SubDocument;
49 struct Paragraph;
50 struct State;
51 }
52
53 class NisusWrtParser;
54
60 class NisusWrtText
61 {
62 friend class NisusWrtTextInternal::SubDocument;
63 friend class NisusWrtParser;
64 public:
66 explicit NisusWrtText(NisusWrtParser &parser);
68 virtual ~NisusWrtText();
69
71 int version() const;
72
74 int numPages() const;
75
76 protected:
77
79 bool createZones();
80
82 std::shared_ptr<MWAWSubDocument> getHeader(int page, int &numSimillar);
84 std::shared_ptr<MWAWSubDocument> getFooter(int page, int &numSimillar);
85
87 bool sendMainText();
88
90 void flushExtra();
91
95 bool sendText(MWAWEntry const &entry, NisusWrtStruct::Position fPos=NisusWrtStruct::Position());
96
98 bool sendFootnote(int footnoteId);
99
101 bool sendHeaderFooter(int hfId);
102
103 //
104 // intermediate level
105 //
106
108 void computePositions();
109
111 void setProperty(NisusWrtTextInternal::Paragraph const &ruler, int width);
112
114 bool readFontsList(MWAWEntry const &entry);
116 bool readHeaderFooter(MWAWEntry const &entry);
118 bool readFootnotes(MWAWEntry const &entry);
119
121 bool readFonts(MWAWEntry const &entry);
123 bool readPosToFont(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId);
124
126 bool readParagraphs(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId);
127
129 bool readPICD(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId);
130
131 //
132 // low level
133 //
134
136 long findFilePos(NisusWrtStruct::ZoneType zoneId, NisusWrtStruct::Position const &pos);
137 private:
138 NisusWrtText(NisusWrtText const &orig) = delete;
139 NisusWrtText &operator=(NisusWrtText const &orig) = delete;
140
141 protected:
142 //
143 // data
144 //
146 MWAWParserStatePtr m_parserState;
147
149 std::shared_ptr<NisusWrtTextInternal::State> m_state;
150
152 NisusWrtParser *m_mainParser;
153
154 };
155 #endif
156 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWParagraph::Fixed
@ Fixed
Definition: MWAWParagraph.hxx:94
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
NisusWrtTextInternal::Footnote::m_extra
std::string m_extra
some extra debuging information
Definition: NisusWrtText.cxx:267
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWPosition::CharBaseLine
@ CharBaseLine
Definition: MWAWPosition.hxx:51
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
NisusWrtTextInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWFont::reverseVideoBit
@ reverseVideoBit
Definition: MWAWFont.hxx:192
NisusWrtTextInternal::Font::m_font
MWAWFont m_font
the font
Definition: NisusWrtText.cxx:84
NisusWrtTextInternal::P_Ruler
@ P_Ruler
Definition: NisusWrtText.cxx:318
NisusWrtTextInternal::State::m_version
int m_version
the file version
Definition: NisusWrtText.cxx:408
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
NisusWrtTextInternal::P_HeaderFooter
@ P_HeaderFooter
Definition: NisusWrtText.cxx:318
NisusWrtText.hxx
NisusWrtText::sendMainText
bool sendMainText()
send a main zone
Definition: NisusWrtText.cxx:1865
NisusWrtTextInternal::Zone::m_pictureParaList
std::vector< PicturePara > m_pictureParaList
the list of paragraph
Definition: NisusWrtText.cxx:385
MWAWNote
a note
Definition: libmwaw_internal.hxx:445
NisusWrtText::setProperty
void setProperty(NisusWrtTextInternal::Paragraph const &ruler, int width)
sends a paragraph property to the listener
Definition: NisusWrtText.cxx:1034
MWAWFont::smallCapsBit
@ smallCapsBit
Definition: MWAWFont.hxx:192
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
NisusWrtTextInternal::Footnote::m_textLabel
std::string m_textLabel
the label in the text
Definition: NisusWrtText.cxx:261
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
NisusWrtTextInternal::Font::m_variableId
int m_variableId
the variable id : in fact cst[unkn] + v_id
Definition: NisusWrtText.cxx:92
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
NisusWrtText::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: NisusWrtText.cxx:1879
NisusWrtText::readFontsList
bool readFontsList(MWAWEntry const &entry)
read the list of fonts
Definition: NisusWrtText.cxx:774
NisusWrtTextInternal::Font::Font
Font()
the constructor
Definition: NisusWrtText.cxx:64
NisusWrtStruct::Z_Main
@ Z_Main
Definition: NisusWrtStruct.hxx:50
NisusWrtTextInternal::PicturePara::operator<<
friend std::ostream & operator<<(std::ostream &o, PicturePara const &pict)
operator<<
Definition: NisusWrtText.cxx:304
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
NisusWrtTextInternal::Font::m_pictureId
int m_pictureId
the picture id ( if this is for a picture )
Definition: NisusWrtText.cxx:86
MWAWHeaderFooter::Type
Type
the header/footer type
Definition: MWAWPageSpan.hxx:48
MWAWField::m_DTFormat
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
MWAWHeaderFooter::EVEN
@ EVEN
Definition: MWAWPageSpan.hxx:50
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
NisusWrtText::sendHeaderFooter
bool sendHeaderFooter(int hfId)
try to send the ith header footer
Definition: NisusWrtText.cxx:1530
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
NisusWrtTextInternal::Footnote::m_noteLabel
std::string m_noteLabel
the label in the note
Definition: NisusWrtText.cxx:263
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
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
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
NisusWrtTextInternal::Font
Internal: the fonts and many other data.
Definition: NisusWrtText.cxx:62
NisusWrtText::sendText
bool sendText(MWAWEntry const &entry, NisusWrtStruct::Position fPos=NisusWrtStruct::Position())
read a text entry.
Definition: NisusWrtText.cxx:1594
NisusWrtTextInternal::HeaderFooter::m_occurrence
MWAWHeaderFooter::Occurrence m_occurrence
the header occurrence
Definition: NisusWrtText.cxx:178
MWAWFontConverter.hxx
NisusWrtTextInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: NisusWrtText.cxx:460
NisusWrtStruct::FootnoteInfo::resetNumberOnNewPage
bool resetNumberOnNewPage() const
returns true if we have to reset index at the beginning of a page
Definition: NisusWrtStruct.hxx:128
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
NisusWrtTextInternal::P_Footnote
@ P_Footnote
Definition: NisusWrtText.cxx:318
NisusWrtTextInternal::HeaderFooter::m_type
MWAWHeaderFooter::Type m_type
the header type
Definition: NisusWrtText.cxx:176
MWAWField::Type
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:401
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
MWAWSection::setColumns
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
NisusWrtTextInternal::Footnote::m_parsed
bool m_parsed
a flag to know if the footnote is parsed
Definition: NisusWrtText.cxx:265
NisusWrtTextInternal::Zone::m_entry
MWAWEntry m_entry
the position of text in the rsrc file
Definition: NisusWrtText.cxx:381
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
NisusWrtTextInternal::HeaderFooter::HeaderFooter
HeaderFooter()
Constructor.
Definition: NisusWrtText.cxx:162
MWAWFont::setOverlineStyle
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:388
NisusWrtTextInternal::HeaderFooter::m_paragraph
long m_paragraph[2]
the paragraph position in the header zone (first and last)
Definition: NisusWrtText.cxx:182
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MWAWNote::m_number
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:460
MWAWParagraph::m_spacingsInterlineType
MWAWVariable< LineSpacingType > m_spacingsInterlineType
the interline type: fixed, atLeast, ...
Definition: MWAWParagraph.hxx:160
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
NisusWrtTextInternal::Zone::m_paragraphList
std::vector< Paragraph > m_paragraphList
the list of paragraph
Definition: NisusWrtText.cxx:383
NisusWrtText::createZones
bool createZones()
finds the different text zones
Definition: NisusWrtText.cxx:641
NisusWrtTextInternal::State::m_actualPage
int m_actualPage
Definition: NisusWrtText.cxx:417
NisusWrtTextInternal::PicturePara::m_paragraph
int m_paragraph
the paragraph position
Definition: NisusWrtText.cxx:299
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
NisusWrtTextInternal::Zone
internal structure used to store zone data
Definition: NisusWrtText.cxx:369
NisusWrtTextInternal::HeaderFooter
Internal structure: use to store a header.
Definition: NisusWrtText.cxx:160
NisusWrtTextInternal::State::m_zones
Zone m_zones[3]
the main zones : Main, Footnote, HeaderFooter
Definition: NisusWrtText.cxx:415
NisusWrtTextInternal::State::m_footnoteList
std::vector< Footnote > m_footnoteList
the list of footnote
Definition: NisusWrtText.cxx:413
MWAWFont::reverseWritingBit
@ reverseWritingBit
Definition: MWAWFont.hxx:197
NisusWrtText::NisusWrtText
NisusWrtText(NisusWrtParser &parser)
constructor
Definition: NisusWrtText.cxx:497
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
NisusWrtText::readFonts
bool readFonts(MWAWEntry const &entry)
read the FTAB/STYL resource: a list of fonts
Definition: NisusWrtText.cxx:828
NisusWrtText::readFootnotes
bool readFootnotes(MWAWEntry const &entry)
read the footnote main entry
Definition: NisusWrtText.cxx:1350
MWAWFont::setDeltaLetterSpacing
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
NisusWrtTextInternal::State
Internal: the state of a NisusWrtText.
Definition: NisusWrtText.cxx:393
NisusWrtTextInternal::State::State
State()
constructor
Definition: NisusWrtText.cxx:395
NisusWrtTextInternal::Font::m_pictureDim
MWAWBox2i m_pictureDim[2]
two picture dim ( orig && file ?)
Definition: NisusWrtText.cxx:98
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
NisusWrtTextInternal::SubDocument::m_textParser
NisusWrtText * m_textParser
the text parser
Definition: NisusWrtText.cxx:450
NisusWrtTextInternal::P_PicturePara
@ P_PicturePara
Definition: NisusWrtText.cxx:318
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
NisusWrtStruct::Position::m_word
int m_word
the word
Definition: NisusWrtStruct.hxx:91
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
NisusWrtTextInternal::Font::operator<<
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: NisusWrtText.cxx:104
NisusWrtText::findFilePos
long findFilePos(NisusWrtStruct::ZoneType zoneId, NisusWrtStruct::Position const &pos)
find the file pos which correspond to a pos
Definition: NisusWrtText.cxx:1482
NisusWrtTextInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: NisusWrtText.cxx:440
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWFont::uppercaseBit
@ uppercaseBit
Definition: MWAWFont.hxx:192
NisusWrtTextInternal::operator<<
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: NisusWrtText.cxx:104
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MWAWFont::setStrikeOutStyle
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
NisusWrtStruct::Z_HeaderFooter
@ Z_HeaderFooter
Definition: NisusWrtStruct.hxx:50
MWAWSubDocument.hxx
NisusWrtText
the main class to read the text part of Nisus file
Definition: NisusWrtText.hxx:61
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
NisusWrtText::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: NisusWrtText.hxx:146
NisusWrtTextInternal::HeaderFooter::m_page
int m_page
the page
Definition: NisusWrtText.cxx:180
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWParagraph::AtLeast
@ AtLeast
Definition: MWAWParagraph.hxx:94
NisusWrtTextInternal::State::m_hfList
std::vector< HeaderFooter > m_hfList
the list of header footer
Definition: NisusWrtText.cxx:419
NisusWrtTextInternal::P_Unknown
@ P_Unknown
Definition: NisusWrtText.cxx:318
NisusWrtTextInternal::Zone::PLCMap
std::multimap< NisusWrtStruct::Position, DataPLC, NisusWrtStruct::Position::Compare > PLCMap
Definition: NisusWrtText.cxx:370
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
NisusWrtStruct::Position
a position
Definition: NisusWrtStruct.hxx:56
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParagraph.hxx
NisusWrtTextInternal::HeaderFooter::m_textParagraph
long m_textParagraph
the text position
Definition: NisusWrtText.cxx:184
NisusWrtText::m_state
std::shared_ptr< NisusWrtTextInternal::State > m_state
the state
Definition: NisusWrtText.hxx:149
NisusWrtText::readPosToFont
bool readPosToFont(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the FRMT resource: a list of filepos -> fontId
Definition: NisusWrtText.cxx:984
MWAWRSRCParser.hxx
MWAWParser::getRSRCParser
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
NisusWrtTextInternal::DataPLC::DataPLC
DataPLC()
Definition: NisusWrtText.cxx:322
libmwaw_internal.hxx
NisusWrtText::readHeaderFooter
bool readHeaderFooter(MWAWEntry const &entry)
read the header/footer main entry
Definition: NisusWrtText.cxx:1270
NisusWrtStruct::Position::m_char
int m_char
the character position
Definition: NisusWrtStruct.hxx:93
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
NisusWrtTextInternal::Font::m_extra
std::string m_extra
extra data
Definition: NisusWrtText.cxx:100
NisusWrtText::operator=
NisusWrtText & operator=(NisusWrtText const &orig)=delete
MWAWHeaderFooter::NEVER
@ NEVER
Definition: MWAWPageSpan.hxx:50
NisusWrtTextInternal::Font::isVariable
bool isVariable() const
Definition: NisusWrtText.cxx:75
NisusWrtParser::getFootnoteInfo
void getFootnoteInfo(NisusWrtStruct::FootnoteInfo &fInfo) const
returns the footnote information
Definition: NisusWrtParser.cxx:392
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
NisusWrtStruct::Position::m_paragraph
int m_paragraph
the paragraph
Definition: NisusWrtStruct.hxx:89
NisusWrtTextInternal::Font::m_format
int m_format
the main format ...
Definition: NisusWrtText.cxx:94
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
NisusWrtTextInternal::Footnote::m_paragraph
int m_paragraph[2]
the paragraph position in the footnote zone (first and last)
Definition: NisusWrtText.cxx:257
NisusWrtStruct::ZoneType
ZoneType
the different zone
Definition: NisusWrtStruct.hxx:50
NisusWrtTextInternal::Footnote::m_number
int m_number
the note number
Definition: NisusWrtText.cxx:255
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
libmwaw::DOC_HEADER_FOOTER
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
NisusWrtParser::sendPicture
bool sendPicture(int pictId, MWAWPosition const &pictPos)
try to send a picture
Definition: NisusWrtParser.cxx:400
NisusWrtTextInternal::State::m_numPages
int m_numPages
Definition: NisusWrtText.cxx:417
NisusWrtTextInternal::Paragraph::Paragraph
Paragraph(Paragraph const &)=default
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
MWAWVec2< int >
MWAWHeaderFooter::ODD
@ ODD
Definition: MWAWPageSpan.hxx:50
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWFont::boxedBit
@ boxedBit
Definition: MWAWFont.hxx:195
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:46
NisusWrtTextInternal::Footnote::getTextLabel
std::string getTextLabel(int actId) const
returns a label corresponding to a note ( or nothing if we can use numbering note)
Definition: NisusWrtText.cxx:238
NisusWrtStruct::Z_Footnote
@ Z_Footnote
Definition: NisusWrtStruct.hxx:50
MWAWDebug.hxx
NisusWrtTextInternal::HeaderFooter::m_unknown
int m_unknown
a unknown value
Definition: NisusWrtText.cxx:186
NisusWrtStruct::FootnoteInfo
Internal: low level a structure helping to store the footnote information.
Definition: NisusWrtStruct.hxx:109
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
NisusWrtText::getFooter
std::shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: NisusWrtText.cxx:543
NisusWrtTextInternal::DataPLC::m_extra
std::string m_extra
an extra data to store message ( if needed )
Definition: NisusWrtText.cxx:335
NisusWrtTextInternal::Footnote::operator<<
friend std::ostream & operator<<(std::ostream &o, Footnote const &ft)
operator<<
Definition: NisusWrtText.cxx:270
NisusWrtTextInternal::HeaderFooter::operator<<
friend std::ostream & operator<<(std::ostream &o, HeaderFooter const &hf)
operator<<
Definition: NisusWrtText.cxx:193
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MWAWHeaderFooter::Occurrence
Occurrence
the header/footer occurrence in the file
Definition: MWAWPageSpan.hxx:50
NisusWrtTextInternal::PicturePara
Internal: the picture data ( PICD )
Definition: NisusWrtText.cxx:286
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
NisusWrtTextInternal::Footnote
Internal structure: use to store a footnote.
Definition: NisusWrtText.cxx:224
NisusWrtParser.hxx
NisusWrtTextInternal::Footnote::Footnote
Footnote()
Constructor.
Definition: NisusWrtText.cxx:226
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MWAWField
a field
Definition: libmwaw_internal.hxx:399
NisusWrtTextInternal::SubDocument
Internal: the subdocument of a NisusWrtText.
Definition: NisusWrtText.cxx:429
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
MWAWFont::Script::sub
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:120
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
NisusWrtText::readParagraphs
bool readParagraphs(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the RULE resource: a list of paragraphs
Definition: NisusWrtText.cxx:1046
NisusWrtTextInternal::Zone::m_plcMap
PLCMap m_plcMap
the map pos -> format id
Definition: NisusWrtText.cxx:388
NisusWrtTextInternal::HeaderFooter::m_parsed
bool m_parsed
a flag to know if the footnote is parsed
Definition: NisusWrtText.cxx:188
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
NisusWrtTextInternal::Footnote::m_textPosition
NisusWrtStruct::Position m_textPosition
the text position
Definition: NisusWrtText.cxx:259
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
NisusWrtText::sendFootnote
bool sendFootnote(int footnoteId)
try to send the ith footnote
Definition: NisusWrtText.cxx:1562
NisusWrtTextInternal
Internal: the structures of a NisusWrtText.
Definition: NisusWrtText.cxx:60
NisusWrtTextInternal::SubDocument::m_type
libmwaw::SubDocumentType m_type
the subdocument type
Definition: NisusWrtText.cxx:454
libmwaw::DOC_NOTE
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
NisusWrtTextInternal::Zone::Zone
Zone()
constructor
Definition: NisusWrtText.cxx:373
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWFont::Line::Dot
@ Dot
Definition: MWAWFont.hxx:49
MWAWPageSpan.hxx
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
NisusWrtText::getHeader
std::shared_ptr< MWAWSubDocument > getHeader(int page, int &numSimillar)
return an header subdocument
Definition: NisusWrtText.cxx:523
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
NisusWrtTextInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
NisusWrtTextInternal::Font::m_format2
int m_format2
a series of flags
Definition: NisusWrtText.cxx:96
MWAWParagraph::m_spacingsInterlineUnit
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:158
MWAWPosition::setClippingPosition
void setClippingPosition(MWAWVec2f lTop, MWAWVec2f rBottom)
sets the clipping position
Definition: MWAWPosition.hxx:252
NisusWrtText::computePositions
void computePositions()
compute the positions
Definition: NisusWrtText.cxx:564
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
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWSection.hxx
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
NisusWrtTextInternal::PicturePara::m_position
MWAWBox2i m_position
the position
Definition: NisusWrtText.cxx:301
NisusWrtTextInternal::Paragraph::m_name
std::string m_name
the paragraph name
Definition: NisusWrtText.cxx:152
MWAWBox2::min
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
MWAWNote::m_label
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:458
NisusWrtTextInternal::Paragraph::Paragraph
Paragraph()
Constructor.
Definition: NisusWrtText.cxx:136
NisusWrtTextInternal::SubDocument::SubDocument
SubDocument(NisusWrtText &pars, MWAWInputStreamPtr const &input, int id, libmwaw::SubDocumentType type)
Definition: NisusWrtText.cxx:431
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWFont::Script::super
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
MWAWVariable::get
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
NisusWrtParser
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
NisusWrtTextInternal::PicturePara::m_id
int m_id
the picture id
Definition: NisusWrtText.cxx:297
NisusWrtTextInternal::HeaderFooter::m_extra
std::string m_extra
some extra debuging information
Definition: NisusWrtText.cxx:190
MWAWFont::setUnderlineWordFlag
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:479
NisusWrtTextInternal::PicturePara::PicturePara
PicturePara()
constructor
Definition: NisusWrtText.cxx:288
NisusWrtText::NisusWrtText
NisusWrtText(NisusWrtText const &orig)=delete
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
NisusWrtText::m_mainParser
NisusWrtParser * m_mainParser
the main parser;
Definition: NisusWrtText.hxx:152
NisusWrtText::version
int version() const
returns the file version
Definition: NisusWrtText.cxx:508
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
NisusWrtTextInternal::State::m_fontList
std::vector< Font > m_fontList
the font list
Definition: NisusWrtText.cxx:411
MWAWNote::FootNote
@ FootNote
Definition: libmwaw_internal.hxx:447
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
NisusWrtTextInternal::DataPLC::operator<<
friend std::ostream & operator<<(std::ostream &o, DataPLC const &plc)
operator<<
Definition: NisusWrtText.cxx:338
MWAWPosition::Paragraph
@ Paragraph
Definition: MWAWPosition.hxx:51
NisusWrtText::numPages
int numPages() const
returns the number of pages
Definition: NisusWrtText.cxx:515
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
NisusWrtText::readPICD
bool readPICD(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the PICD resource: a list of pict link to the paragraph
Definition: NisusWrtText.cxx:1425
NisusWrtTextInternal::State::m_footersId
std::vector< int > m_footersId
the list of footer id which corresponds to each page
Definition: NisusWrtText.cxx:423
NisusWrtTextInternal::State::m_headersId
std::vector< int > m_headersId
the list of header id which corresponds to each page
Definition: NisusWrtText.cxx:421
NisusWrtParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:372
NisusWrtText::~NisusWrtText
virtual ~NisusWrtText()
destructor
Definition: NisusWrtText.cxx:504
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWBox2< int >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWNote::EndNote
@ EndNote
Definition: libmwaw_internal.hxx:447
MWAWBox2::max
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
NisusWrtTextInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: NisusWrtText.cxx:482
MWAWField::Title
@ Title
Definition: libmwaw_internal.hxx:401
NisusWrtTextInternal::Paragraph::~Paragraph
~Paragraph() final
destructor
Definition: NisusWrtText.cxx:155
NisusWrtTextInternal::P_Format
@ P_Format
Definition: NisusWrtText.cxx:318
NisusWrtTextInternal::DataPLC::m_type
PLCType m_type
PLC type.
Definition: NisusWrtText.cxx:331
NisusWrtTextInternal::Paragraph
Internal: class to store the paragraph properties.
Definition: NisusWrtText.cxx:134
NisusWrtStruct::FootnoteInfo::endNotes
bool endNotes() const
returns true if we have endnote
Definition: NisusWrtStruct.hxx:123
MWAWFont::hiddenBit
@ hiddenBit
Definition: MWAWFont.hxx:191
NisusWrtTextInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: NisusWrtText.cxx:452
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
NisusWrtTextInternal::Font::m_markId
int m_markId
a mark id
Definition: NisusWrtText.cxx:90
NisusWrtTextInternal::DataPLC::m_id
int m_id
the id
Definition: NisusWrtText.cxx:333
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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
NisusWrtTextInternal::Font::m_pictureWidth
int m_pictureWidth
the picture width
Definition: NisusWrtText.cxx:88
NisusWrtTextInternal::PLCType
PLCType
different types
Definition: NisusWrtText.cxx:318
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
NisusWrtTextInternal::DataPLC
Internal: class to store the PLC: Pointer List Content ?
Definition: NisusWrtText.cxx:321