27 #include <librevenge-stream/librevenge-stream.h>
35 namespace WPS4ParserInternal
61 void parse(librevenge::RVNGTextInterface *documentInterface);
76 void setListener(shared_ptr<WPSContentListener> listener);
83 shared_ptr<WPSContentListener>
createListener(librevenge::RVNGTextInterface *interface);
153 shared_ptr<WPS4ParserInternal::State>
m_state;
shared_ptr< WPS4Graph > m_graphParser
the graph parser
Definition: WPS4.h:149
void parse(librevenge::RVNGTextInterface *documentInterface)
called by WPSDocument to parse the file
Definition: WPS4.cpp:378
Internal: the subdocument of a WPS4Parser.
Definition: WPS4.cpp:45
int numColumns() const
returns the number of columns
Definition: WPS4.cpp:180
float pageWidth() const
returns the page width, ie. paper size less margin (in inches)
Definition: WPS4.cpp:175
bool getColor(int id, WPSColor &color) const
color
Definition: WPS4.cpp:197
bool findZones()
finds the different zones (text, print, ...) and updates nameMultiMap
Definition: WPS4.cpp:563
This class parses Works version 2 through 4.
Definition: WPS4.h:48
void send(WPSEntry const &entry, libwps::SubDocumentType type)
sends text corresponding to the entry to the listener (via WPS4Text)
Definition: WPS4.cpp:330
bool parseEntry(std::string const &name)
parses an entry
Definition: WPS4.cpp:503
bool readDocDim()
tries to read the document dimension
Definition: WPS4.cpp:833
Definition: WPSParser.h:35
void setListener(shared_ptr< WPSContentListener > listener)
set the listener
Definition: WPS4.cpp:253
the main class to read/store picture in a Pc MS Works document v1-4
Definition: WPS4Graph.h:56
bool createStructures()
tries to parse the main zone, ...
Definition: WPS4.cpp:436
int readObject(RVNGInputStreamPtr input, WPSEntry const &entry)
tries to read a picture ( via its WPS4Graph )
Definition: WPS4.cpp:317
void createNote(WPSEntry const &entry, librevenge::RVNGString const &label)
creates a document for a footnote entry with label and then send the data
Definition: WPS4.cpp:357
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:124
SubDocumentType
Definition: libwps_internal.h:260
void sendObject(WPSPosition const &position, int id)
sends an object with given id ( via its WPS4Graph )
Definition: WPS4.cpp:325
void createTextBox(WPSEntry const &entry, WPSPosition const &pos, librevenge::RVNGPropertyList &extras)
creates a textbox and then send the data
Definition: WPS4.cpp:365
shared_ptr< WPS4Text > m_textParser
the text parser
Definition: WPS4.h:151
bool readPrnt(WPSEntry const &entry)
tries to read the printer information
Definition: WPS4.cpp:900
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:102
the class to store a color
Definition: libwps_internal.h:287
WPS4Parser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
constructor
Definition: WPS4.cpp:155
void setSizeFile(long sz)
sets the file size ( filled by WPS4Text )
Definition: WPS4.cpp:233
shared_ptr< WPSContentListener > m_listener
Definition: WPS4.h:147
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: WPS4.cpp:185
float pageHeight() const
returns the page height, ie. paper size less margin (in inches)
Definition: WPS4.cpp:170
void createDocument(WPSEntry const &entry, libwps::SubDocumentType type)
creates a document for a comment entry and then send the data
Definition: WPS4.cpp:344
void newPage(int number)
adds a new page
Definition: WPS4.cpp:298
bool readDocWindowsInfo(WPSEntry const &entry)
reads the additional windows info
Definition: WPS4.cpp:972
libwps_tools_win::Font::Type getOEMFontType() const
returns the document codepage ( given from the file OEM field )
Definition: WPS4.cpp:192
The class which parses text zones in a pc MS Works document v1-4.
Definition: WPS4Text.h:65
shared_ptr< WPS4ParserInternal::State > m_state
the internal state
Definition: WPS4.h:153
Definition: WPSPageSpan.h:38
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WPS4.cpp:239
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WPS4.cpp:539
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: WPSPosition.h:39
shared_ptr< WPSContentListener > createListener(librevenge::RVNGTextInterface *interface)
creates the main listener
Definition: WPS4.cpp:260
bool createOLEStructures()
tries to parse the different OLE zones ( except the main zone )
Definition: WPS4.cpp:453
~WPS4Parser()
destructor
Definition: WPS4.cpp:165