Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
67 void parse(librevenge::RVNGTextInterface *documentInterface);
74 void createDocument(librevenge::RVNGTextInterface *documentInterface);
121 shared_ptr<EDocParserInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: EDocParser.cxx:193
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
bool push(unsigned char c)
push a new character
Definition: EDocParser.cxx:685
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
the main class to read a eDOC file
Definition: EDocParser.hxx:55
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: EDocParser.cxx:141
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: EDocParser.cxx:136
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:110
std::map< int, MWAWEntry > m_idCPICMap
a map id -> cPIC zone
Definition: EDocParser.cxx:100
@ boldBit
Definition: MWAWFont.hxx:182
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
very low structure to help uncompress data
Definition: EDocParser.cxx:673
int id() const
returns the id
Definition: MWAWEntry.hxx:153
DeflateStruct(long size)
constructor
Definition: EDocParser.cxx:675
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
int version() const
returns the works version
Definition: MWAWParser.hxx:108
Internal: an index of a EDocParser.
Definition: EDocParser.cxx:63
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
shared_ptr< EDocParserInternal::State > m_state
the state
Definition: EDocParser.hxx:121
size_t m_dataPos
the actual pos in m_data
Definition: EDocParser.cxx:720
bool sendDuplicated(int num, int depl)
send a duplicated part of the data
Definition: EDocParser.cxx:735
@ MWAW_T_EDOC
eDOC (v2)
Definition: MWAWDocument.hxx:108
State()
constructor
Definition: EDocParser.cxx:91
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
Internal: the state of a EDocParser.
Definition: EDocParser.cxx:89
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
std::string m_text
the text
Definition: EDocParser.cxx:80
std::vector< Index > m_indexList
the index list
Definition: EDocParser.cxx:104
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
std::vector< unsigned char > m_data
the resulting data
Definition: EDocParser.cxx:718
int m_maxPictId
the maximum of picture to read
Definition: EDocParser.cxx:98
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:197
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
bool findContents()
try to find the content zone
Definition: EDocParser.cxx:281
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: EDocParser.cxx:952
bool readInfo(MWAWEntry const &entry)
parse the Info zone
Definition: EDocParser.cxx:589
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: EDocParser.cxx:165
std::string m_extra
extra data
Definition: EDocParser.cxx:84
int m_actPage
the actual page
Definition: EDocParser.cxx:105
bool m_compressed
a flag to know if the data are compressed or not
Definition: EDocParser.cxx:96
virtual ~EDocParser()
destructor
Definition: EDocParser.cxx:122
long m_toWrite
the number of data that we need to write
Definition: EDocParser.cxx:716
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
std::map< int, MWAWEntry > m_idPICTMap
a map id -> PICT zone
Definition: EDocParser.cxx:102
@ PageBreak
Definition: MWAWListener.hxx:58
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &dt)
try to decode a compress zone
Definition: EDocParser.cxx:783
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: EDocParser.cxx:379
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
Definition: libmwaw_internal.hxx:142
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Internal: the structures of a EDocParser.
Definition: EDocParser.cxx:60
std::vector< unsigned char > m_circQueue
a circular queue
Definition: EDocParser.cxx:723
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
size_t m_circQueuePos
the position in the circular queue
Definition: EDocParser.cxx:725
@ Char
Definition: MWAWPosition.hxx:51
bool createZones()
finds the different objects zones
Definition: EDocParser.cxx:226
friend class EDText
Definition: EDocParser.hxx:56
int m_headerHeight
the header height if known
Definition: EDocParser.cxx:107
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
bool getBinaryData(librevenge::RVNGBinaryData &dt) const
return the content of the block in dt
Definition: EDocParser.cxx:706
void init()
inits all internal variables
Definition: EDocParser.cxx:126
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
int m_levelId
the font id
Definition: EDocParser.cxx:78
int m_numDelayed
the number of character delayed
Definition: EDocParser.cxx:727
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool sendPicture(int pictId, bool compressed)
try to send a picture
Definition: EDocParser.cxx:333
bool sendIndex()
try to send the index
Definition: EDocParser.cxx:459
void newPage(int number)
adds a new page
Definition: EDocParser.cxx:149
EDocParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: EDocParser.cxx:116
bool sendContents()
try to send the contents
Definition: EDocParser.cxx:318
bool treatDelayed(unsigned char c)
check if there is delayed char, if so treat them
Definition: EDocParser.cxx:748
unsigned char m_delayedChar
the delayed character
Definition: EDocParser.cxx:729
friend std::ostream & operator<<(std::ostream &o, Index const &index)
operator<<
Definition: EDocParser.cxx:69
int m_footerHeight
the footer height if known
Definition: EDocParser.cxx:108
bool isEnd() const
true if we have build of the data
Definition: EDocParser.cxx:680
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
DeflateStruct & operator=(DeflateStruct const &orig)
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
int m_page
the page number
Definition: EDocParser.cxx:82
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
bool readIndex(MWAWEntry const &entry)
parse the index zone
Definition: EDocParser.cxx:504
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Index()
constructor
Definition: EDocParser.cxx:65
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
bool readFontsName(MWAWEntry const &entry)
parse the fonts name eDcF
Definition: EDocParser.cxx:405
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
int m_numPages
the number of page of the final document
Definition: EDocParser.cxx:105
DeflateStruct(DeflateStruct const &orig)
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18