Go to the documentation of this file.
34 #ifndef GREAT_WKS_BM_PARSER
35 # define GREAT_WKS_BM_PARSER
40 #include <librevenge/librevenge.h>
69 void parse(librevenge::RVNGDrawingInterface *documentInterface);
76 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
91 shared_ptr<GreatWksBMParserInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: GreatWksBMParser.cxx:91
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: GreatWksBMParser.cxx:215
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
State()
constructor
Definition: GreatWksBMParser.cxx:56
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
@ MWAW_T_GREATWORKS
GreatWorks (v1-v2): export text, drawing, paint and spreadsheet document.
Definition: MWAWDocument.hxx:116
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
GreatWksBMParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksBMParser.cxx:68
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:151
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:126
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
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
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:131
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
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
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:113
Internal: the structures of a GreatWksBMParser.
Definition: GreatWksBMParser.cxx:51
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:146
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
bool createZones()
finds the different objects zones
Definition: GreatWksBMParser.cxx:142
shared_ptr< GreatWksBMParserInternal::State > m_state
the state
Definition: GreatWksBMParser.hxx:91
@ MWAW_R_BAD
Definition: MWAWPict.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
virtual ~GreatWksBMParser()
destructor
Definition: GreatWksBMParser.cxx:74
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
Internal: the state of a GreatWksBMParser.
Definition: GreatWksBMParser.cxx:54
the main class to read a GreatWorks paint file
Definition: GreatWksBMParser.hxx:58
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 sendPicture()
try to send the main picture
Definition: GreatWksBMParser.cxx:167
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
void init()
inits all internal variables
Definition: GreatWksBMParser.cxx:78
@ Page
Definition: MWAWPosition.hxx:51
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
MWAWEntry m_picture
the picture entry (v2)
Definition: GreatWksBMParser.cxx:60
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksBMParser.cxx:119
@ WNone
Definition: MWAWPosition.hxx:53
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:118
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18