Go to the documentation of this file.
38 #ifndef NISUS_WRT_TEXT
39 # define NISUS_WRT_TEXT
82 std::shared_ptr<MWAWSubDocument>
getHeader(
int page,
int &numSimillar);
84 std::shared_ptr<MWAWSubDocument>
getFooter(
int page,
int &numSimillar);
149 std::shared_ptr<NisusWrtTextInternal::State>
m_state;
@ Fixed
Definition: MWAWParagraph.hxx:94
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ CharBaseLine
Definition: MWAWPosition.hxx:51
@ Time
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
SubDocument & operator=(SubDocument const &orig)=delete
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
@ reverseVideoBit
Definition: MWAWFont.hxx:192
MWAWFont m_font
the font
Definition: NisusWrtText.cxx:84
@ P_Ruler
Definition: NisusWrtText.cxx:318
int m_version
the file version
Definition: NisusWrtText.cxx:408
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
@ P_HeaderFooter
Definition: NisusWrtText.cxx:318
bool sendMainText()
send a main zone
Definition: NisusWrtText.cxx:1865
std::vector< PicturePara > m_pictureParaList
the list of paragraph
Definition: NisusWrtText.cxx:385
a note
Definition: libmwaw_internal.hxx:445
void setProperty(NisusWrtTextInternal::Paragraph const &ruler, int width)
sends a paragraph property to the listener
Definition: NisusWrtText.cxx:1034
@ smallCapsBit
Definition: MWAWFont.hxx:192
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::string getDateFormat(NisusWrtStruct::ZoneType zoneId, int vId) const
returns the date format corresponding to a variable id or ""
Definition: NisusWrtParser.cxx:412
int m_variableId
the variable id : in fact cst[unkn] + v_id
Definition: NisusWrtText.cxx:92
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: NisusWrtText.cxx:1879
bool readFontsList(MWAWEntry const &entry)
read the list of fonts
Definition: NisusWrtText.cxx:774
Font()
the constructor
Definition: NisusWrtText.cxx:64
@ Z_Main
Definition: NisusWrtStruct.hxx:50
friend std::ostream & operator<<(std::ostream &o, PicturePara const &pict)
operator<<
Definition: NisusWrtText.cxx:304
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
int m_pictureId
the picture id ( if this is for a picture )
Definition: NisusWrtText.cxx:86
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
@ boldBit
Definition: MWAWFont.hxx:190
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
bool sendHeaderFooter(int hfId)
try to send the ith header footer
Definition: NisusWrtText.cxx:1530
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: NisusWrtParser.cxx:367
void newPage(int number)
adds a new page
Definition: NisusWrtParser.cxx:517
int id() const
returns the id
Definition: MWAWEntry.hxx:164
@ WBackground
Definition: MWAWPosition.hxx:53
Internal: the fonts and many other data.
Definition: NisusWrtText.cxx:62
bool sendText(MWAWEntry const &entry, NisusWrtStruct::Position fPos=NisusWrtStruct::Position())
read a text entry.
Definition: NisusWrtText.cxx:1594
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: NisusWrtText.cxx:460
the class to store a color
Definition: libmwaw_internal.hxx:192
@ P_Footnote
Definition: NisusWrtText.cxx:318
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:401
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
MWAWEntry m_entry
the position of text in the rsrc file
Definition: NisusWrtText.cxx:381
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
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
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:460
MWAWVariable< LineSpacingType > m_spacingsInterlineType
the interline type: fixed, atLeast, ...
Definition: MWAWParagraph.hxx:160
@ Simple
Definition: MWAWFont.hxx:49
std::vector< Paragraph > m_paragraphList
the list of paragraph
Definition: NisusWrtText.cxx:383
bool createZones()
finds the different text zones
Definition: NisusWrtText.cxx:641
int m_actualPage
Definition: NisusWrtText.cxx:417
int m_paragraph
the paragraph position
Definition: NisusWrtText.cxx:299
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
internal structure used to store zone data
Definition: NisusWrtText.cxx:369
Zone m_zones[3]
the main zones : Main, Footnote, HeaderFooter
Definition: NisusWrtText.cxx:415
std::vector< Footnote > m_footnoteList
the list of footnote
Definition: NisusWrtText.cxx:413
@ reverseWritingBit
Definition: MWAWFont.hxx:197
NisusWrtText(NisusWrtParser &parser)
constructor
Definition: NisusWrtText.cxx:497
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
bool readFonts(MWAWEntry const &entry)
read the FTAB/STYL resource: a list of fonts
Definition: NisusWrtText.cxx:828
bool readFootnotes(MWAWEntry const &entry)
read the footnote main entry
Definition: NisusWrtText.cxx:1350
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
Internal: the state of a NisusWrtText.
Definition: NisusWrtText.cxx:393
State()
constructor
Definition: NisusWrtText.cxx:395
MWAWBox2i m_pictureDim[2]
two picture dim ( orig && file ?)
Definition: NisusWrtText.cxx:98
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
NisusWrtText * m_textParser
the text parser
Definition: NisusWrtText.cxx:450
@ P_PicturePara
Definition: NisusWrtText.cxx:318
@ DECIMAL
Definition: MWAWParagraph.hxx:48
int m_word
the word
Definition: NisusWrtStruct.hxx:91
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
@ embossBit
Definition: MWAWFont.hxx:190
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: NisusWrtText.cxx:104
long findFilePos(NisusWrtStruct::ZoneType zoneId, NisusWrtStruct::Position const &pos)
find the file pos which correspond to a pos
Definition: NisusWrtText.cxx:1482
~SubDocument() final
destructor
Definition: NisusWrtText.cxx:440
@ uppercaseBit
Definition: MWAWFont.hxx:192
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: NisusWrtText.cxx:104
@ Date
Definition: libmwaw_internal.hxx:401
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
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
@ Z_HeaderFooter
Definition: NisusWrtStruct.hxx:50
the main class to read the text part of Nisus file
Definition: NisusWrtText.hxx:61
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWParserStatePtr m_parserState
the parser state
Definition: NisusWrtText.hxx:146
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ AtLeast
Definition: MWAWParagraph.hxx:94
std::vector< HeaderFooter > m_hfList
the list of header footer
Definition: NisusWrtText.cxx:419
@ P_Unknown
Definition: NisusWrtText.cxx:318
std::multimap< NisusWrtStruct::Position, DataPLC, NisusWrtStruct::Position::Compare > PLCMap
Definition: NisusWrtText.cxx:370
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
a position
Definition: NisusWrtStruct.hxx:56
@ shadowBit
Definition: MWAWFont.hxx:191
std::shared_ptr< NisusWrtTextInternal::State > m_state
the state
Definition: NisusWrtText.hxx:149
bool readPosToFont(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the FRMT resource: a list of filepos -> fontId
Definition: NisusWrtText.cxx:984
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
DataPLC()
Definition: NisusWrtText.cxx:322
bool readHeaderFooter(MWAWEntry const &entry)
read the header/footer main entry
Definition: NisusWrtText.cxx:1270
int m_char
the character position
Definition: NisusWrtStruct.hxx:93
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
std::string m_extra
extra data
Definition: NisusWrtText.cxx:100
NisusWrtText & operator=(NisusWrtText const &orig)=delete
bool isVariable() const
Definition: NisusWrtText.cxx:75
void getFootnoteInfo(NisusWrtStruct::FootnoteInfo &fInfo) const
returns the footnote information
Definition: NisusWrtParser.cxx:392
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_paragraph
the paragraph
Definition: NisusWrtStruct.hxx:89
int m_format
the main format ...
Definition: NisusWrtText.cxx:94
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
ZoneType
the different zone
Definition: NisusWrtStruct.hxx:50
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
bool sendPicture(int pictId, MWAWPosition const &pictPos)
try to send a picture
Definition: NisusWrtParser.cxx:400
int m_numPages
Definition: NisusWrtText.cxx:417
Paragraph(Paragraph const &)=default
@ None
Definition: libmwaw_internal.hxx:401
void getColumnInfo(int &numColumns, float &colSep) const
returns the columns information
Definition: NisusWrtParser.cxx:386
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
@ boxedBit
Definition: MWAWFont.hxx:195
a class which stores section properties
Definition: MWAWSection.hxx:46
@ Z_Footnote
Definition: NisusWrtStruct.hxx:50
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
std::shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: NisusWrtText.cxx:543
std::string m_extra
an extra data to store message ( if needed )
Definition: NisusWrtText.cxx:335
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
Internal: the picture data ( PICD )
Definition: NisusWrtText.cxx:286
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
a field
Definition: libmwaw_internal.hxx:399
Internal: the subdocument of a NisusWrtText.
Definition: NisusWrtText.cxx:429
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:120
bool readStringsList(MWAWEntry const &entry, std::vector< std::string > &list, bool simpleList)
read a list of strings
Definition: NisusWrtParser.cxx:845
bool readParagraphs(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the RULE resource: a list of paragraphs
Definition: NisusWrtText.cxx:1046
PLCMap m_plcMap
the map pos -> format id
Definition: NisusWrtText.cxx:388
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
bool sendFootnote(int footnoteId)
try to send the ith footnote
Definition: NisusWrtText.cxx:1562
Internal: the structures of a NisusWrtText.
Definition: NisusWrtText.cxx:60
libmwaw::SubDocumentType m_type
the subdocument type
Definition: NisusWrtText.cxx:454
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
Zone()
constructor
Definition: NisusWrtText.cxx:373
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
@ Dot
Definition: MWAWFont.hxx:49
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
std::shared_ptr< MWAWSubDocument > getHeader(int page, int &numSimillar)
return an header subdocument
Definition: NisusWrtText.cxx:523
Defines MWAWTextListener: the libmwaw word processor listener.
SubDocument(SubDocument const &orig)=delete
int m_format2
a series of flags
Definition: NisusWrtText.cxx:96
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:158
void setClippingPosition(MWAWVec2f lTop, MWAWVec2f rBottom)
sets the clipping position
Definition: MWAWPosition.hxx:252
void computePositions()
compute the positions
Definition: NisusWrtText.cxx:564
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
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWBox2i m_position
the position
Definition: NisusWrtText.cxx:301
std::string m_name
the paragraph name
Definition: NisusWrtText.cxx:152
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:458
Paragraph()
Constructor.
Definition: NisusWrtText.cxx:136
SubDocument(NisusWrtText &pars, MWAWInputStreamPtr const &input, int id, libmwaw::SubDocumentType type)
Definition: NisusWrtText.cxx:431
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
int m_id
the picture id
Definition: NisusWrtText.cxx:297
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:479
PicturePara()
constructor
Definition: NisusWrtText.cxx:288
NisusWrtText(NisusWrtText const &orig)=delete
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
NisusWrtParser * m_mainParser
the main parser;
Definition: NisusWrtText.hxx:152
int version() const
returns the file version
Definition: NisusWrtText.cxx:508
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::vector< Font > m_fontList
the font list
Definition: NisusWrtText.cxx:411
@ FootNote
Definition: libmwaw_internal.hxx:447
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
friend std::ostream & operator<<(std::ostream &o, DataPLC const &plc)
operator<<
Definition: NisusWrtText.cxx:338
@ Paragraph
Definition: MWAWPosition.hxx:51
int numPages() const
returns the number of pages
Definition: NisusWrtText.cxx:515
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
bool readPICD(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the PICD resource: a list of pict link to the paragraph
Definition: NisusWrtText.cxx:1425
std::vector< int > m_footersId
the list of footer id which corresponds to each page
Definition: NisusWrtText.cxx:423
std::vector< int > m_headersId
the list of header id which corresponds to each page
Definition: NisusWrtText.cxx:421
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:372
virtual ~NisusWrtText()
destructor
Definition: NisusWrtText.cxx:504
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
@ EndNote
Definition: libmwaw_internal.hxx:447
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: NisusWrtText.cxx:482
@ Title
Definition: libmwaw_internal.hxx:401
~Paragraph() final
destructor
Definition: NisusWrtText.cxx:155
@ P_Format
Definition: NisusWrtText.cxx:318
PLCType m_type
PLC type.
Definition: NisusWrtText.cxx:331
Internal: class to store the paragraph properties.
Definition: NisusWrtText.cxx:134
@ hiddenBit
Definition: MWAWFont.hxx:191
int m_id
the subdocument id
Definition: NisusWrtText.cxx:452
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
int m_markId
a mark id
Definition: NisusWrtText.cxx:90
int m_id
the id
Definition: NisusWrtText.cxx:333
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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
int m_pictureWidth
the picture width
Definition: NisusWrtText.cxx:88
PLCType
different types
Definition: NisusWrtText.cxx:318
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Internal: class to store the PLC: Pointer List Content ?
Definition: NisusWrtText.cxx:321
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20