29#include <librevenge-stream/librevenge-stream.h>
59 void parse(librevenge::RVNGTextInterface *documentInterface)
override;
68 std::shared_ptr<WPSContentListener>
createListener(librevenge::RVNGTextInterface *interface);
116 std::shared_ptr<PocketWordParserInternal::State>
m_state;
a graphic: a list of shape
Definition PocketWord.cpp:52
a shape
Definition PocketWord.cpp:72
void checkUnparsed()
try to parse the unparsed zones
Definition PocketWord.cpp:392
bool readPageDims(WPSEntry const &entry)
try to read the page dimension
Definition PocketWord.cpp:567
bool readUnkn8(WPSEntry const &entry)
try to read the unknown zone 8: one by file, maybe prefs
Definition PocketWord.cpp:1432
~PocketWordParser() override
destructor
Definition PocketWord.cpp:246
bool readLocalPicture(WPSEntry const &entry)
try to read a picture inserted as char: a list of polygons followed by a list of text
Definition PocketWord.cpp:1109
bool readShape(WPSEntry const &entry, int type, PocketWordParserInternal::Shape &shape)
try to read a shape: zone 103-107
Definition PocketWord.cpp:1605
bool readParagraphList(WPSEntry const &entry, std::vector< int > ¶Id)
try to read a paragraph list
Definition PocketWord.cpp:1233
PocketWordParser(const PocketWordParser &)=delete
bool readSound(WPSEntry const &entry, WPSEmbeddedObject &object)
try to read a sound definition (maybe a picture)
Definition PocketWord.cpp:1283
void sendData()
try to send all the data
Definition PocketWord.cpp:1860
std::shared_ptr< PocketWordParserInternal::State > m_state
the main state
Definition PocketWord.h:116
bool readDrawing(WPSEntry const &entry, PocketWordParserInternal::Graphic &graphic)
try to read a drawing: a list of shapes: zone 131
Definition PocketWord.cpp:1524
bool sendShape(int shapeId, WPSPosition const &pos, WPSTransformation const &transf, std::set< int > &alreadySend)
try to send a shape
Definition PocketWord.cpp:1027
bool sendParagraph(size_t paraId)
try to read and send a paragraph
Definition PocketWord.cpp:666
void parse(librevenge::RVNGTextInterface *documentInterface) override
called by WPSDocument to parse the file
Definition PocketWord.cpp:295
std::shared_ptr< WPSContentListener > m_listener
the listener (if set)
Definition PocketWord.h:114
std::shared_ptr< WPSContentListener > createListener(librevenge::RVNGTextInterface *interface)
creates the main listener
Definition PocketWord.cpp:264
bool readParagraphDims(WPSEntry const &entry)
try to read a paragraph dimensions' zone which follows the paragraph zone
Definition PocketWord.cpp:1066
friend class PocketWordParserInternal::SubDocument
Definition PocketWord.h:50
bool createZones()
try to read the different zones
Definition PocketWord.cpp:335
bool readFontNames(WPSEntry const &entry)
try to read the font names
Definition PocketWord.cpp:478
bool sendDrawing(PocketWordParserInternal::Graphic const &graphic)
try to send a drawing, a list of shapes
Definition PocketWord.cpp:995
bool readUnkn2021(WPSEntry const &entry, int type)
try to read the unknown zone 20 and 21: one by file, find always no data, maybe style
Definition PocketWord.cpp:1491
PocketWordParser & operator=(const PocketWordParser &)=delete
PocketWordParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
constructor
Definition PocketWord.cpp:238
bool checkFilePosition(long pos) const
check if the file position is correct or not
Definition PocketWord.cpp:250
bool readSoundData(WPSEntry const &entry, long pictSize, WPSEmbeddedObject &object)
try to read a sound data (maybe a picture)
Definition PocketWord.cpp:1391
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition PocketWord.cpp:1808
basic class to store an entry in a file This contained :
Definition WPSEntry.h:39
WPSParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header)
Definition WPSParser.cpp:30
Class to define the position of an object (textbox, picture, ..) in the document.
Definition WPSPosition.h:40
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition libwps_internal.h:109
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Definition PocketWord.cpp:49
the state of PocketWord
Definition PocketWord.cpp:165
small class use to define a embedded object
Definition libwps_internal.h:1077