51 namespace WPParserInternal
80 void parse(WPXDocumentInterface *documentInterface);
148 std::vector<WPParserInternal::Font> &fonts);
152 int nLines, std::vector<WPParserInternal::Line> &lines);
shared_ptr< WPParserInternal::State > m_state
the state
Definition: WPParser.hxx:160
bool readColInfo(int zone)
read the col info zone ?
Definition: WPParser.cxx:1310
bool readFonts(int nFonts, int type, std::vector< WPParserInternal::Font > &fonts)
reads a list of font (with position)
Definition: WPParser.cxx:1790
bool createZones()
finds the different objects zones
Definition: WPParser.cxx:703
Paragraph informations.
Definition: WPParser.cxx:125
virtual ~WPParser()
destructor
Definition: WPParser.cxx:590
MWAWParagraph getParagraph(WPParserInternal::ParagraphData const &data)
returns a paragraph corresponding to a paragraph data
Definition: WPParser.cxx:1229
bool readPrintInfo()
read the print info zone
Definition: WPParser.cxx:1891
the main class to read a Writerperfect file
Definition: WPParser.hxx:66
Vec2< int > Vec2i
Vec2 of int.
Definition: libmwaw_internal.hxx:592
bool readGraphic(WPParserInternal::ParagraphInfo const &info)
read a graphic
Definition: WPParser.cxx:1550
bool readWindowsInfo(int zone)
read the main info for zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: WPParser.cxx:770
WPParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: WPParser.cxx:584
bool readUnknown(WPParserInternal::ParagraphInfo const &info)
read a unknown section
Definition: WPParser.cxx:1672
bool readWindowsZone(int zone)
read the page info zone
Definition: WPParser.cxx:896
void newPage(int number)
adds a new page
Definition: WPParser.cxx:616
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:354
Internal: the subdocument of a MWParser.
Definition: WPParser.cxx:522
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WPParser.cxx:738
bool readTable(WPParserInternal::ParagraphInfo const &info)
read a table
Definition: WPParser.cxx:1481
a class which stores section properties
Definition: MWAWSection.hxx:45
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) and header/footer ...
Definition: WPParser.cxx:608
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
bool findSection(int zone, Vec2i limits, MWAWSection &sec)
try to find the data which correspond to a section ( mainly column )
Definition: WPParser.cxx:1123
bool sendWindow(int zone, Vec2i limits=Vec2i(-1,-1))
send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: WPParser.cxx:987
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
bool readParagraphInfo(int zone)
read the paragraph info zone
Definition: WPParser.cxx:1247
bool readText(WPParserInternal::ParagraphInfo const &info)
read a text
Definition: WPParser.cxx:1345
bool readParagraphData(WPParserInternal::ParagraphInfo const &info, bool hasFonts, WPParserInternal::ParagraphData &data)
reads a paragraph data
Definition: WPParser.cxx:1713
bool readLines(WPParserInternal::ParagraphInfo const &info, int nLines, std::vector< WPParserInternal::Line > &lines)
reads a list of line (with position)
Definition: WPParser.cxx:1860
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:89
Internal: class to store the beginning of all paragraph data.
Definition: WPParser.cxx:438
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: WPParser.cxx:634
bool readPageInfo(int zone)
read the page info zone
Definition: WPParser.cxx:1179
void init()
inits all internal variables
Definition: WPParser.cxx:594
bool readSection(WPParserInternal::ParagraphInfo const &info, bool mainBlock)
read a section
Definition: WPParser.cxx:1424
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WPParser.cxx:667