Go to the documentation of this file.
38 #ifndef CLARIS_WKS_BM_PARSER
39 # define CLARIS_WKS_BM_PARSER
44 #include <librevenge/librevenge.h>
78 void parse(librevenge::RVNGDrawingInterface *documentInterface);
85 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
93 shared_ptr<ClarisWksBMParserInternal::State>
m_state;
Internal: the state of a ClarisWksBMParser.
Definition: ClarisWksBMParser.cxx:71
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisWksBMParser.cxx:108
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
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
void init()
inits all internal variables
Definition: ClarisWksBMParser.cxx:94
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
the main class to read a bitmap AppleWorks/ClarisWorks file
Definition: ClarisWksBMParser.hxx:66
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
Internal: the structures of a ClarisWksBMParser.
Definition: ClarisWksBMParser.cxx:67
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ClarisWksBMParser.cxx:159
shared_ptr< ClarisWksDocument > m_document
the style manager
Definition: ClarisWksBMParser.hxx:96
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWPageSpan.hxx:151
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
friend class ClarisWksDocument
Definition: ClarisWksBMParser.hxx:67
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: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
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
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
double getPageLength() const
returns the page length (form width without margin )
Definition: MWAWPageSpan.hxx:146
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
Definition: libmwaw_internal.hxx:142
virtual ~ClarisWksBMParser()
destructor
Definition: ClarisWksBMParser.cxx:90
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
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
int m_numPages
the number of page of the final document
Definition: ClarisWksBMParser.cxx:77
int m_actPage
the actual page
Definition: ClarisWksBMParser.cxx:77
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
@ Page
Definition: MWAWPosition.hxx:51
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
ClarisWksBMParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: ClarisWksBMParser.cxx:84
State()
constructor
Definition: ClarisWksBMParser.cxx:73
void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: ClarisWksBMParser.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
shared_ptr< ClarisWksBMParserInternal::State > m_state
the state
Definition: ClarisWksBMParser.hxx:93
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