Go to the documentation of this file.
34 #ifndef DOC_MKR_PARSER
35 # define DOC_MKR_PARSER
40 #include <librevenge/librevenge.h>
bool readPictInfo(MWAWEntry const &entry)
try to read a pict info zone ? ( resource pInf )
Definition: DocMkrParser.cxx:489
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:565
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
int m_sndId
the sound id
Definition: DocMkrParser.cxx:79
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
int m_majorVersion
the major number
Definition: MWAWRSRCParser.hxx:146
a public structure used to return the version
Definition: MWAWRSRCParser.hxx:133
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: DocMkrParser.cxx:240
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: DocMkrParser.cxx:264
std::map< int, PictInfo > m_idPictInfoMap
a map id->pictInfo
Definition: DocMkrParser.cxx:180
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:236
int m_action
the action
Definition: DocMkrParser.cxx:87
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:120
int m_align
the alignment ( 1:center, ... )
Definition: DocMkrParser.cxx:81
bool m_print
true if the picture is printed
Definition: DocMkrParser.cxx:83
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:64
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: DocMkrParser.cxx:235
void findPictInfoUnit(int nZones)
try to find the picture info unit (fixme: a hack)
Definition: DocMkrParser.cxx:189
Internal: store a picture information in DocMkrParser.
Definition: DocMkrParser.cxx:60
std::string m_actionString
the action string
Definition: DocMkrParser.cxx:89
Internal: the state of a DocMkrParser.
Definition: DocMkrParser.cxx:158
int id() const
returns the id
Definition: MWAWEntry.hxx:163
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
int version() const
returns the works version
Definition: MWAWParser.hxx:108
bool m_invert
true if we must invert the picture
Definition: DocMkrParser.cxx:85
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
int m_headerHeight
the header height if known
Definition: DocMkrParser.cxx:185
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:125
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
@ MWAW_T_DOCMAKER
DocMaker (v4)
Definition: MWAWDocument.hxx:107
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
~DocMkrParser() final
destructor
Definition: DocMkrParser.cxx:222
const std::string & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:136
@ XCenter
Definition: MWAWPosition.hxx:55
std::ostream & operator<<(std::ostream &o, PictInfo const &info)
Definition: DocMkrParser.cxx:98
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
the main class to read a DocMake file
Definition: DocMkrParser.hxx:56
int m_numPages
the number of page of the final document
Definition: DocMkrParser.cxx:183
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::string m_extra
extra data
Definition: DocMkrParser.cxx:95
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
std::shared_ptr< DocMkrText > m_textParser
the text parser
Definition: DocMkrParser.hxx:114
friend std::ostream & operator<<(std::ostream &o, PictInfo const &info)
operator<<
Definition: DocMkrParser.cxx:98
void init()
inits all internal variables
Definition: DocMkrParser.cxx:226
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:277
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
@ PageBreak
Definition: MWAWListener.hxx:58
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
Definition: libmwaw_internal.hxx:143
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
PictInfo()
constructor
Definition: DocMkrParser.cxx:62
int m_footerHeight
the footer height if known
Definition: DocMkrParser.cxx:186
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
bool createZones()
finds the different objects zones
Definition: DocMkrParser.cxx:322
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: DocMkrParser.cxx:414
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
std::shared_ptr< DocMkrParserInternal::State > m_state
the state
Definition: DocMkrParser.hxx:111
State()
constructor
Definition: DocMkrParser.cxx:160
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
int pictInfoId(int zId, int lId) const
return a pictinfo id corresponding to a zone and a local if
Definition: DocMkrParser.cxx:171
int m_next[2]
the next chapter/paragraph position for goChapter
Definition: DocMkrParser.cxx:91
bool sendPicture(int zId, int lId, double lineW)
try to send a picture knowing zId and local id
Definition: DocMkrParser.cxx:430
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:98
bool readXtr2(MWAWEntry const &entry)
try to read an unknown zone ( resource xtr2 )
Definition: DocMkrParser.cxx:653
bool readSTwD(MWAWEntry const &entry)
try to read an unknown zone ( resource sTwD )
Definition: DocMkrParser.cxx:616
@ XRight
Definition: MWAWPosition.hxx:55
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1065
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Internal: the structures of a DocMkrParser.
Definition: DocMkrParser.cxx:56
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
int m_zonePictInfoUnit
the zone unit to retrieve pictInfo
Definition: DocMkrParser.cxx:182
@ WRunThrough
Definition: MWAWPosition.hxx:53
int m_actPage
the actual page
Definition: DocMkrParser.cxx:183
the main class to read the text part of DocMaker file
Definition: DocMkrText.hxx:59
@ XLeft
Definition: MWAWPosition.hxx:55
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
@ Paragraph
Definition: MWAWPosition.hxx:51
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: DocMkrParser.cxx:689
Definition: MWAWDocument.hxx:56
std::map< int, MWAWEntry > m_idPictEntryMap
a map id->pictEntry
Definition: DocMkrParser.cxx:178
std::string m_appleScript[3]
the applescript type
Definition: DocMkrParser.cxx:93
DocMkrParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: DocMkrParser.cxx:214
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
friend class DocMkrText
Definition: DocMkrParser.hxx:58
int m_id
the picture id
Definition: DocMkrParser.cxx:77
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
void newPage(int number)
adds a new page
Definition: DocMkrParser.cxx:248
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: DocMkrParser.cxx:294
Generated on Fri Mar 25 2022 14:05:53 for libmwaw by
doxygen 1.8.17