22 #ifndef WPS8_TEXTSTYLE_H 23 #define WPS8_TEXTSTYLE_H 66 bool readStructures();
70 bool readFontNames(
WPSEntry const &entry);
72 bool readFont(
long endPos,
int &
id, std::string &mess);
74 void sendFont(
int fId,
FontData &data);
77 bool readParagraph(
long endPos,
int &
id, std::string &mess);
79 void sendParagraph(
int pId);
83 bool readSTSH(
WPSEntry const &entry);
94 bool findFDPStructures(
int which, std::vector<WPSEntry> &result);
97 bool findFDPStructuresByHand(
int which, std::vector<WPSEntry> &result);
120 mutable shared_ptr<WPS8TextStyleInternal::State>
m_state;
126 FontData() : m_type(T_None), m_fieldType(F_None), m_fieldFormat(0) {}
130 std::string format()
const;
132 enum { T_None=0, T_Object=2, T_Footnote=3, T_Endnote=4, T_Field=5, T_Comment=6 };
135 enum { F_None=0, F_PageNumber=-1, F_Date=-4, F_Time=-5 };
Definition: WPS8TextStyle.h:50
Definition: WPS8TextStyle.h:124
shared_ptr< WPXInputStream > WPXInputStreamPtr
Definition: libwps_internal.h:74
std::ostream & operator<<(std::ostream &o, FileData const &dt)
operator<< which allows to print for debugging the content of a Data
Definition: WPS8Struct.cpp:109
Definition: WPS8Text.h:53
Definition: WPSDebug.h:198
int m_type
the main type: footnote, ...
Definition: WPS8TextStyle.h:134
int m_fieldType
the field type: pagenumber, data, time, ...
Definition: WPS8TextStyle.h:137
Definition: WPSContentListener.h:168
Definition: WPS8TextStyle.cpp:40
shared_ptr< WPS8ContentListener > WPS8ContentListenerPtr
Definition: WPS8TextStyle.h:36
namespace used to read the structures stored in a WPS8 files
Definition: WPS8Struct.cpp:30
shared_ptr< WPS8ContentListener > WPS8ContentListenerPtr
Definition: WPS8Graph.h:43
WPXInputStreamPtr m_input
the main input
Definition: WPS8TextStyle.h:116
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: WPS8TextStyle.h:101
WPS8Text & m_mainParser
the main parser
Definition: WPS8TextStyle.h:114
void setListener(WPS8ContentListenerPtr &listen)
sets the listener
Definition: WPS8TextStyle.h:60
WPS8ContentListenerPtr m_listener
the listener
Definition: WPS8TextStyle.h:118
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WPS8TextStyle.h:122
int m_fieldFormat
the field format
Definition: WPS8TextStyle.h:139
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:37
shared_ptr< WPS8TextStyleInternal::State > m_state
the internal state
Definition: WPS8TextStyle.h:120
FontData()
Definition: WPS8TextStyle.h:126