Go to the documentation of this file.
28 #include <librevenge-stream/librevenge-stream.h>
59 void parse(librevenge::RVNGTextInterface *documentInterface)
override;
68 std::shared_ptr<WPSContentListener>
createListener(librevenge::RVNGTextInterface *interface);
97 std::shared_ptr<XYWriteParserInternal::State>
m_state;
std::map< std::string, Format > m_nameToStyleMap
map name to style
Definition: XYWrite.cpp:595
bool createTable(XYWriteParserInternal::Format const &format, long endPos)
tries to create a table
Definition: XYWrite.cpp:1433
a field
Definition: libwps_internal.h:462
libwps::Justification m_justify
the justification
Definition: WPSParagraph.h:116
bool update(XYWriteParserInternal::Format const &format, libwps_tools_win::Font::Type &fontType) const
try to update the listener data(font,paragraph style, ...)
Definition: XYWrite.cpp:894
#define WPS_STRIKEOUT_BIT
Definition: libwps_internal.h:507
WPSEntry m_entry
the text entry
Definition: XYWrite.cpp:97
@ UPPERCASE_ROMAN
Definition: libwps_internal.h:246
librevenge::RVNGPropertyList m_metaData
the meta data
Definition: XYWrite.cpp:593
static bool open(std::string const &)
Definition: WPSDebug.h:215
@ PageNumber
Definition: libwps_internal.h:465
This class parses XYWrite Dos and Win4 files.
Definition: XYWrite.h:47
#define WPS_BOLD_BIT
Definition: libwps_internal.h:506
long end() const
returns the end offset
Definition: WPSEntry.h:78
void setMin(Vec2< T > const &x)
resets the minimum point
Definition: libwps_internal.h:771
Internal: the subdocument of a XYWriteParser.
Definition: XYWrite.cpp:603
double m_margins[3]
the margins
Definition: WPSParagraph.h:101
#define WPS_SUBSCRIPT_BIT
Definition: libwps_internal.h:500
#define WPS_UNDERLINE_BIT
Definition: libwps_internal.h:508
@ CENTER
Definition: WPSParagraph.h:39
bool findAllZones()
tries to find the end of main zone, the meta data zones (only Win4)
Definition: XYWrite.cpp:848
std::shared_ptr< XYWriteParserInternal::State > m_state
the main state
Definition: XYWrite.h:97
@ AtLeast
Definition: WPSParagraph.h:61
#define WPS_SUPERSCRIPT_BIT
Definition: libwps_internal.h:499
WPSParser * m_parser
Definition: WPSTextSubDocument.h:62
#define WPS_ALL_CAPS_BIT
Definition: libwps_internal.h:512
bool isDefault() const
returns true if the level type was not set
Definition: WPSList.h:55
static void reset()
Definition: WPSDebug.h:224
libwps_tools_win::Font::Type m_fontType
the user font type
Definition: XYWrite.cpp:591
void setMarginRight(const double marginRight)
Definition: WPSPageSpan.h:134
~XYWriteParser() override
destructor
Definition: XYWrite.cpp:673
Alignment m_alignment
Definition: WPSParagraph.h:51
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: XYWrite.cpp:1790
@ ALL
Definition: WPSPageSpan.h:44
@ ARABIC
Definition: libwps_internal.h:246
bool parseTextZone(WPSEntry const &entry, std::string const styleName="")
tries to parse the main text zone
Definition: XYWrite.cpp:1033
#define WPS_REVERSEVIDEO_BIT
Definition: libwps_internal.h:511
Definition: WPSContentListener.h:44
XYWriteParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN)
constructor
Definition: XYWrite.cpp:664
define the font properties
Definition: WPSFont.h:36
@ Char
Definition: WPSPosition.h:43
bool valid(bool checkId=false) const
returns true if the zone length is positive
Definition: WPSEntry.h:89
#define WPS_ITALICS_BIT
Definition: libwps_internal.h:502
Definition: WPSParagraph.h:37
@ RIGHT
Definition: WPSParagraph.h:39
@ HEADER
Definition: WPSPageSpan.h:43
@ FOOTER
Definition: WPSPageSpan.h:43
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
Vec2< int > Vec2i
Vec2 of int.
Definition: libwps_internal.h:702
#define WPS_SMALL_CAPS_BIT
Definition: libwps_internal.h:509
Definition: WPSParser.h:35
#define WPS_PAGE_BREAK
Definition: libwps_internal.h:519
@ ODD
Definition: WPSPageSpan.h:44
bool m_isDosFile
flag to know if the file is or not a dos file
Definition: XYWrite.cpp:587
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: WPSParagraph.h:87
void parse(std::shared_ptr< WPSContentListener > &listener, libwps::SubDocumentType subDocumentType) final
the parser function
Definition: XYWrite.cpp:630
std::shared_ptr< WPSListener > WPSListenerPtr
shared pointer to WPSListener
Definition: libwps_internal.h:105
XYWriteParser & m_parser
the actual parser
Definition: XYWrite.cpp:95
libwps::NumberingType m_type
the type of the level
Definition: WPSList.h:98
std::map< int, int > m_counterToValueMap
map counter to value
Definition: XYWrite.cpp:599
Vec2< float > Vec2f
Vec2 of float.
Definition: libwps_internal.h:704
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: WPSPosition.h:214
~SubDocument() final
destructor
Definition: XYWrite.cpp:610
@ LEFT
Definition: WPSParagraph.h:39
Definition: libwps_internal.h:151
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
@ LOWERCASE_ROMAN
Definition: libwps_internal.h:246
WPSColor m_color
the font color
Definition: WPSFont.h:91
class to store the paragraph properties
Definition: WPSParagraph.h:57
void setBegin(long off)
sets the begin offset
Definition: WPSEntry.h:57
@ DECIMAL
Definition: WPSParagraph.h:39
Cell(XYWriteParser &parser)
constructor
Definition: XYWrite.cpp:51
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string ( with correct encoding ).
Definition: libwps_internal.cpp:836
void setFormWidth(const double formWidth)
Definition: WPSPageSpan.h:122
@ UPPERCASE
Definition: libwps_internal.h:246
SubDocumentType
Definition: libwps_internal.h:248
bool send(WPSListenerPtr &listener) final
call when a cell must be send
Definition: XYWrite.cpp:64
@ Date
Definition: libwps_internal.h:465
uint32_t m_attributes
the font attributes defined as a set of bits
Definition: WPSFont.h:87
RVNGInputStreamPtr & getInput()
Definition: WPSParser.h:47
long begin() const
returns the begin offset
Definition: WPSEntry.h:73
the state of XYWrite
Definition: XYWrite.cpp:564
long m_eof
the last file position
Definition: XYWrite.cpp:589
double m_position
Definition: WPSParagraph.h:50
double m_size
font size
Definition: WPSFont.h:85
std::shared_ptr< WPSSubDocument > WPSSubDocumentPtr
shared pointer to WPSSubDocument
Definition: libwps_internal.h:111
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: WPSList.h:99
void setMarginTop(const double marginTop)
Definition: WPSPageSpan.h:138
long length() const
returns the length of the zone
Definition: WPSEntry.h:83
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:109
a structure used to defined the cell position, and a format
Definition: WPSCell.h:290
bool createFormatChildren(XYWriteParserInternal::Format &format, size_t fPos=2)
tries to parse again a format to create a list of child: SS, FA, FM1, ...
Definition: XYWrite.cpp:1688
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
libwps_tools_win::Font::Type getFontType() const
returns the current font type
Definition: XYWrite.cpp:578
void setMarginBottom(const double marginBottom)
Definition: WPSPageSpan.h:142
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: WPSParser.h:65
Definition: WPSPageSpan.h:38
void setHeaderFooter(const HeaderFooterType type, const HeaderFooterOccurrence occurrence, WPSSubDocumentPtr &subDocument)
Definition: WPSPageSpan.cpp:111
void setEnd(long e)
sets the end offset
Definition: WPSEntry.h:67
Internal: class to store a basic cell with borders.
Definition: XYWrite.cpp:48
@ Time
Definition: libwps_internal.h:465
SubDocument(RVNGInputStreamPtr const &input, XYWriteParser &pars, WPSEntry const &entry, std::string const style="")
constructor for a text entry
Definition: XYWrite.cpp:607
void setMax(Vec2< T > const &y)
resets the maximum point
Definition: libwps_internal.h:776
bool sendContent(WPSListenerPtr &) final
call when the content of a cell must be send
Definition: XYWrite.cpp:80
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const final
operator==
Definition: XYWrite.cpp:613
~Cell() final
virtual destructor
Definition: XYWrite.cpp:101
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
Basic class used to store a sub document.
Definition: WPSTextSubDocument.h:35
small structure to keep information about a level
Definition: WPSList.h:40
double m_spacings[3]
the line spacing
Definition: WPSParagraph.h:107
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: WPSPosition.h:39
RVNGInputStreamPtr m_input
Definition: WPSSubDocument.h:65
Vec2< T > size() const
the box size
Definition: libwps_internal.h:754
@ LOWERCASE
Definition: libwps_internal.h:246
std::string m_style
the style
Definition: XYWrite.cpp:627
@ JustificationFull
Definition: libwps_internal.h:249
int m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: WPSParagraph.h:118
@ NoBreakWithNextBit
Definition: libwps_internal.h:252
@ JustificationLeft
Definition: libwps_internal.h:249
@ EVEN
Definition: WPSPageSpan.h:44
the class to store a color
Definition: libwps_internal.h:280
bool parseMetaData(WPSEntry const &entry)
tries to parse the meta data zone
Definition: XYWrite.cpp:1572
XYWriteParser & operator=(const XYWriteParser &)=delete
bool parseFrameZone(XYWriteParserInternal::Format const &frameFormat)
tries to parse a frame
Definition: XYWrite.cpp:1319
double m_labelIndent
the list indent
Definition: WPSList.h:93
Definition: XYWrite.cpp:45
std::shared_ptr< WPSContentListener > createListener(librevenge::RVNGTextInterface *interface)
creates the main listener
Definition: XYWrite.cpp:691
bool parseFormat(XYWriteParserInternal::Format &format)
tries to parse a format: first character 0xae is read
Definition: XYWrite.cpp:1621
State(libwps_tools_win::Font::Type fontType)
constructor
Definition: XYWrite.cpp:567
@ JustificationCenter
Definition: libwps_internal.h:249
void setMarginLeft(const double marginLeft)
Definition: WPSPageSpan.h:130
std::map< int, libwps::NumberingType > m_counterToTypeMap
map counter to type
Definition: XYWrite.cpp:597
WPSColor m_backgroundColor
the background color
Definition: WPSParagraph.h:126
@ JustificationRight
Definition: libwps_internal.h:250
bool checkFilePosition(long pos) const
check if the file position is correct or not
Definition: XYWrite.cpp:677
WPSEntry m_entry
the entry
Definition: XYWrite.cpp:625
void setFormLength(const double formLength)
Definition: WPSPageSpan.h:118
std::string m_style
the cell style
Definition: XYWrite.cpp:99
bool parsePictureZone(XYWriteParserInternal::Format const &pictureFormat)
tries to parse a picture
Definition: XYWrite.cpp:1375
std::vector< WPSTabStop > m_tabs
the tabulations
Definition: WPSParagraph.h:113
std::shared_ptr< WPSContentListener > m_listener
the listener (if set)
Definition: XYWrite.h:95
librevenge::RVNGString m_name
font name
Definition: WPSFont.h:83
@ FOOTNOTE
Definition: WPSContentListener.h:99
static void setStream(RVNGInputStreamPtr)
Definition: WPSDebug.h:212
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: WPSList.h:100
void parse(librevenge::RVNGTextInterface *documentInterface) override
called by WPSDocument to parse the file
Definition: XYWrite.cpp:807
Generated on Sat Apr 4 2020 08:40:32 for libwps by
doxygen 1.8.17