28 #include <librevenge/librevenge.h>
62 void parse(librevenge::RVNGTextInterface *documentInterface);
70 void setListener(shared_ptr<WPSContentListener> listener);
72 shared_ptr<WPSContentListener>
createListener(librevenge::RVNGTextInterface *interface);
92 librevenge::RVNGPropertyList frameExtras=librevenge::RVNGPropertyList());
97 void send(
int strsId);
167 shared_ptr<WPS8ParserInternal::State>
m_state;
bool createOLEStructures()
tries to parse the different OLE zones ( except the main zone )
Definition: WPS8.cpp:693
This class parses Works version 2000 through 8.
Definition: WPS8.h:49
float pageHeight() const
returns the page height, ie. paper size less margin (in inches)
Definition: WPS8.cpp:338
shared_ptr< WPS8Table > m_tableParser
the table parser
Definition: WPS8.h:163
the main class to read/store pictures in a Pc MS Works document v5-8
Definition: WPS8Graph.h:54
void newPage(int number)
adds a new page
Definition: WPS8.cpp:421
Definition: WPS8Text.h:47
the main class to read/store table in a Pc MS Works document v5-8
Definition: WPS8Table.h:57
bool checkInFile(long pos)
return true if the pos is in the file, update the file size if need
Definition: WPS8.cpp:353
void send(WPSEntry const &entry)
sends text corresponding to the entry to the listener (via WPS8Text)
Definition: WPS8.cpp:439
void parse(librevenge::RVNGTextInterface *documentInterface)
called by WPSDocument to parse the file
Definition: WPS8.cpp:535
bool readFRCD(WPSEntry const &entry)
reads the FRCD zone: ie a zone which can contains mailmerge data ?
Definition: WPS8.cpp:1654
Internal: the subdocument of a WPS8Parser.
Definition: WPS8.cpp:52
bool createStructures()
tries to parse the main zone, ...
Definition: WPS8.cpp:596
Definition: WPSParser.h:35
std::deque< int > m_sendingTables
Definition: WPS8.h:170
shared_ptr< WPSContentListener > m_listener
Definition: WPS8.h:159
bool readSYID(WPSEntry const &entry, std::vector< int > &listId)
parses a SYID zone
Definition: WPS8.cpp:1839
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:124
void sendPageFrames()
send the frames which corresponds to a given page to the listener
Definition: WPS8.cpp:743
bool readSPELLING(RVNGInputStreamPtr input, std::string const &oleName)
finds the structures of the Ole zone "SPELLING"
Definition: WPS8.cpp:2043
void setListener(shared_ptr< WPSContentListener > listener)
set the listener
Definition: WPS8.cpp:367
shared_ptr< WPSContentListener > createListener(librevenge::RVNGTextInterface *interface)
creates the main listener
Definition: WPS8.cpp:375
bool sendTable(Vec2f const &size, int objectId)
sends a table as a character with given size ( via its WPS8Table )
Definition: WPS8.cpp:482
bool readFRAM(WPSEntry const &entry)
reads the FRAM zone: ie a zone which can contains textbox, picture, ...
Definition: WPS8.cpp:1275
shared_ptr< WPS8Text > m_textParser
the text parser
Definition: WPS8.h:165
WPS8Parser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
constructor
Definition: WPS8.cpp:321
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:102
bool parseHeaderIndexEntry()
parses an index entry
Definition: WPS8.cpp:793
bool readDocProperties(WPSEntry const &entry, WPSPageSpan &page)
reads the DOP zone: the document properties
Definition: WPS8.cpp:1014
void sendTextInCell(int strsId, int cellId)
send the text of a cell to a listener (via WPS8Text)
Definition: WPS8.cpp:452
float pageWidth() const
returns the page width, ie. paper size less margin (in inches)
Definition: WPS8.cpp:343
int getTableSTRSId(int tableId) const
retrieve the strsId corresponding to a table ( mainly for debug)
Definition: WPS8.cpp:519
bool readWNPR(WPSEntry const &entry)
parses the WNPR zone : a zone which seems to contain the printer preferences.
Definition: WPS8.cpp:1888
shared_ptr< WPS8ParserInternal::State > m_state
the internal state
Definition: WPS8.h:167
~WPS8Parser()
destructor
Definition: WPS8.cpp:333
Definition: WPSPageSpan.h:38
bool sendObject(Vec2f const &size, int objectId, bool ole)
sends an object as a character with given size (via its WPS8Graph )
Definition: WPS8.cpp:473
int numColumns() const
returns the number of columns
Definition: WPS8.cpp:348
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
shared_ptr< WPS8Graph > m_graphParser
the graph parser
Definition: WPS8.h:161
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: WPSPosition.h:39
void sendTextBox(WPSPosition const &pos, int strsid, librevenge::RVNGPropertyList frameExtras=librevenge::RVNGPropertyList())
creates a subdocument to send a textbox which correspond to the strsid text zone
Definition: WPS8.cpp:460
bool parseHeaderIndexEntryEnd(long endPos, WPSEntry &hie, std::string &mess)
function which is called, if some data remains after the basic content of an entry: by default does n...
Definition: WPS8.cpp:902
bool parseHeaderIndex()
tries to find the beginning of the list of indices, then try to find all entries in this list...
Definition: WPS8.cpp:932