38 #ifndef MS_WRD_MWAW_TEXT 39 # define MS_WRD_MWAW_TEXT 71 enum Type { TextPosition, HeaderFooter, Page, Section, ParagraphInfo, Paragraph, Font, Footnote, FootnoteDef, Field, Object };
72 PLC(
Type type,
int id=0) : m_type(type), m_id(id), m_extra(
"")
76 friend std::ostream &
operator<<(std::ostream &o,
PLC const &plc);
105 int numPages()
const;
116 return m_parserState;
123 bool sendText(
MWAWEntry const &textEntry,
bool mainZone,
bool tableCell=
false);
125 bool sendSection(
int sectionId);
127 bool readHeaderTextLength();
130 bool createZones(
long bot);
142 bool readFields(
MsWrdEntry &entry, std::vector<long>
const &fieldPos);
145 bool sendFieldComment(
int id);
148 bool readFootnotesPos(
MsWrdEntry &entry, std::vector<long>
const ¬eDef);
154 bool sendFootnote(
int id);
168 long getMainTextLength()
const;
170 std::multimap<long, MsWrdText::PLC> &getTextPLCMap();
172 std::multimap<long, MsWrdText::PLC> &getFilePLCMap();
184 void convertFilePLCPos();
186 void prepareParagraphProperties();
188 void prepareFontProperties();
191 void prepareTableLimits();
193 bool updateTableBeginnningAt(
long cPos,
long &nextCPos);
196 bool readLongZone(
MsWrdEntry &entry,
int sz, std::vector<long> &list);
std::string m_extra
some extra data
Definition: MsWrdText.hxx:93
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: BeagleWksDRParser.cxx:98
shared_ptr< MWAWParserState > & getParserState()
returns the parser state
Definition: MsWrdText.hxx:114
the entry of MsWrdParser
Definition: MsWrdParser.hxx:63
Internal: the plc.
Definition: MsWrdText.hxx:70
Internal and low level: a structure to store a table of a MsWrdText.
Definition: MsWrdText.cxx:265
Type
Definition: MsWrdText.hxx:71
shared_ptr< MsWrdTextInternal::State > m_state
the state
Definition: MsWrdText.hxx:210
int m_id
the identificator
Definition: MsWrdText.hxx:91
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWrdText.hxx:207
bool operator()(PLC const &s1, PLC const &s2) const
Definition: MsWrdText.hxx:79
the main class to read a Microsoft Word file
Definition: MsWrdParser.hxx:91
Type m_type
the plc type
Definition: MsWrdText.hxx:89
Internal: the structures of a MsWrdText.
Definition: MsWrdText.cxx:69
the main class to read the text part of Microsoft Word file
Definition: MsWrdText.hxx:64
the main class to read/store the text font, paragraph, section stylesread
Definition: MsWrdTextStyles.hxx:66
MsWrdParser * m_mainParser
the main parser;
Definition: MsWrdText.hxx:216
a comparaison structure
Definition: MsWrdText.hxx:78
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:495
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
MWAWHeader * getHeader(MWAWInputStreamPtr &input, MWAWRSRCParserPtr rsrcParser, bool strict)
return the header corresponding to an input.
Definition: MWAWDocument.cxx:425
shared_ptr< MsWrdTextStyles > m_stylesManager
the style manager
Definition: MsWrdText.hxx:213
PLC(Type type, int id=0)
Definition: MsWrdText.hxx:72