Go to the documentation of this file.
34 #ifndef MOUSE_WRT_PARSER
35 # define MOUSE_WRT_PARSER
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
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
MWAWEntry m_text
the main text entry
Definition: MouseWrtParser.cxx:115
State()
constructor
Definition: MouseWrtParser.cxx:97
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
the main class to read a MouseWrite file
Definition: MouseWrtParser.hxx:56
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
Internal: class to store zone information of a MouseWrtParser.
Definition: MouseWrtParser.cxx:60
Paragraph(int id=0)
constructor
Definition: MouseWrtParser.cxx:80
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MouseWrtParser.cxx:332
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
Zone()
constructor
Definition: MouseWrtParser.cxx:62
std::map< int, Paragraph > m_paraPLCMap
the map position to paraPLC
Definition: MouseWrtParser.cxx:113
MWAWVariable< libmwaw::WritingMode > m_writingMode
the writing mode
Definition: MWAWParagraph.hxx:171
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
bool m_writingHebrew
flag to know if the writing is reverted
Definition: MouseWrtParser.cxx:71
@ boldBit
Definition: MWAWFont.hxx:190
~SubDocument() final
destructor
Definition: MouseWrtParser.cxx:132
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
Internal: the subdocument of a MouseWrtParser.
Definition: MouseWrtParser.cxx:123
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
long m_blockSizes[5]
the first zone's size
Definition: MouseWrtParser.cxx:109
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
bool readParagraphPLCs(long sz)
reads the paragraph plc zone: zone 2
Definition: MouseWrtParser.cxx:440
bool sendMainZone()
tries to send the main text zone
Definition: MouseWrtParser.cxx:738
void newPage(int number)
adds a new page
Definition: MouseWrtParser.cxx:189
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
@ Simple
Definition: MWAWFont.hxx:49
int m_id
the subdocument id
Definition: MouseWrtParser.cxx:142
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
@ MWAW_T_MOUSEWRITE
MouseWrite: v1.
Definition: MWAWDocument.hxx:216
bool m_picture
flag to know if this is a picture
Definition: MouseWrtParser.cxx:91
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MouseWrtParser.cxx:234
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MouseWrtParser.cxx:162
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:157
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
SubDocument(MouseWrtParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: MouseWrtParser.cxx:125
bool createZones()
finds the different objects zones
Definition: MouseWrtParser.cxx:269
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
std::map< int, MWAWFont > m_charPLCMap
the map position to charPLC
Definition: MouseWrtParser.cxx:111
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWEntry m_text
the text entry
Definition: MouseWrtParser.cxx:73
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:120
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
~MouseWrtParser() final
destructor
Definition: MouseWrtParser.cxx:182
@ shadowBit
Definition: MWAWFont.hxx:191
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
T y() const
second element
Definition: libmwaw_internal.hxx:673
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
T x() const
first element
Definition: libmwaw_internal.hxx:668
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_actPage
the actual page
Definition: MouseWrtParser.cxx:107
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
Internal: the state of a MouseWrtParser.
Definition: MouseWrtParser.cxx:95
@ PageBreak
Definition: MWAWListener.hxx:58
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
Definition: libmwaw_internal.hxx:144
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
bool readDocumentInfo(long sz)
reads the document info zone: zone 4
Definition: MouseWrtParser.cxx:572
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWFont m_font
the font
Definition: MouseWrtParser.cxx:69
MWAWParagraph m_paragraph
the paragraph
Definition: MouseWrtParser.cxx:89
Internal: the structures of a MouseWrtParser.
Definition: MouseWrtParser.cxx:57
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
@ Char
Definition: MWAWPosition.hxx:51
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
std::shared_ptr< MouseWrtParserInternal::State > m_state
the state
Definition: MouseWrtParser.hxx:106
bool sendZone(int number)
tries to send the header/footer zone
Definition: MouseWrtParser.cxx:887
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool readFont(MWAWFont &font, int &cPos)
try to read a font
Definition: MouseWrtParser.cxx:413
bool readCharPLCs(long sz)
reads the char plc zone: zone 0
Definition: MouseWrtParser.cxx:383
Internal: class to store paragraph information of a MouseWrtParser.
Definition: MouseWrtParser.cxx:78
Defines MWAWTextListener: the libmwaw word processor listener.
bool readPrintInfo()
reads the print info zone: zone 3
Definition: MouseWrtParser.cxx:685
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
int computeNumPages()
computes the number of page
Definition: MouseWrtParser.cxx:655
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: MouseWrtParser.cxx:205
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
int m_id
the paragraph id
Definition: MouseWrtParser.cxx:87
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Zone m_zones[2]
the header and the footer zone
Definition: MouseWrtParser.cxx:117
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
Definition: MWAWDocument.hxx:57
Class to store font.
Definition: MWAWFont.hxx:44
@ WritingRightTop
Definition: libmwaw_internal.hxx:185
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MouseWrtParser.cxx:145
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
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
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
int m_numPages
the number of page of the final document
Definition: MouseWrtParser.cxx:107
MouseWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MouseWrtParser.cxx:175
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20