27 #include <librevenge-stream/librevenge-stream.h>
37 namespace MSWriteParserInternal
113 void parse(librevenge::RVNGTextInterface *documentInterface);
119 shared_ptr<WPSContentListener>
createListener(librevenge::RVNGTextInterface *interface);
125 void readFOD(
unsigned page,
void (
MSWriteParser::*parseFOD)(uint32_t fcFirst, uint32_t fcLim,
unsigned size));
126 virtual void readPAP(uint32_t fcFirst, uint32_t fcLim,
unsigned cch);
127 virtual void readCHP(uint32_t fcFirst, uint32_t fcLim,
unsigned cch);
134 bool processDDB(librevenge::RVNGBinaryData &bmpdata,
WPSPosition &pos,
unsigned width,
unsigned height,
unsigned byte_width,
unsigned planes,
unsigned bits_pixel,
unsigned size);
135 bool processDIB(librevenge::RVNGBinaryData &bmpdata,
unsigned size);
136 bool processWMF(librevenge::RVNGBinaryData &wmfdata,
unsigned size);
139 bool readString(std::string &res,
unsigned long lastPos);
142 void insertNote(
bool annotation, uint32_t fcPos, librevenge::RVNGString &label);
bool m_special
Definition: MSWrite.h:61
std::vector< MSWriteParserInternal::Font > m_fontList
Definition: MSWrite.h:159
void startSection(MSWriteParserInternal::Section §ion)
Definition: MSWrite.cpp:1725
unsigned m_bkc
Definition: MSWrite.h:80
class to store the paragraph properties
Definition: WPSParagraph.h:54
double m_dxaText
Definition: MSWrite.h:85
bool readString(std::string &res, unsigned long lastPos)
Definition: MSWrite.cpp:1116
double m_xaLeft
Definition: MSWrite.h:84
double m_dyaText
Definition: MSWrite.h:83
uint32_t m_fcLim
Definition: MSWrite.h:79
void insertNote(bool annotation, uint32_t fcPos, librevenge::RVNGString &label)
Definition: MSWrite.cpp:1688
virtual void readSED()
Definition: MSWrite.cpp:419
std::vector< MSWriteParserInternal::Paragraph > m_paragraphList
Definition: MSWrite.h:158
std::vector< librevenge::RVNGString > m_fonts
Definition: MSWrite.h:162
virtual void readFFNTB()
Definition: MSWrite.cpp:321
double m_yaMac
Definition: MSWrite.h:81
unsigned m_columns
Definition: MSWrite.h:90
double m_xaMac
Definition: MSWrite.h:81
define the font properties
Definition: WPSFont.h:36
uint16_t m_startPageNumber
Definition: MSWrite.h:86
bool m_footnote
Definition: MSWrite.h:61
bool m_skiptab
Definition: MSWrite.h:50
uint32_t m_fcLim
Definition: MSWrite.h:60
bool m_graphics
Definition: MSWrite.h:50
uint32_t m_fcFirst
Definition: MSWrite.h:48
libwps_tools_win::Font::Type m_encoding
Definition: MSWrite.h:62
double m_interLine
Definition: MSWrite.h:51
void getHeaderFooters(uint32_t first, MSWriteParserInternal::Section &sep, WPSPageSpan &pageSpan)
Definition: MSWrite.cpp:734
bool m_annotation
Definition: MSWrite.h:61
Definition: WPSParser.h:35
MSWriteParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::WIN3_WEUROPE)
Definition: MSWrite.cpp:265
bool processStaticOLE(librevenge::RVNGBinaryData &, std::string &mimetype, WPSPosition &pos, unsigned long lastPos)
Definition: MSWrite.cpp:1494
double m_yaTop
Definition: MSWrite.h:82
static void getPageStyle(MSWriteParserInternal::Section &sep, WPSPageSpan &pageSpan)
Definition: MSWrite.cpp:477
Internal: the subdocument of a MSWriteParser.
Definition: MSWrite.cpp:41
WPSEntry m_Main
Definition: MSWrite.h:92
double m_yaHeader
Definition: MSWrite.h:87
virtual void readFNTB()
Definition: MSWrite.cpp:1655
shared_ptr< WPSContentListener > m_listener
Definition: MSWrite.h:165
uint32_t m_fcLim
Definition: MSWrite.h:48
shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:124
uint32_t m_fcFirst
Definition: MSWrite.h:60
libwps_tools_win::Font::Type m_fontType
Definition: MSWrite.h:163
WPSPageSpan::HeaderFooterOccurrence m_HeaderFooterOccurrence
Definition: MSWrite.h:52
librevenge::RVNGPropertyList m_metaData
Definition: MSWrite.h:167
std::vector< MSWriteParserInternal::Footnote > m_footnotes
Definition: MSWrite.h:160
void processEmbeddedOLE(WPSPosition &pos, unsigned long lastPos)
Definition: MSWrite.cpp:1551
virtual void readCHP(uint32_t fcFirst, uint32_t fcLim, unsigned cch)
Definition: MSWrite.cpp:678
double m_yaFooter
Definition: MSWrite.h:88
bool m_firstpage
Definition: MSWrite.h:50
unsigned insertString(const unsigned char *str, unsigned size, libwps_tools_win::Font::Type type)
Definition: MSWrite.cpp:1100
Font()
Definition: MSWrite.h:57
void readFIB()
Definition: MSWrite.cpp:295
virtual void insertSpecial(uint8_t val, uint32_t fc, MSWriteParserInternal::Paragraph::Location location)
Definition: MSWrite.cpp:1067
double m_dxaColumns
Definition: MSWrite.h:91
Paragraph()
Definition: MSWrite.h:44
uint32_t m_fcMac
Definition: MSWrite.h:156
shared_ptr< WPSContentListener > createListener(librevenge::RVNGTextInterface *interface)
Definition: MSWrite.cpp:872
HeaderFooterOccurrence
Definition: WPSPageSpan.h:44
This class parses Microsoft Write 3.0 and 3.1.
Definition: MSWrite.h:101
double m_dxaGutter
Definition: MSWrite.h:91
void parse(librevenge::RVNGTextInterface *documentInterface)
Definition: MSWrite.cpp:1735
virtual void readSUMD()
Definition: MSWrite.cpp:1650
void readText(WPSEntry e, MSWriteParserInternal::Paragraph::Location location)
Definition: MSWrite.cpp:897
bool m_headerUseMargin
Definition: MSWrite.h:50
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:102
virtual void insertControl(uint8_t val, uint32_t fc)
Definition: MSWrite.cpp:1073
bool processDIB(librevenge::RVNGBinaryData &bmpdata, unsigned size)
Definition: MSWrite.cpp:1451
bool checkFilePosition(uint32_t pos) const
check if the file position is correct or not
Definition: MSWrite.h:149
virtual void readPAP(uint32_t fcFirst, uint32_t fcLim, unsigned cch)
Definition: MSWrite.cpp:579
bool processDDB(librevenge::RVNGBinaryData &bmpdata, WPSPosition &pos, unsigned width, unsigned height, unsigned byte_width, unsigned planes, unsigned bits_pixel, unsigned size)
Definition: MSWrite.cpp:1266
bool m_endFtns
Definition: MSWrite.h:89
void readStructures()
Definition: MSWrite.cpp:1660
Definition: WPSPageSpan.h:38
Location m_Location
Definition: MSWrite.h:49
std::vector< MSWriteParserInternal::Section > m_sections
Definition: MSWrite.h:161
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
void readFOD(unsigned page, void(MSWriteParser::*parseFOD)(uint32_t fcFirst, uint32_t fcLim, unsigned size))
Definition: MSWrite.cpp:524
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: WPSPosition.h:39
Location
Definition: MSWrite.h:43
MSWriteParser & operator=(const MSWriteParser &)
~MSWriteParser()
Definition: MSWrite.cpp:283
bool processWMF(librevenge::RVNGBinaryData &wmfdata, unsigned size)
Definition: MSWrite.cpp:1631
virtual libwps_tools_win::Font::Type getFileEncoding(libwps_tools_win::Font::Type hint)
Definition: MSWrite.cpp:287
uint32_t m_fileLength
the last file position
Definition: MSWrite.h:155
void processObject(WPSPosition &pos, unsigned long lastPos)
Definition: MSWrite.cpp:1157
Section()
constructor
Definition: MSWrite.h:74