39 # define MSW_MWAW_TEXT
56 namespace MSWTextInternal
74 enum Type {
TextPosition,
HeaderFooter,
Page,
Section,
ParagraphInfo,
Paragraph,
Font,
Footnote,
FootnoteDef,
Field,
Object };
78 friend std::ostream &
operator<<(std::ostream &o,
PLC const &plc);
MSWText & operator=(MSWText const &orig)
MSWParser * m_mainParser
the main parser;
Definition: MSWText.hxx:206
a comparaison structure
Definition: MSWText.hxx:80
bool readFields(MSWEntry &entry, std::vector< long > const &fieldPos)
read the field data
Definition: MSWText.cxx:932
Definition: MSWText.hxx:74
shared_ptr< MWAWParserState > MWAWParserStatePtr
Definition: ACText.hxx:49
bool sendTable(MSWTextInternal::Property const &prop)
try to send a table.
Definition: MSWText.cxx:1723
the main class to read/store the text font, paragraph, section stylesread
Definition: MSWTextStyles.hxx:69
bool sendMainText()
send a main zone
Definition: MSWText.cxx:1805
bool readParagraphInfo(MSWEntry entry)
read the paragraph height info
Definition: MSWText.cxx:705
MWAWEntry getFooter() const
returns the footer entry
Definition: MSWText.cxx:347
shared_ptr< MSWTextInternal::State > m_state
the state
Definition: MSWText.hxx:200
Definition: MSWText.hxx:74
bool operator()(PLC const &s1, PLC const &s2) const
Definition: MSWText.hxx:81
the main class to read a Microsoft Word file
Definition: MSWParser.hxx:88
Definition: MSWText.hxx:74
void prepareTables()
prepare the table to be send
Definition: MSWText.cxx:1444
bool readTextStruct(MSWEntry &entry)
read the text structure(some paragraph style+some text position?)
Definition: MSWText.cxx:551
the entry of MSWParser
Definition: MSWParser.hxx:63
Internal: a list of plc.
Definition: MSWText.cxx:215
int m_id
the identificator
Definition: MSWText.hxx:92
Definition: MSWText.hxx:74
bool readFontNames(MSWEntry &entry)
read the font names
Definition: MSWText.cxx:644
bool readPageBreak(MSWEntry &entry)
read the page limit ?
Definition: MSWText.cxx:770
long getMainTextLength() const
returns the main text length
Definition: MSWText.cxx:335
the main class to read the text part of Microsoft Word file
Definition: MSWText.hxx:67
bool sendFieldComment(int id)
send a field note to a listener
Definition: MSWText.cxx:1832
bool readFootnotesData(MSWEntry &entry)
read the footnote data
Definition: MSWText.cxx:884
std::multimap< long, MSWText::PLC > & getFilePLCMap()
returns the file correspondance zone ( filepos, plc )
Definition: MSWText.cxx:359
Definition: MSWText.hxx:74
int version() const
returns the file version
Definition: MSWText.cxx:322
bool readFootnotesPos(MSWEntry &entry, std::vector< long > const ¬eDef)
read the footnote pos in text + val
Definition: MSWText.cxx:824
PLC(Type type, int id=0)
Definition: MSWText.hxx:75
void prepareData()
prepare the data to be send
Definition: MSWText.cxx:1129
std::string m_extra
some extra data
Definition: MSWText.hxx:94
MSWText(MSWParser &parser)
constructor
Definition: MSWText.cxx:312
bool readHeaderTextLength()
reads the three different zone size
Definition: MSWText.cxx:413
Definition: MSWText.hxx:74
a class to define the parser state
Definition: MWAWParser.hxx:60
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: MSWText.cxx:368
int numPages() const
returns the number of pages
Definition: MSWText.cxx:329
bool sendText(MWAWEntry const &textEntry, bool mainZone, bool tableCell=false)
send a text zone
Definition: MSWText.cxx:1513
Type m_type
the plc type
Definition: MSWText.hxx:90
Definition: MSWText.hxx:74
bool readLongZone(MSWEntry &entry, int sz, std::vector< long > &list)
read a zone which consists in a list of int
Definition: MSWText.cxx:1020
bool sendFootnote(int id)
send a note to a listener
Definition: MSWText.cxx:1814
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MSWText.cxx:1852
Internal: the plc.
Definition: MSWText.hxx:73
shared_ptr< MSWTextStyles > m_stylesManager
the style manager
Definition: MSWText.hxx:203
Type
Definition: MSWText.hxx:74
std::multimap< long, MSWText::PLC > & getTextPLCMap()
returns the text correspondance zone ( textpos, plc )
Definition: MSWText.cxx:354
Definition: MSWText.hxx:74
shared_ptr< MWAWParserState > & getParserState()
returns the parser state
Definition: MSWText.hxx:115
Definition: MSWText.hxx:74
bool createZones(long bot)
finds the different zones
Definition: MSWText.cxx:440
Definition: MSWText.hxx:74
Definition: MSWText.hxx:74
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
MWAWEntry getHeader() const
returns the header entry
Definition: MSWText.cxx:340
MWAWParserStatePtr m_parserState
the parser state
Definition: MSWText.hxx:197
virtual ~MSWText()
destructor
Definition: MSWText.cxx:319
bool findParaPosAndStyles(std::map< long, int > &posStyleMap)
update the list of beginning cPos of each paragraph, cell, and each id...
Definition: MSWText.cxx:1057