Go to the documentation of this file.
38 #ifndef NISUS_WRT_TEXT
39 # define NISUS_WRT_TEXT
82 shared_ptr<MWAWSubDocument>
getHeader(
int page,
int &numSimillar);
84 shared_ptr<MWAWSubDocument>
getFooter(
int page,
int &numSimillar);
149 shared_ptr<NisusWrtTextInternal::State>
m_state;
@ Fixed
Definition: MWAWParagraph.hxx:91
SubDocument & operator=(SubDocument const &orig)
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:371
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
@ reverseVideoBit
Definition: MWAWFont.hxx:184
MWAWFont m_font
the font
Definition: NisusWrtText.cxx:75
@ P_Ruler
Definition: NisusWrtText.cxx:292
int m_version
the file version
Definition: NisusWrtText.cxx:368
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
@ P_HeaderFooter
Definition: NisusWrtText.cxx:292
int cmp(Position const &p2) const
a small compare operator
Definition: NisusWrtStruct.hxx:75
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
bool sendMainText()
send a main zone
Definition: NisusWrtText.cxx:1826
std::vector< PicturePara > m_pictureParaList
the list of paragraph
Definition: NisusWrtText.cxx:352
shared_ptr< NisusWrtTextInternal::State > m_state
the state
Definition: NisusWrtText.hxx:149
a note
Definition: libmwaw_internal.hxx:406
void setProperty(NisusWrtTextInternal::Paragraph const &ruler, int width)
sends a paragraph property to the listener
Definition: NisusWrtText.cxx:994
@ smallCapsBit
Definition: MWAWFont.hxx:184
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
std::string getDateFormat(NisusWrtStruct::ZoneType zoneId, int vId) const
returns the date format corresponding to a variable id or ""
Definition: NisusWrtParser.cxx:387
int m_variableId
the variable id : in fact cst[unkn] + v_id
Definition: NisusWrtText.cxx:83
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:1840
bool readFontsList(MWAWEntry const &entry)
read the list of fonts
Definition: NisusWrtText.cxx:733
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: NisusWrtText.cxx:442
Font()
the constructor
Definition: NisusWrtText.cxx:64
friend std::ostream & operator<<(std::ostream &o, PicturePara const &pict)
operator<<
Definition: NisusWrtText.cxx:278
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: NisusWrtText.cxx:420
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
int m_pictureId
the picture id ( if this is for a picture )
Definition: NisusWrtText.cxx:77
shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: NisusWrtText.cxx:500
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
@ boldBit
Definition: MWAWFont.hxx:182
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
@ Z_HeaderFooter
Definition: NisusWrtStruct.hxx:50
bool sendHeaderFooter(int hfId)
try to send the ith header footer
Definition: NisusWrtText.cxx:1490
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: NisusWrtParser.cxx:342
void newPage(int number)
adds a new page
Definition: NisusWrtParser.cxx:492
int id() const
returns the id
Definition: MWAWEntry.hxx:153
@ WBackground
Definition: MWAWPosition.hxx:53
Internal: the fonts and many other data.
Definition: NisusWrtText.cxx:62
the class to store a color
Definition: libmwaw_internal.hxx:182
ZoneType
the different zone
Definition: NisusWrtStruct.hxx:50
@ P_Footnote
Definition: NisusWrtText.cxx:292
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:371
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:108
MWAWEntry m_entry
the position of text in the rsrc file
Definition: NisusWrtText.cxx:348
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
virtual ~SubDocument()
destructor
Definition: NisusWrtText.cxx:395
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:367
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:418
MWAWVariable< LineSpacingType > m_spacingsInterlineType
the interline type: fixed, atLeast, ...
Definition: MWAWParagraph.hxx:154
@ Simple
Definition: MWAWFont.hxx:49
std::vector< Paragraph > m_paragraphList
the list of paragraph
Definition: NisusWrtText.cxx:350
bool createZones()
finds the different text zones
Definition: NisusWrtText.cxx:598
int m_actualPage
Definition: NisusWrtText.cxx:377
int m_paragraph
the paragraph position
Definition: NisusWrtText.cxx:273
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
internal structure used to store zone data
Definition: NisusWrtText.cxx:340
Zone m_zones[3]
the main zones : Main, Footnote, HeaderFooter
Definition: NisusWrtText.cxx:375
std::vector< Footnote > m_footnoteList
the list of footnote
Definition: NisusWrtText.cxx:373
@ reverseWritingBit
Definition: MWAWFont.hxx:189
NisusWrtText(NisusWrtParser &parser)
constructor
Definition: NisusWrtText.cxx:457
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:787
bool readFootnotes(MWAWEntry const &entry)
read the footnote main entry
Definition: NisusWrtText.cxx:1310
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:271
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
Internal: the state of a NisusWrtText.
Definition: NisusWrtText.cxx:360
State()
constructor
Definition: NisusWrtText.cxx:362
MWAWBox2i m_pictureDim[2]
two picture dim ( orig && file ?)
Definition: NisusWrtText.cxx:89
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
NisusWrtText * m_textParser
the text parser
Definition: NisusWrtText.cxx:410
@ P_PicturePara
Definition: NisusWrtText.cxx:292
@ DECIMAL
Definition: MWAWParagraph.hxx:48
int m_word
the word
Definition: NisusWrtStruct.hxx:88
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
@ embossBit
Definition: MWAWFont.hxx:182
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: NisusWrtText.cxx:95
long findFilePos(NisusWrtStruct::ZoneType zoneId, NisusWrtStruct::Position const &pos)
find the file pos which correspond to a pos
Definition: NisusWrtText.cxx:1442
@ uppercaseBit
Definition: MWAWFont.hxx:184
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: NisusWrtText.cxx:95
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: NisusWrtText.cxx:400
@ Date
Definition: libmwaw_internal.hxx:371
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:406
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:178
MWAWParserStatePtr m_parserState
the parser state
Definition: NisusWrtText.hxx:146
@ AtLeast
Definition: MWAWParagraph.hxx:91
std::vector< HeaderFooter > m_hfList
the list of header footer
Definition: NisusWrtText.cxx:379
@ P_Unknown
Definition: NisusWrtText.cxx:292
std::multimap< NisusWrtStruct::Position, DataPLC, NisusWrtStruct::Position::Compare > PLCMap
Definition: NisusWrtText.cxx:341
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
a position
Definition: NisusWrtStruct.hxx:56
@ shadowBit
Definition: MWAWFont.hxx:183
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
bool readPosToFont(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the FRMT resource: a list of filepos -> fontId
Definition: NisusWrtText.cxx:944
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
DataPLC()
Definition: NisusWrtText.cxx:296
bool readHeaderFooter(MWAWEntry const &entry)
read the header/footer main entry
Definition: NisusWrtText.cxx:1230
int m_char
the character position
Definition: NisusWrtStruct.hxx:90
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
std::string m_extra
extra data
Definition: NisusWrtText.cxx:91
bool isVariable() const
Definition: NisusWrtText.cxx:66
void getFootnoteInfo(NisusWrtStruct::FootnoteInfo &fInfo) const
returns the footnote information
Definition: NisusWrtParser.cxx:367
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:86
int m_format
the main format ...
Definition: NisusWrtText.cxx:85
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
SubDocument(SubDocument const &orig)
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
bool sendPicture(int pictId, MWAWPosition const &pictPos)
try to send a picture
Definition: NisusWrtParser.cxx:375
int m_numPages
Definition: NisusWrtText.cxx:377
@ None
Definition: libmwaw_internal.hxx:371
void getColumnInfo(int &numColumns, float &colSep) const
returns the columns information
Definition: NisusWrtParser.cxx:361
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
@ boxedBit
Definition: MWAWFont.hxx:187
a class which stores section properties
Definition: MWAWSection.hxx:46
NisusWrtText(NisusWrtText const &orig)
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
~Paragraph()
destructor
Definition: NisusWrtText.cxx:143
std::string m_extra
an extra data to store message ( if needed )
Definition: NisusWrtText.cxx:306
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
Internal: the picture data ( PICD )
Definition: NisusWrtText.cxx:263
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:158
a field
Definition: libmwaw_internal.hxx:369
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: NisusWrtText.cxx:133
Internal: the subdocument of a NisusWrtText.
Definition: NisusWrtText.cxx:389
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:112
bool readStringsList(MWAWEntry const &entry, std::vector< std::string > &list, bool simpleList)
read a list of strings
Definition: NisusWrtParser.cxx:822
bool readParagraphs(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the RULE resource: a list of paragraphs
Definition: NisusWrtText.cxx:1006
PLCMap m_plcMap
the map pos -> format id
Definition: NisusWrtText.cxx:355
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
shared_ptr< MWAWSubDocument > getHeader(int page, int &numSimillar)
return an header subdocument
Definition: NisusWrtText.cxx:480
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
bool sendFootnote(int footnoteId)
try to send the ith footnote
Definition: NisusWrtText.cxx:1522
Internal: the structures of a NisusWrtText.
Definition: NisusWrtText.cxx:60
libmwaw::SubDocumentType m_type
the subdocument type
Definition: NisusWrtText.cxx:414
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
SubDocument(NisusWrtText &pars, MWAWInputStreamPtr input, int id, libmwaw::SubDocumentType type)
Definition: NisusWrtText.cxx:391
Zone()
constructor
Definition: NisusWrtText.cxx:344
@ italicBit
Definition: MWAWFont.hxx:182
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
@ Dot
Definition: MWAWFont.hxx:49
@ Z_Footnote
Definition: NisusWrtStruct.hxx:50
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
int m_format2
a series of flags
Definition: NisusWrtText.cxx:87
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:152
void setClippingPosition(MWAWVec2f lTop, MWAWVec2f rBottom)
sets the clipping position
Definition: MWAWPosition.hxx:236
void computePositions()
compute the positions
Definition: NisusWrtText.cxx:521
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
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
MWAWBox2i m_position
the position
Definition: NisusWrtText.cxx:275
std::string m_name
the paragraph name
Definition: NisusWrtText.cxx:140
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:416
Paragraph()
Constructor.
Definition: NisusWrtText.cxx:127
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:88
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:122
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
the main class to read a Nisus Writer file
Definition: NisusWrtParser.hxx:60
int m_id
the picture id
Definition: NisusWrtText.cxx:271
void setUnderlineWordFlag(bool wordFlag=false)
sets the underline word flag
Definition: MWAWFont.hxx:458
PicturePara()
constructor
Definition: NisusWrtText.cxx:265
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
NisusWrtParser * m_mainParser
the main parser;
Definition: NisusWrtText.hxx:152
int version() const
returns the file version
Definition: NisusWrtText.cxx:465
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:371
@ FootNote
Definition: libmwaw_internal.hxx:408
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
friend std::ostream & operator<<(std::ostream &o, DataPLC const &plc)
operator<<
Definition: NisusWrtText.cxx:309
@ Paragraph
Definition: MWAWPosition.hxx:51
int numPages() const
returns the number of pages
Definition: NisusWrtText.cxx:472
bool readPICD(MWAWEntry const &entry, NisusWrtStruct::ZoneType zoneId)
read the PICD resource: a list of pict link to the paragraph
Definition: NisusWrtText.cxx:1385
std::vector< int > m_footersId
the list of footer id which corresponds to each page
Definition: NisusWrtText.cxx:383
std::vector< int > m_headersId
the list of header id which corresponds to each page
Definition: NisusWrtText.cxx:381
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: NisusWrtParser.cxx:347
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
virtual ~NisusWrtText()
destructor
Definition: NisusWrtText.cxx:462
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
@ EndNote
Definition: libmwaw_internal.hxx:408
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:985
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
@ Title
Definition: libmwaw_internal.hxx:371
@ P_Format
Definition: NisusWrtText.cxx:292
PLCType m_type
PLC type.
Definition: NisusWrtText.cxx:302
Internal: class to store the paragraph properties.
Definition: NisusWrtText.cxx:125
@ hiddenBit
Definition: MWAWFont.hxx:183
NisusWrtText & operator=(NisusWrtText const &orig)
int m_id
the subdocument id
Definition: NisusWrtText.cxx:412
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
int m_markId
a mark id
Definition: NisusWrtText.cxx:81
int m_id
the id
Definition: NisusWrtText.cxx:304
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
@ Z_Main
Definition: NisusWrtStruct.hxx:50
bool sendText(MWAWEntry entry, NisusWrtStruct::Position fPos=NisusWrtStruct::Position())
read a text entry.
Definition: NisusWrtText.cxx:1555
int m_pictureWidth
the picture width
Definition: NisusWrtText.cxx:79
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
PLCType
different types
Definition: NisusWrtText.cxx:292
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Internal: class to store the PLC: Pointer List Content ?
Definition: NisusWrtText.cxx:295
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18