Go to the documentation of this file.
38 #ifndef WRITER_PLS_PARSER
39 # define WRITER_PLS_PARSER
std::vector< int > m_unknowns
Definition: WriterPlsParser.cxx:244
bool readFonts(int nFonts, int type, std::vector< WriterPlsParserInternal::Font > &fonts)
reads a list of font (with position)
Definition: WriterPlsParser.cxx:1868
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
static Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:272
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
int m_col
Definition: WriterPlsParser.cxx:108
int m_numCol
the number of columns(?)
Definition: WriterPlsParser.cxx:488
int m_colX[2]
Definition: WriterPlsParser.cxx:135
Line()
Definition: WriterPlsParser.cxx:400
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
bool readParagraphInfo(int zone)
read the paragraph info zone
Definition: WriterPlsParser.cxx:1320
int m_height2
Definition: WriterPlsParser.cxx:241
PageInfo()
Definition: WriterPlsParser.cxx:62
int m_width
the first character
Definition: WriterPlsParser.cxx:449
Paragraph informations.
Definition: WriterPlsParser.cxx:141
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
bool readColInfo(int zone)
read the col info zone ?
Definition: WriterPlsParser.cxx:1386
ParagraphInfo()
Definition: WriterPlsParser.cxx:142
ColumnTableInfo()
Definition: WriterPlsParser.cxx:113
int m_height
Definition: WriterPlsParser.cxx:133
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
bool getColumnLimitsFor(int line, std::vector< int > &listPos)
Definition: WriterPlsParser.cxx:308
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
int m_height
Definition: WriterPlsParser.cxx:561
@ ColumnBreak
Definition: MWAWListener.hxx:58
bool readTable(WriterPlsParserInternal::ParagraphInfo const &info)
read a table
Definition: WriterPlsParser.cxx:1563
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: WriterPlsParser.cxx:700
int m_unknown[3]
Definition: WriterPlsParser.cxx:274
int m_firstChar
the first character
Definition: WriterPlsParser.cxx:421
int m_number
Definition: WriterPlsParser.cxx:271
Internal: class to store the Graphic properties.
Definition: WriterPlsParser.cxx:430
int m_height
Definition: WriterPlsParser.cxx:241
Internal: the subdocument of a WriterPlsParser.
Definition: WriterPlsParser.cxx:596
int m_graphicWidth
the graphic width
Definition: WriterPlsParser.cxx:449
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
int getType() const
Definition: WriterPlsParser.cxx:154
int m_heightFromBegin
Definition: WriterPlsParser.cxx:81
int m_flags
Definition: WriterPlsParser.cxx:137
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
Column informations in a table.
Definition: WriterPlsParser.cxx:112
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
ParagraphData()
Constructor.
Definition: WriterPlsParser.cxx:499
@ boldBit
Definition: MWAWFont.hxx:190
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
int m_flags[4]
some flag
Definition: WriterPlsParser.cxx:492
bool readText(WriterPlsParserInternal::ParagraphInfo const &info)
read a text
Definition: WriterPlsParser.cxx:1424
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
Page informations.
Definition: WriterPlsParser.cxx:61
Internal: class to store the line properties.
Definition: WriterPlsParser.cxx:399
friend std::ostream & operator<<(std::ostream &o, Line const &l)
operator<<
Definition: WriterPlsParser.cxx:410
int m_dim[3]
unknown dimension
Definition: WriterPlsParser.cxx:490
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
friend std::ostream & operator<<(std::ostream &o, WindowsInfo const &w)
Definition: WriterPlsParser.cxx:349
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
Internal: the structures of a WriterPlsParser.
Definition: WriterPlsParser.cxx:59
bool empty() const
Definition: WriterPlsParser.cxx:257
int m_width
Definition: WriterPlsParser.cxx:273
std::ostream & operator<<(std::ostream &o, WindowsInfo const &w)
Definition: WriterPlsParser.cxx:349
GraphicInfo()
Definition: WriterPlsParser.cxx:431
int m_maxFontSize
Definition: WriterPlsParser.cxx:423
int m_footerY
Definition: WriterPlsParser.cxx:299
void init()
inits all internal variables
Definition: WriterPlsParser.cxx:660
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
int m_type
Definition: WriterPlsParser.cxx:239
int m_height
Definition: WriterPlsParser.cxx:108
@ Simple
Definition: MWAWFont.hxx:49
int m_type
Definition: WriterPlsParser.cxx:560
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
int m_headerY
Definition: WriterPlsParser.cxx:299
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
int m_unknown[4]
Definition: WriterPlsParser.cxx:107
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
SectionInfo()
Definition: WriterPlsParser.cxx:457
friend std::ostream & operator<<(std::ostream &o, Zone const &z)
Definition: WriterPlsParser.cxx:261
void newPage(int number)
adds a new page
Definition: WriterPlsParser.cxx:682
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
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:132
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
std::vector< Font > m_fonts
Definition: WriterPlsParser.cxx:566
int m_flags[6]
Definition: WriterPlsParser.cxx:243
long m_endPos
Definition: WriterPlsParser.cxx:568
void setNaturalSize(MWAWVec2f const &naturalSz)
sets the natural size (if known)
Definition: MWAWPosition.hxx:220
int m_size
Definition: WriterPlsParser.cxx:272
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont m_font
the font
Definition: WriterPlsParser.cxx:392
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
int m_flags[4]
the maximum font size
Definition: WriterPlsParser.cxx:425
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:71
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
WindowsInfo()
Definition: WriterPlsParser.cxx:279
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
friend std::ostream & operator<<(std::ostream &o, GraphicInfo const &g)
operator<<
Definition: WriterPlsParser.cxx:439
int m_width
Definition: WriterPlsParser.cxx:241
friend std::ostream & operator<<(std::ostream &o, Font const &f)
operator<<
Definition: WriterPlsParser.cxx:386
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
int m_height
Definition: WriterPlsParser.cxx:81
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) and header/footer
Definition: WriterPlsParser.cxx:674
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
int m_footerHeight
the footer height if known
Definition: WriterPlsParser.cxx:590
SubDocumentType
Definition: libmwaw_internal.hxx:188
int m_firstChar
the first character
Definition: WriterPlsParser.cxx:394
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
std::vector< ColumnInfo > m_columns
Definition: WriterPlsParser.cxx:301
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
@ MWAW_T_WRITERPLUS
WriterPlus.
Definition: MWAWDocument.hxx:157
@ shadowBit
Definition: MWAWFont.hxx:191
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
WindowsInfo m_windows[3]
the information ( 0: main, 1: header, 2: footer)
Definition: WriterPlsParser.cxx:587
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
bool readWindowsZone(int zone)
read the page info zone
Definition: WriterPlsParser.cxx:955
int m_unknown
Definition: WriterPlsParser.cxx:563
T y() const
second element
Definition: libmwaw_internal.hxx:673
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: WriterPlsParser.cxx:803
~WriterPlsParser() final
destructor
Definition: WriterPlsParser.cxx:656
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
Windows informations.
Definition: WriterPlsParser.cxx:248
int m_firstLine
Definition: WriterPlsParser.cxx:79
T x() const
first element
Definition: libmwaw_internal.hxx:668
int m_numPages
the number of page of the final document
Definition: WriterPlsParser.cxx:584
friend std::ostream & operator<<(std::ostream &o, ColumnInfo const &c)
Definition: WriterPlsParser.cxx:94
bool readWindowsInfo(int zone)
read the main info for zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: WriterPlsParser.cxx:831
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_width
Definition: WriterPlsParser.cxx:561
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
Internal: class to store the beginning of all paragraph data.
Definition: WriterPlsParser.cxx:497
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:152
double m_width
the columns width
Definition: MWAWSection.hxx:150
struct to store the columns properties
Definition: MWAWSection.hxx:120
friend std::ostream & operator<<(std::ostream &o, ColumnTableInfo const &c)
Definition: WriterPlsParser.cxx:121
@ PageBreak
Definition: MWAWListener.hxx:58
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
a class which stores section properties
Definition: MWAWSection.hxx:46
Definition: libmwaw_internal.hxx:144
bool dimensionInvalid() const
Definition: WriterPlsParser.cxx:289
friend std::ostream & operator<<(std::ostream &o, ParagraphInfo const &p)
Definition: WriterPlsParser.cxx:159
int m_height
the height
Definition: WriterPlsParser.cxx:422
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
~SubDocument() final
destructor
Definition: WriterPlsParser.cxx:604
friend std::ostream & operator<<(std::ostream &o, SectionInfo const &s)
operator<<
Definition: WriterPlsParser.cxx:474
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: WriterPlsParser.cxx:624
Zone m_zone[7]
Definition: WriterPlsParser.cxx:305
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWVec2i m_pageDim
Definition: WriterPlsParser.cxx:298
State()
constructor
Definition: WriterPlsParser.cxx:576
WriterPlsParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: WriterPlsParser.cxx:649
std::vector< ParagraphInfo > m_paragraphs
Definition: WriterPlsParser.cxx:302
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
int m_indent[2]
Definition: WriterPlsParser.cxx:562
bool createZones()
finds the different objects zones
Definition: WriterPlsParser.cxx:768
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
friend std::ostream & operator<<(std::ostream &o, PageInfo const &p)
Definition: WriterPlsParser.cxx:69
int m_typeFlag
Definition: WriterPlsParser.cxx:560
std::shared_ptr< WriterPlsParserInternal::State > m_state
the state
Definition: WriterPlsParser.hxx:158
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
std::vector< PageInfo > m_pages
Definition: WriterPlsParser.cxx:300
bool readPageInfo(int zone)
read the page info zone
Definition: WriterPlsParser.cxx:1252
Internal: the state of a WriterPlsParser.
Definition: WriterPlsParser.cxx:574
bool readGraphic(WriterPlsParserInternal::ParagraphInfo const &info)
read a graphic
Definition: WriterPlsParser.cxx:1630
@ italicBit
Definition: MWAWFont.hxx:190
librevenge::RVNGUnit m_widthUnit
the width unit (default inches)
Definition: MWAWSection.hxx:152
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
bool readParagraphData(WriterPlsParserInternal::ParagraphInfo const &info, bool hasFonts, WriterPlsParserInternal::ParagraphData &data)
reads a paragraph data
Definition: WriterPlsParser.cxx:1791
bool empty() const
Definition: WriterPlsParser.cxx:464
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
bool readUnknown(WriterPlsParserInternal::ParagraphInfo const &info)
read a unknown section
Definition: WriterPlsParser.cxx:1750
int m_textX[3]
Definition: WriterPlsParser.cxx:136
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
Column informations.
Definition: WriterPlsParser.cxx:85
int m_id
the subdocument id
Definition: WriterPlsParser.cxx:621
@ Left
Definition: MWAWTable.hxx:62
friend std::ostream & operator<<(std::ostream &o, ParagraphData const &p)
operator<<
Definition: WriterPlsParser.cxx:513
int m_numData[2]
Definition: WriterPlsParser.cxx:569
long m_pos
Definition: WriterPlsParser.cxx:238
int m_numData
Definition: WriterPlsParser.cxx:134
bool readSection(WriterPlsParserInternal::ParagraphInfo const &info, bool mainBlock)
read a section
Definition: WriterPlsParser.cxx:1507
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
SubDocument(WriterPlsParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: WriterPlsParser.cxx:598
the main class to read a Writerperfect file
Definition: WriterPlsParser.hxx:65
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
int m_unknown[2]
Definition: WriterPlsParser.cxx:80
std::vector< int > m_linesHeight
Definition: WriterPlsParser.cxx:242
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
int m_numCol
Definition: WriterPlsParser.cxx:108
int m_numLines
Definition: WriterPlsParser.cxx:241
int m_width
the width
Definition: WriterPlsParser.cxx:422
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WriterPlsParser.cxx:732
ColumnInfo()
Definition: WriterPlsParser.cxx:86
bool readPrintInfo()
read the print info zone
Definition: WriterPlsParser.cxx:1972
MWAWParagraph getParagraph(WriterPlsParserInternal::ParagraphData const &data)
returns a paragraph corresponding to a paragraph data
Definition: WriterPlsParser.cxx:1302
int m_headerHeight
the header height if known
Definition: WriterPlsParser.cxx:589
bool sendWindow(int zone, MWAWVec2i limits=MWAWVec2i(-1,-1))
send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: WriterPlsParser.cxx:1050
int m_actPage
the actual page
Definition: WriterPlsParser.cxx:584
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: WriterPlsParser.cxx:607
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
Internal: class to store the font properties.
Definition: WriterPlsParser.cxx:378
Internal: class to store the Section properties.
Definition: WriterPlsParser.cxx:456
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
int m_flags[7]
some flag
Definition: WriterPlsParser.cxx:451
Definition: WriterPlsParser.cxx:249
std::string m_text
Definition: WriterPlsParser.cxx:565
void setAlignment(Alignment align, float leftMargin=0, float rightMargin=0)
defines the current alignment
Definition: MWAWTable.hxx:106
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
Font()
Definition: WriterPlsParser.cxx:379
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
Zone()
Definition: WriterPlsParser.cxx:250
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
bool findSection(int zone, MWAWVec2i limits, MWAWSection &sec)
try to find the data which correspond to a section ( mainly column )
Definition: WriterPlsParser.cxx:1194
bool readLines(WriterPlsParserInternal::ParagraphInfo const &info, int nLines, std::vector< WriterPlsParserInternal::Line > &lines)
reads a list of line (with position)
Definition: WriterPlsParser.cxx:1942
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
int m_firstLine
Definition: WriterPlsParser.cxx:106
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20