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)
final;
76 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
91 std::shared_ptr<GreatWksBMParserInternal::State>
m_state;
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
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: GreatWksBMParser.cxx:92
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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:237
@ 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:467
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: GreatWksBMParser.cxx:216
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:157
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:132
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
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:137
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:113
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
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:125
Internal: the structures of a GreatWksBMParser.
Definition: GreatWksBMParser.cxx:51
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:561
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:152
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
bool createZones()
finds the different objects zones
Definition: GreatWksBMParser.cxx:143
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
Definition: libmwaw_internal.hxx:144
std::shared_ptr< GreatWksBMParserInternal::State > m_state
the state
Definition: GreatWksBMParser.hxx:91
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
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
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:88
bool sendPicture()
try to send the main picture
Definition: GreatWksBMParser.cxx:168
~GreatWksBMParser() final
destructor
Definition: GreatWksBMParser.cxx:75
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
void init()
inits all internal variables
Definition: GreatWksBMParser.cxx:79
@ Page
Definition: MWAWPosition.hxx:51
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
MWAWEntry m_picture
the picture entry (v2)
Definition: GreatWksBMParser.cxx:61
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksBMParser.cxx:120
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
@ 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:213
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
GreatWksBMParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksBMParser.cxx:69
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20