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 };
79 friend std::ostream &
operator<<(std::ostream &o,
PLC const &plc);
108 int numPages()
const;
119 return m_parserState;
126 bool sendText(
MWAWEntry const &textEntry,
bool mainZone,
bool tableCell=
false);
128 bool sendSection(
int sectionId);
130 bool readHeaderTextLength();
133 bool createZones(
long bot);
145 bool readFields(
MsWrdEntry &entry, std::vector<long>
const &fieldPos);
148 bool sendFieldComment(
int id);
151 bool readFootnotesPos(
MsWrdEntry &entry, std::vector<long>
const ¬eDef);
157 bool sendFootnote(
int id);
171 long getMainTextLength()
const;
173 std::multimap<long, MsWrdText::PLC> &getTextPLCMap();
175 std::multimap<long, MsWrdText::PLC> &getFilePLCMap();
187 void convertFilePLCPos();
189 void prepareParagraphProperties();
191 void prepareFontProperties();
194 void prepareTableLimits();
196 bool updateTableBeginnningAt(
long cPos,
long &nextCPos);
199 bool readLongZone(
MsWrdEntry &entry,
int sz, std::vector<long> &list);
213 std::shared_ptr<MsWrdTextInternal::State>
m_state;
std::string m_extra
some extra data
Definition: MsWrdText.hxx:96
std::shared_ptr< MsWrdTextStyles > m_stylesManager
the style manager
Definition: MsWrdText.hxx:216
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: BeagleWksDRParser.cxx:107
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:290
Type
Definition: MsWrdText.hxx:71
bool operator()(PLC const &s1, PLC const &s2) const
Definition: MsWrdText.hxx:82
int m_id
the identificator
Definition: MsWrdText.hxx:94
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWrdText.hxx:210
the main class to read a Microsoft Word file
Definition: MsWrdParser.hxx:97
Type m_type
the plc type
Definition: MsWrdText.hxx:92
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:219
a comparaison structure
Definition: MsWrdText.hxx:81
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
std::shared_ptr< MWAWParserState > & getParserState()
returns the parser state
Definition: MsWrdText.hxx:117
std::shared_ptr< MsWrdTextInternal::State > m_state
the state
Definition: MsWrdText.hxx:213
PLC(Type type, int id=0)
Definition: MsWrdText.hxx:72
MWAWHeader * getHeader(MWAWInputStreamPtr &input, MWAWRSRCParserPtr const &rsrcParser, bool strict)
return the header corresponding to an input.
Definition: MWAWDocument.cxx:438