Go to the documentation of this file.
34 #ifndef CANVAS5_BM_PARSER
35 # define CANVAS5_BM_PARSER
43 #include <librevenge/librevenge.h>
the main class to read/convert the image or movie inside of Canvas 5-11 files
Definition: Canvas5Image.hxx:78
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool createZones()
finds the different objects zones
Definition: Canvas5BMParser.cxx:188
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
bool isWindowsFile() const
returns true if the file is a windows file
Definition: Canvas5BMParser.cxx:116
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
Internal: the structures of a Canvas5BMParser.
Definition: Canvas5BMParser.cxx:71
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWVec2i m_dimension
the image dimension
Definition: Canvas5BMParser.cxx:90
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
@ MWAW_T_CANVAS
Deneba Canvas mac: v2-v3 and v5-v8, windows: v3 and v5-v6 and probably v7-v8 ADC Canvas mac: v9-v10,...
Definition: MWAWDocument.hxx:229
the main class to read a mac Canvas 5/6 bitmap file: .cvi
Definition: Canvas5BMParser.hxx:72
bool m_isWindowsFile
true if this is a windows file
Definition: Canvas5BMParser.cxx:86
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
int version() const
returns the works version
Definition: MWAWParser.hxx:108
the main class to read the graphic part of Canvas v5-v11 file
Definition: Canvas5Graph.hxx:85
MWAWInputStreamPtr input()
returns the input file
Definition: Canvas5Structure.hxx:65
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
MWAWEmbeddedObject m_image
the image
Definition: Canvas5BMParser.cxx:92
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
libmwaw::DebugFile & ascii()
return the ascii file
Definition: Canvas5Structure.hxx:70
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
std::shared_ptr< Canvas5Structure::Stream > m_stream
the current stream
Definition: Canvas5BMParser.cxx:88
a namespace used to define basic function or structure to read a Canvas v5-v11 file
Definition: Canvas5BMParser.hxx:64
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
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
bool createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: Canvas5BMParser.cxx:154
bool readBitmapDAD58Bim(Stream &stream, int version, MWAWEmbeddedObject &object)
try to read a bitmap followed by DAD5 and 8BIM zones
Definition: Canvas5Structure.cxx:286
Definition: libmwaw_internal.hxx:144
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
State()
constructor
Definition: Canvas5BMParser.cxx:76
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
~Canvas5BMParser() final
destructor
Definition: Canvas5BMParser.cxx:112
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: Canvas5BMParser.cxx:124
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Canvas5BMParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: Canvas5BMParser.cxx:100
@ Page
Definition: MWAWPosition.hxx:51
a sub stream of Canvas5Structure
Definition: Canvas5Structure.hxx:49
@ WNone
Definition: MWAWPosition.hxx:53
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
std::shared_ptr< Canvas5BMParserInternal::State > m_state
the state
Definition: Canvas5BMParser.hxx:121
the main class to read the style part of Canvas 5 file
Definition: Canvas5StyleManager.hxx:86
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
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
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: Canvas5BMParser.cxx:214
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
Internal: the state of a Canvas5BMParser.
Definition: Canvas5BMParser.cxx:74
bool readFileHeader(Canvas5Structure::Stream &stream)
try to read the file header
Definition: Canvas5BMParser.cxx:235
Generated on Mon Jul 26 2021 00:00:00 for libmwaw by
doxygen 1.8.20