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 };
76 friend std::ostream &
operator<<(std::ostream &o,
PLC const &plc);
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
the main class to read a Microsoft Word file
Definition: MsWrdParser.hxx:95
the main class to read/store the text font, paragraph, section stylesread
Definition: MsWrdTextStyles.hxx:67
the main class to read the text part of Microsoft Word file
Definition: MsWrdText.hxx:65
bool sendTable(MsWrdTextInternal::Table const &table)
try to send a table.
Definition: MsWrdText.cxx:2071
MsWrdText & operator=(MsWrdText const &orig)
bool sendSection(int sectionId)
try to open a section
Definition: MsWrdText.cxx:2055
MsWrdText(MsWrdText const &orig)
shared_ptr< MsWrdTextStyles > m_stylesManager
the style manager
Definition: MsWrdText.hxx:213
void prepareLines()
cut the text in line/cell pos
Definition: MsWrdText.cxx:1223
MsWrdText(MsWrdParser &parser)
constructor
Definition: MsWrdText.cxx:416
virtual ~MsWrdText()
destructor
Definition: MsWrdText.cxx:423
shared_ptr< MsWrdTextInternal::State > m_state
the state
Definition: MsWrdText.hxx:210
bool readFontNames(MsWrdEntry &entry)
read the font names
Definition: MsWrdText.cxx:793
int version() const
returns the file version
Definition: MsWrdText.cxx:426
bool readFields(MsWrdEntry &entry, std::vector< long > const &fieldPos)
read the field data
Definition: MsWrdText.cxx:1093
void prepareTableLimits()
find the table end position knowing the end cell/pos delimiter
Definition: MsWrdText.cxx:1565
bool sendFootnote(int id)
send a note to a listener
Definition: MsWrdText.cxx:2146
bool readParagraphInfo(MsWrdEntry &entry)
read the paragraph height info
Definition: MsWrdText.cxx:854
bool readHeaderTextLength()
reads the three different zone size
Definition: MsWrdText.cxx:551
long getMainTextLength() const
returns the main text length
Definition: MsWrdText.cxx:439
shared_ptr< MWAWParserState > & getParserState()
returns the parser state
Definition: MsWrdText.hxx:114
void prepareParagraphProperties()
retrieve the paragraph properties
Definition: MsWrdText.cxx:1384
bool readTextStruct(MsWrdEntry &entry)
read the text structure(some paragraph style+some text position?)
Definition: MsWrdText.cxx:693
std::multimap< long, MsWrdText::PLC > & getFilePLCMap()
returns the file correspondance zone ( filepos, plc )
Definition: MsWrdText.cxx:495
bool sendText(MWAWEntry const &textEntry, bool mainZone, bool tableCell=false)
send a text zone
Definition: MsWrdText.cxx:1845
bool readLongZone(MsWrdEntry &entry, int sz, std::vector< long > &list)
read a zone which consists in a list of int
Definition: MsWrdText.cxx:1185
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MsWrdText.cxx:2184
int numPages() const
returns the number of pages
Definition: MsWrdText.cxx:433
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWrdText.hxx:207
void convertFilePLCPos()
convert the file position in character position and compute the paragraph limit
Definition: MsWrdText.cxx:1263
bool readFootnotesPos(MsWrdEntry &entry, std::vector< long > const ¬eDef)
read the footnote pos in text + val
Definition: MsWrdText.cxx:983
MWAWEntry getHeader() const
returns the header entry
Definition: MsWrdText.cxx:444
bool readFootnotesData(MsWrdEntry &entry)
read the footnote data
Definition: MsWrdText.cxx:1045
MsWrdParser * m_mainParser
the main parser;
Definition: MsWrdText.hxx:216
MWAWEntry getFooter() const
returns the footer entry
Definition: MsWrdText.cxx:467
std::multimap< long, MsWrdText::PLC > & getTextPLCMap()
returns the text correspondance zone ( textpos, plc )
Definition: MsWrdText.cxx:490
bool sendFieldComment(int id)
send a field note to a listener
Definition: MsWrdText.cxx:2164
void prepareData()
prepare the data to be send
Definition: MsWrdText.cxx:1690
bool sendMainText()
send a main zone
Definition: MsWrdText.cxx:2137
bool updateTableBeginnningAt(long cPos, long &nextCPos)
try to find a table which begin at position cPos, if so, update its data...
Definition: MsWrdText.cxx:1667
void prepareFontProperties()
retrieve the font properties
Definition: MsWrdText.cxx:1479
bool readPageBreak(MsWrdEntry &entry)
read the page limit ?
Definition: MsWrdText.cxx:920
bool createZones(long bot)
finds the different zones
Definition: MsWrdText.cxx:581
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
Internal: the structures of a MsWrdText.
Definition: MsWrdText.cxx:70
the entry of MsWrdParser
Definition: MsWrdParser.hxx:63
Internal and low level: a structure to store a table of a MsWrdText.
Definition: MsWrdText.cxx:262
a comparaison structure
Definition: MsWrdText.hxx:78
bool operator()(PLC const &s1, PLC const &s2) const
Definition: MsWrdText.hxx:79
Internal: the plc.
Definition: MsWrdText.hxx:70
Type
Definition: MsWrdText.hxx:71
@ FootnoteDef
Definition: MsWrdText.hxx:71
@ ParagraphInfo
Definition: MsWrdText.hxx:71
@ Paragraph
Definition: MsWrdText.hxx:71
@ TextPosition
Definition: MsWrdText.hxx:71
@ Object
Definition: MsWrdText.hxx:71
@ HeaderFooter
Definition: MsWrdText.hxx:71
@ Font
Definition: MsWrdText.hxx:71
@ Page
Definition: MsWrdText.hxx:71
@ Section
Definition: MsWrdText.hxx:71
@ Field
Definition: MsWrdText.hxx:71
@ Footnote
Definition: MsWrdText.hxx:71
Type m_type
the plc type
Definition: MsWrdText.hxx:89
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: MsWrdText.cxx:504
int m_id
the identificator
Definition: MsWrdText.hxx:91
std::string m_extra
some extra data
Definition: MsWrdText.hxx:93
PLC(Type type, int id=0)
Definition: MsWrdText.hxx:72