Go to the documentation of this file.
34 #ifndef BEAGLE_WKS_PARSER
35 # define BEAGLE_WKS_PARSER
40 #include <librevenge/librevenge.h>
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
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
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
State()
constructor
Definition: BeagleWksParser.cxx:64
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
long m_textBegin
the text begin position
Definition: BeagleWksParser.cxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
Internal: the state of a BeagleWksParser.
Definition: BeagleWksParser.cxx:62
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
bool sendPageFrames()
try to send the page graphic
Definition: BeagleWksParser.cxx:374
std::shared_ptr< BeagleWksText > m_textParser
the text parser
Definition: BeagleWksParser.hxx:134
the main class to read the text part of BeagleWorks Text file
Definition: BeagleWksText.hxx:62
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
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksParser.cxx:116
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
int id() const
returns the id
Definition: MWAWEntry.hxx:164
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
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
void init()
inits all internal variables
Definition: BeagleWksParser.cxx:102
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
bool readRSRCZones()
read the resource fork zone
Definition: BeagleWksParser.cxx:336
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
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: BeagleWksParser.cxx:169
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: BeagleWksParser.cxx:129
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
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksParser.hxx:132
int m_footerHeight
the footer height if known
Definition: BeagleWksParser.cxx:81
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
int m_numPages
the number of page of the final document
Definition: BeagleWksParser.cxx:78
bool sendPicture(int pId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: BeagleWksParser.cxx:568
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
friend class BeagleWksText
Definition: BeagleWksParser.hxx:61
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
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
BeagleWksParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: BeagleWksParser.cxx:89
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
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
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
T x() const
first element
Definition: libmwaw_internal.hxx:668
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 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
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
Definition: libmwaw_internal.hxx:144
bool readPrintInfo()
read the print info zone
Definition: BeagleWksParser.cxx:404
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
bool createZones()
finds the different objects zones
Definition: BeagleWksParser.cxx:254
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: BeagleWksParser.cxx:603
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
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
Internal: the structures of a BeagleWksParser.
Definition: BeagleWksParser.cxx:59
@ Char
Definition: MWAWPosition.hxx:51
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
int m_headerHeight
the header height if known
Definition: BeagleWksParser.cxx:80
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: BeagleWksParser.cxx:202
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
@ Page
Definition: MWAWPosition.hxx:51
bool readLastZone()
read the last zone
Definition: BeagleWksParser.cxx:460
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
std::multimap< std::string, MWAWEntry > m_typeEntryMap
the type entry map
Definition: BeagleWksParser.cxx:77
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
std::shared_ptr< BeagleWksParserInternal::State > m_state
the state
Definition: BeagleWksParser.hxx:129
bool m_charAnchor
a flag to know if this is a char or a page frame
Definition: BeagleWksStructManager.hxx:131
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
@ 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
~BeagleWksParser() final
destructor
Definition: BeagleWksParser.cxx:98
int m_actPage
the actual page
Definition: BeagleWksParser.cxx:78
void newPage(int number)
adds a new page
Definition: BeagleWksParser.cxx:153
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
bool sendFrame(int pId)
try to insert the pId picture (as char)
Definition: BeagleWksParser.cxx:138
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
the main class to read a BeagleWorks file
Definition: BeagleWksParser.hxx:60
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksParser.cxx:121
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20