Go to the documentation of this file.
34 #ifndef BEAGLE_WKS_BM_PARSER
35 # define BEAGLE_WKS_BM_PARSER
40 #include <librevenge/librevenge.h>
72 void parse(librevenge::RVNGDrawingInterface *documentInterface)
final;
79 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
133 std::shared_ptr<BeagleWksBMParserInternal::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
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
int m_footerHeight
the footer height if known
Definition: BeagleWksBMParser.cxx:104
int m_headerHeight
the header height if known
Definition: BeagleWksBMParser.cxx:103
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
void init()
inits all internal variables
Definition: BeagleWksBMParser.cxx:125
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
#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
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
MWAWBorder m_border
the border
Definition: BeagleWksStructManager.hxx:145
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
std::shared_ptr< MWAWPict > m_pict
the bitmap
Definition: BeagleWksBMParser.cxx:97
the main class to read a BeagleWorks bitmap file
Definition: BeagleWksBMParser.hxx:61
MWAWVec2i m_dim
the bitmap dimension
Definition: BeagleWksBMParser.cxx:71
bool readBitmap(bool onlyCheck=false)
try to read a bitmap
Definition: BeagleWksBMParser.cxx:359
int id() const
returns the id
Definition: MWAWEntry.hxx:164
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
bool sendPicture(int pId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: BeagleWksBMParser.cxx:784
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
~BeagleWksBMParser() final
destructor
Definition: BeagleWksBMParser.cxx:121
int m_numPages
the number of page of the final document
Definition: BeagleWksBMParser.cxx:101
int m_page
the page ( for a page frame )
Definition: BeagleWksStructManager.hxx:141
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
@ WDynamic
Definition: MWAWPosition.hxx:53
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
std::vector< MWAWColor > m_colorList
the color list
Definition: BeagleWksBMParser.cxx:73
BeagleWksBMParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: BeagleWksBMParser.cxx:113
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
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:132
State()
constructor
Definition: BeagleWksBMParser.cxx:80
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksBMParser.hxx:136
long m_graphicBegin
the graphic begin position
Definition: BeagleWksBMParser.cxx:93
Defines MWAWCell (cell content and format)
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
bool readRSRCZones()
read the resource fork zone
Definition: BeagleWksBMParser.cxx:321
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:57
bool createZones()
finds the different objects zones
Definition: BeagleWksBMParser.cxx:236
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
Internal: a structure use to store a frame in a BeagleWorks files.
Definition: BeagleWksStructManager.hxx:102
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:137
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksBMParser.cxx:142
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
bool readPrefColorMap()
read the preference color map
Definition: BeagleWksBMParser.cxx:565
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
T x() const
first element
Definition: libmwaw_internal.hxx:668
std::multimap< std::string, MWAWEntry > m_typeEntryMap
the type entry map
Definition: BeagleWksBMParser.cxx:99
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
@ MWAW_T_BEAGLEWORKS
BeagleWorks (v1.0)/WordPerfect Works (v1.2): export database(as spreadsheet), draw,...
Definition: MWAWDocument.hxx:103
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
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
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
@ PageBreak
Definition: MWAWListener.hxx:58
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Bitmap()
the constructor
Definition: BeagleWksBMParser.cxx:62
Definition: libmwaw_internal.hxx:144
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: BeagleWksBMParser.cxx:175
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: BeagleWksBMParser.cxx:205
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
bool readColorMap()
read the bitmap color map (if colored bitmap)
Definition: BeagleWksBMParser.cxx:631
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
int m_colorBytes
the number of color bytes (1: means black/white, 8: means color)
Definition: BeagleWksBMParser.cxx:69
Internal: the structures of a BeagleWksBMParser.
Definition: BeagleWksBMParser.cxx:57
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
Internal: the state of a BeagleWksBMParser.
Definition: BeagleWksBMParser.cxx:78
bool sendBitmap()
try to send the bitmap
Definition: BeagleWksBMParser.cxx:740
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
void newPage(int number)
adds a new page
Definition: BeagleWksBMParser.cxx:159
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksBMParser.cxx:137
Bitmap m_bitmap
the bitmap data
Definition: BeagleWksBMParser.cxx:95
bool sendPageFrames()
try to send the page graphic
Definition: BeagleWksBMParser.cxx:760
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
@ Page
Definition: MWAWPosition.hxx:51
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
Internal: a bitmap of a BeagleWksBMParser.
Definition: BeagleWksBMParser.cxx:60
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: BeagleWksBMParser.cxx:150
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::shared_ptr< BeagleWksBMParserInternal::State > m_state
the state
Definition: BeagleWksBMParser.hxx:133
@ WNone
Definition: MWAWPosition.hxx:53
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: BeagleWksBMParser.cxx:818
int m_actPage
the actual page
Definition: BeagleWksBMParser.cxx:101
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
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
int m_bordersSet
the list of border which are set in form libmwaw::LeftBit|...
Definition: BeagleWksStructManager.hxx:147
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
bool readPrintInfo()
read the print info zone
Definition: BeagleWksBMParser.cxx:684
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
bool sendFrame(BeagleWksStructManager::Frame const &frame)
try to send a frame
Definition: BeagleWksBMParser.cxx:769
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20