Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: EDocParser.cxx:206
bool push(unsigned char c)
push a new character
Definition: EDocParser.cxx:699
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
~EDocParser() final
destructor
Definition: EDocParser.cxx:135
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
the main class to read a eDOC file
Definition: EDocParser.hxx:55
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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:154
DeflateStruct(long size, long initSize)
constructor
Definition: EDocParser.cxx:683
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: EDocParser.cxx:149
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
std::map< int, MWAWEntry > m_idCPICMap
a map id -> cPIC zone
Definition: EDocParser.cxx:112
@ boldBit
Definition: MWAWFont.hxx:190
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:681
int id() const
returns the id
Definition: MWAWEntry.hxx:164
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
int version() const
returns the works version
Definition: MWAWParser.hxx:108
EDocParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: EDocParser.cxx:128
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: EDocParser.cxx:178
Internal: an index of a EDocParser.
Definition: EDocParser.cxx:63
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
bool sendDuplicated(int num, int depl)
send a duplicated part of the data
Definition: EDocParser.cxx:748
@ MWAW_T_EDOC
eDOC (v2)
Definition: MWAWDocument.hxx:108
State()
constructor
Definition: EDocParser.cxx:95
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
Internal: the state of a EDocParser.
Definition: EDocParser.cxx:93
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:148
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:84
std::vector< Index > m_indexList
the index list
Definition: EDocParser.cxx:116
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::vector< unsigned char > m_data
the resulting data
Definition: EDocParser.cxx:733
int m_maxPictId
the maximum of picture to read
Definition: EDocParser.cxx:110
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
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:193
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
bool findContents()
try to find the content zone
Definition: EDocParser.cxx:293
bool readInfo(MWAWEntry const &entry)
parse the Info zone
Definition: EDocParser.cxx:597
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::string m_extra
extra data
Definition: EDocParser.cxx:88
int m_actPage
the actual page
Definition: EDocParser.cxx:117
bool m_compressed
a flag to know if the data are compressed or not
Definition: EDocParser.cxx:108
DeflateStruct(DeflateStruct const &orig)=delete
long m_toWrite
the number of data that we need to write
Definition: EDocParser.cxx:731
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
std::map< int, MWAWEntry > m_idPICTMap
a map id -> PICT zone
Definition: EDocParser.cxx:114
@ PageBreak
Definition: MWAWListener.hxx:58
bool decodeZone(MWAWEntry const &entry, librevenge::RVNGBinaryData &dt)
try to decode a compress zone
Definition: EDocParser.cxx:799
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: EDocParser.cxx:390
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
Definition: libmwaw_internal.hxx:144
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
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:736
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
size_t m_circQueuePos
the position in the circular queue
Definition: EDocParser.cxx:738
@ Char
Definition: MWAWPosition.hxx:51
bool createZones()
finds the different objects zones
Definition: EDocParser.cxx:239
friend class EDText
Definition: EDocParser.hxx:56
int m_headerHeight
the header height if known
Definition: EDocParser.cxx:119
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
std::shared_ptr< EDocParserInternal::State > m_state
the state
Definition: EDocParser.hxx:121
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
bool getBinaryData(librevenge::RVNGBinaryData &dt) const
return the content of the block in dt
Definition: EDocParser.cxx:721
void init()
inits all internal variables
Definition: EDocParser.cxx:139
DeflateStruct & operator=(DeflateStruct const &orig)=delete
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
int m_levelId
the font id
Definition: EDocParser.cxx:82
int m_numDelayed
the number of character delayed
Definition: EDocParser.cxx:740
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool sendPicture(int pictId, bool compressed)
try to send a picture
Definition: EDocParser.cxx:344
bool sendIndex()
try to send the index
Definition: EDocParser.cxx:468
Defines MWAWTextListener: the libmwaw word processor listener.
void newPage(int number)
adds a new page
Definition: EDocParser.cxx:162
bool sendContents()
try to send the contents
Definition: EDocParser.cxx:329
bool treatDelayed(unsigned char c)
check if there is delayed char, if so treat them
Definition: EDocParser.cxx:761
unsigned char m_delayedChar
the delayed character
Definition: EDocParser.cxx:742
friend std::ostream & operator<<(std::ostream &o, Index const &index)
operator<<
Definition: EDocParser.cxx:73
int m_footerHeight
the footer height if known
Definition: EDocParser.cxx:120
bool isEnd() const
true if we have build of the data
Definition: EDocParser.cxx:694
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:99
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
int m_page
the page number
Definition: EDocParser.cxx:86
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
Definition: MWAWDocument.hxx:57
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
@ 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:512
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
bool readFontsName(MWAWEntry const &entry)
parse the fonts name eDcF
Definition: EDocParser.cxx:414
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
int m_numPages
the number of page of the final document
Definition: EDocParser.cxx:117
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: EDocParser.cxx:970
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20