22#ifndef WPS8_TEXTSTYLE_H
23#define WPS8_TEXTSTYLE_H
62 bool readFont(
long endPos,
int &
id, std::string &mess);
64 void sendFont(
int fId, FontData &data);
110 mutable std::shared_ptr<WPS8TextStyleInternal::State>
m_state;
123 std::string
format()
const;
bool readFontNames(WPSEntry const &entry)
reads the font names
Definition WPS8TextStyle.cpp:222
void sendFont(int fId, FontData &data)
Definition WPS8TextStyle.cpp:619
bool readStructures()
finds all entries which correspond to the styles, parses them and stores data
Definition WPS8TextStyle.cpp:178
bool readFont(long endPos, int &id, std::string &mess)
reads a font properties
Definition WPS8TextStyle.cpp:357
std::shared_ptr< WPS8TextStyleInternal::State > m_state
the internal state
Definition WPS8TextStyle.h:110
WPS8TextStyle(WPS8TextStyle const &orig)=delete
private copy constructor: forbidden
~WPS8TextStyle()
Definition WPS8TextStyle.cpp:171
WPS8TextStyle(WPS8Text &parser)
Definition WPS8TextStyle.cpp:161
friend class WPS8Text
Definition WPS8TextStyle.h:42
libwps::DebugFile & m_asciiFile
the ascii file
Definition WPS8TextStyle.h:112
RVNGInputStreamPtr m_input
the main input
Definition WPS8TextStyle.h:106
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition WPS8TextStyle.h:91
WPS8Text & m_mainParser
the main parser
Definition WPS8TextStyle.h:104
void sendParagraph(int pId)
Definition WPS8TextStyle.cpp:1052
bool findFDPStructures(int which, std::vector< WPSEntry > &result)
finds the FDPC/FDPP structure using the BTEC/BTEP entries which == 0 means FDPP, 1 means FDPC
Definition WPS8TextStyle.cpp:1207
WPS8TextStyle & operator=(WPS8TextStyle const &orig)=delete
private copy operator: forbidden
void setListener(WPSContentListenerPtr &listen)
sets the listener
Definition WPS8TextStyle.h:50
bool readSGP(WPSEntry const &entry)
parses a SGP zone: style general property ?
Definition WPS8TextStyle.cpp:305
bool readParagraph(long endPos, int &id, std::string &mess)
the paragraph
Definition WPS8TextStyle.cpp:636
bool findFDPStructuresByHand(int which, std::vector< WPSEntry > &result)
finds the FDPC/FDPP structure by searching after the text zone which == 0 means FDPP,...
Definition WPS8TextStyle.cpp:1284
bool readSTSH(WPSEntry const &entry)
reads a style sheet zone
Definition WPS8TextStyle.cpp:1067
WPSContentListenerPtr m_listener
the listener
Definition WPS8TextStyle.h:108
basic class to store an entry in a file This contained :
Definition WPSEntry.h:39
Definition WPSDebug.h:208
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
std::shared_ptr< WPSContentListener > WPSContentListenerPtr
shared pointer to WPSContentListener
Definition libwps_internal.h:107
Definition WPS8TextStyle.cpp:43
Internal: the state of a WPS4Text.
Definition WPS8TextStyle.cpp:95
Definition WPS8TextStyle.h:115
FontData()
Definition WPS8TextStyle.h:116
@ F_PageNumber
Definition WPS8TextStyle.h:128
@ F_None
Definition WPS8TextStyle.h:128
@ F_Date
Definition WPS8TextStyle.h:128
@ F_Time
Definition WPS8TextStyle.h:128
int m_fieldFormat
the field format
Definition WPS8TextStyle.h:132
std::string format() const
returns a format to used with strftime
Definition WPS8TextStyle.cpp:1351
int m_fieldType
the field type: pagenumber, data, time, ...
Definition WPS8TextStyle.h:130
@ T_None
Definition WPS8TextStyle.h:125
@ T_Footnote
Definition WPS8TextStyle.h:125
@ T_Object
Definition WPS8TextStyle.h:125
@ T_Field
Definition WPS8TextStyle.h:125
@ T_Comment
Definition WPS8TextStyle.h:125
@ T_Endnote
Definition WPS8TextStyle.h:125
int m_type
the main type: footnote, ...
Definition WPS8TextStyle.h:127
friend std::ostream & operator<<(std::ostream &o, FontData const &fData)
operator <<
Definition WPS8TextStyle.cpp:1305