27 #include <librevenge-stream/librevenge-stream.h> 97 , m_startPageNumber(0xffff)
139 void parse(librevenge::RVNGTextInterface *documentInterface)
override;
145 std::shared_ptr<WPSContentListener> createListener(librevenge::RVNGTextInterface *interface);
147 void readStructures();
150 virtual void readFFNTB();
151 void readFOD(
unsigned page,
void (
MSWriteParser::*parseFOD)(uint32_t fcFirst, uint32_t fcLim,
unsigned size));
152 virtual void readPAP(uint32_t fcFirst, uint32_t fcLim,
unsigned cch);
153 virtual void readCHP(uint32_t fcFirst, uint32_t fcLim,
unsigned cch);
154 virtual void readSUMD();
155 virtual void readFNTB();
156 virtual void readSED();
159 void processObject(
WPSPosition &pos,
unsigned long lastPos);
160 bool processDDB(librevenge::RVNGBinaryData &bmpdata,
WPSPosition &pos,
unsigned width,
unsigned height,
unsigned byte_width,
unsigned planes,
unsigned bits_pixel,
unsigned size);
161 bool processDIB(librevenge::RVNGBinaryData &bmpdata,
unsigned size);
162 bool processWMF(librevenge::RVNGBinaryData &wmfdata,
unsigned size);
163 void processEmbeddedOLE(
WPSPosition &pos,
unsigned long lastPos);
164 bool processStaticOLE(librevenge::RVNGBinaryData &, std::string &mimetype,
WPSPosition &pos,
unsigned long lastPos);
165 bool readString(std::string &res,
unsigned long lastPos);
167 virtual void insertControl(uint8_t val, uint32_t fc);
168 void insertNote(
bool annotation, uint32_t fcPos, librevenge::RVNGString &label);
177 return pos<=m_fileLength;
bool m_special
Definition: MSWrite.h:73
std::vector< MSWriteParserInternal::Font > m_fontList
Definition: MSWrite.h:185
unsigned m_bkc
Definition: MSWrite.h:106
Definition: MSWrite.cpp:38
class to store the paragraph properties
Definition: WPSParagraph.h:57
double m_dxaText
Definition: MSWrite.h:111
double m_xaLeft
Definition: MSWrite.h:110
double m_dyaText
Definition: MSWrite.h:109
uint32_t m_fcLim
Definition: MSWrite.h:105
std::vector< MSWriteParserInternal::Paragraph > m_paragraphList
Definition: MSWrite.h:184
std::vector< librevenge::RVNGString > m_fonts
Definition: MSWrite.h:188
double m_yaMac
Definition: MSWrite.h:107
unsigned m_columns
Definition: MSWrite.h:116
define the font properties
Definition: WPSFont.h:36
uint16_t m_startPageNumber
Definition: MSWrite.h:112
bool m_skiptab
Definition: MSWrite.h:57
uint32_t m_fcLim
Definition: MSWrite.h:72
bool m_graphics
Definition: MSWrite.h:57
uint32_t m_fcFirst
Definition: MSWrite.h:55
libwps_tools_win::Font::Type m_encoding
Definition: MSWrite.h:74
double m_interLine
Definition: MSWrite.h:58
Definition: WPSParser.h:35
double m_yaTop
Definition: MSWrite.h:108
Internal: the subdocument of a MSWriteParser.
Definition: MSWrite.cpp:41
WPSEntry m_Main
Definition: MSWrite.h:118
double m_yaHeader
Definition: MSWrite.h:113
uint32_t m_fcLim
Definition: MSWrite.h:55
libwps_tools_win::Font::Type m_fontType
Definition: MSWrite.h:189
WPSPageSpan::HeaderFooterOccurrence m_HeaderFooterOccurrence
Definition: MSWrite.h:59
librevenge::RVNGPropertyList m_metaData
Definition: MSWrite.h:193
std::vector< MSWriteParserInternal::Footnote > m_footnotes
Definition: MSWrite.h:186
double m_yaFooter
Definition: MSWrite.h:114
bool m_firstpage
Definition: MSWrite.h:57
Font()
Definition: MSWrite.h:64
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
std::shared_ptr< WPSContentListener > m_listener
Definition: MSWrite.h:191
Paragraph()
Definition: MSWrite.h:44
uint32_t m_fcMac
Definition: MSWrite.h:182
HeaderFooterOccurrence
Definition: WPSPageSpan.h:44
This class parses Microsoft Write 3.0 and 3.1.
Definition: MSWrite.h:127
double m_dxaGutter
Definition: MSWrite.h:117
bool m_headerUseMargin
Definition: MSWrite.h:57
bool m_endFtns
Definition: MSWrite.h:115
bool checkFilePosition(uint32_t pos) const
check if the file position is correct or not
Definition: MSWrite.h:175
Definition: WPSPageSpan.h:38
Location m_Location
Definition: MSWrite.h:56
std::vector< MSWriteParserInternal::Section > m_sections
Definition: MSWrite.h:187
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
Location
Definition: MSWrite.h:43
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:109
uint32_t m_fileLength
the last file position
Definition: MSWrite.h:181
Section()
constructor
Definition: MSWrite.h:88