BeagleWksDRParser.hxx Source File documentation

BeagleWksDRParser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 #ifndef BEAGLE_WKS_DR_PARSER
35 # define BEAGLE_WKS_DR_PARSER
36
37 #include <string>
38 #include <vector>
39
40 #include <librevenge/librevenge.h>
41
42 #include "MWAWCell.hxx"
43 #include "MWAWDebug.hxx"
44 #include "MWAWGraphicStyle.hxx"
45 #include "MWAWInputStream.hxx"
46
47 #include "MWAWParser.hxx"
48
49 namespace BeagleWksDRParserInternal
50 {
51 class SubDocument;
52
53 struct Shape;
54 struct State;
55 }
56
57 class BeagleWksStructManager;
58
61 class BeagleWksDRParser final : public MWAWGraphicParser
62 {
63 friend class BeagleWksDRParserInternal::SubDocument;
64 public:
66 BeagleWksDRParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
68 ~BeagleWksDRParser() final;
69
71 bool checkHeader(MWAWHeader *header, bool strict=false) final;
72
73 // the main parse function
74 void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
75
76 protected:
78 void init();
79
81 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
82
84 MWAWVec2f getPageLeftTop() const;
86 void newPage(int number);
87
88 protected:
90 bool createZones();
91
93 bool readRSRCZones();
94
95 // send data
96
98 bool sendPictures();
100 bool sendText(int id);
101
103 bool sendPageFrames();
105 bool sendFrame(BeagleWksStructManager::Frame const &frame);
107 bool sendPicture(int pId, MWAWPosition const &pos,
108 MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
109
110 //
111 // low level
112 //
113
115 bool readGraphicHeader();
117 bool readPatterns();
119 bool readColors();
121 bool readArrows();
122
124 bool readShapePositions();
126 bool readShapeDefinitions();
128 bool readShapeDatas();
129
131 bool readStyle(BeagleWksDRParserInternal::Shape &shape);
133 bool readPrintInfo();
134
135 // data fork
136
137 // resource fork
138
140 MWAWInputStreamPtr rsrcInput();
141
143 libmwaw::DebugFile &rsrcAscii();
144
145
147 std::shared_ptr<BeagleWksDRParserInternal::State> m_state;
148
150 std::shared_ptr<BeagleWksStructManager> m_structureManager;
151 };
152 #endif
153 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
BeagleWksDRParserInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: BeagleWksDRParser.cxx:189
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
BeagleWksStructManager::Frame::m_dim
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
MWAWFont::setFont
void setFont(int newId)
sets the font id and resets size to the previous size for this font
Definition: MWAWFont.hxx:252
BeagleWksDRParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: BeagleWksDRParser.cxx:187
BeagleWksDRParserInternal::State::m_shapesBegin
long m_shapesBegin[2]
the shape definitions and the unknown
Definition: BeagleWksDRParser.cxx:176
MWAWGraphicListenerPtr
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
BeagleWksDRParser::sendFrame
bool sendFrame(BeagleWksStructManager::Frame const &frame)
try to send a frame
Definition: BeagleWksDRParser.cxx:1368
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAWPosition::setPagePos
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
BeagleWksDRParserInternal::Shape::m_font
MWAWFont m_font
the textbox font
Definition: BeagleWksDRParser.cxx:97
BeagleWksDRParserInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
the colors list
Definition: BeagleWksDRParser.cxx:180
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
BeagleWksDRParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: BeagleWksDRParser.cxx:187
libmwaw::rotateBoxFromCenter
MWAWBox2f rotateBoxFromCenter(MWAWBox2f const &box, float angle)
rotate a bdox and returns the final bdbox, angle is given in degree
Definition: libmwaw_internal.cxx:708
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWParser::getGraphicListener
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
BeagleWksDRParserInternal::SubDocument
Internal: the subdocument of a BeagleWksDRParser.
Definition: BeagleWksDRParser.cxx:195
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:325
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
MWAWGraphicShape::pie
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
BeagleWksStructManager::Frame::m_border
MWAWBorder m_border
the border
Definition: BeagleWksStructManager.hxx:145
BeagleWksDRParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: BeagleWksDRParser.cxx:206
MWAWPosition::setPage
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:76
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
BeagleWksDRParserInternal::Shape
Internal: the shape of BeagleWksDRParser.
Definition: BeagleWksDRParser.cxx:62
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
BeagleWksDRParser::~BeagleWksDRParser
~BeagleWksDRParser() final
destructor
Definition: BeagleWksDRParser.cxx:254
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
BeagleWksDRParserInternal::Shape::m_interline
double m_interline
the interline in percent
Definition: BeagleWksDRParser.cxx:101
BeagleWksStructManager::Frame::m_origin
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
BeagleWksDRParser::sendPicture
bool sendPicture(int pId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: BeagleWksDRParser.cxx:1383
BeagleWksDRParser::createZones
bool createZones()
finds the different objects zones
Definition: BeagleWksDRParser.cxx:369
MWAWPrinter.hxx
BeagleWksDRParser::m_state
std::shared_ptr< BeagleWksDRParserInternal::State > m_state
the state
Definition: BeagleWksDRParser.hxx:147
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
BeagleWksStructManager::Frame::m_page
int m_page
the page ( for a page frame )
Definition: BeagleWksStructManager.hxx:141
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
BeagleWksDRParser::init
void init()
inits all internal variables
Definition: BeagleWksDRParser.cxx:258
BeagleWksDRParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
BeagleWksDRParser::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: BeagleWksDRParser.cxx:1190
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:266
BeagleWksDRParserInternal::State::m_numShapes
int m_numShapes[2]
the number of shapes: positions and definitions
Definition: BeagleWksDRParser.cxx:184
MWAWEntry::type
const std::string & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
BeagleWksDRParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: BeagleWksDRParser.cxx:1417
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
BeagleWksDRParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: BeagleWksDRParser.cxx:338
MWAWGraphicShape::circle
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
MWAWCell.hxx
BeagleWksDRParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: BeagleWksDRParser.cxx:220
BeagleWksDRParserInternal::Shape::m_extra
std::string m_extra
extra data
Definition: BeagleWksDRParser.cxx:104
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWGraphicShape::polygon
static MWAWGraphicShape polygon(MWAWBox2f const &box)
static constructor to create a polygon
Definition: MWAWGraphicShape.hxx:165
BeagleWksStructManager
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:56
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
BeagleWksDRParser::readArrows
bool readArrows()
try to read the arrows zone (unknown format)
Definition: BeagleWksDRParser.cxx:703
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
BeagleWksDRParserInternal::State::m_shapeList
std::vector< Shape > m_shapeList
the list of shapes
Definition: BeagleWksDRParser.cxx:186
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
BeagleWksStructManager::Frame
Internal: a structure use to store a frame in a BeagleWorks files.
Definition: BeagleWksStructManager.hxx:102
BeagleWksStructManager.hxx
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
BeagleWksDRParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: BeagleWksDRParser.cxx:283
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:311
BeagleWksDRParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: BeagleWksDRParser.cxx:226
BeagleWksDRParser::sendPageFrames
bool sendPageFrames()
try to send the page graphic
Definition: BeagleWksDRParser.cxx:1360
MWAWParagraph::Justification
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:90
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
BeagleWksDRParser::readColors
bool readColors()
try to read the colors zone
Definition: BeagleWksDRParser.cxx:572
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWRSRCParser.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWParser::getRSRCParser
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWParser::getPageSpan
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
BeagleWksDRParserInternal::State
Internal: the state of a BeagleWksDRParser.
Definition: BeagleWksDRParser.cxx:156
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:418
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
BeagleWksDRParser::readGraphicHeader
bool readGraphicHeader()
try to read the graphic header
Definition: BeagleWksDRParser.cxx:513
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
MWAWDocument::MWAW_T_BEAGLEWORKS
@ MWAW_T_BEAGLEWORKS
BeagleWorks (v1.0)/WordPerfect Works (v1.2): export database(as spreadsheet), draw,...
Definition: MWAWDocument.hxx:103
BeagleWksDRParser::BeagleWksDRParser
BeagleWksDRParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: BeagleWksDRParser.cxx:246
BeagleWksDRParser::m_structureManager
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksDRParser.hxx:150
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWGraphicStyle::m_flip
bool m_flip[2]
two bool to indicated we need to flip the shape or not
Definition: MWAWGraphicStyle.hxx:480
MWAWParser::setGraphicListener
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
MWAWParser::asciiName
const std::string & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:261
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPictData.hxx
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
BeagleWksDRParser::readShapePositions
bool readShapePositions()
try to read the shape position
Definition: BeagleWksDRParser.cxx:758
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2< float >
MWAWGraphicListener.hxx
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:143
MWAWDebug.hxx
BeagleWksDRParserInternal::Shape::m_dataSize
long m_dataSize
the data size
Definition: BeagleWksDRParser.cxx:90
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:56
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
BeagleWksStructManager::Frame::m_pictId
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:473
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:336
MWAWGraphicParser
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:250
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
BeagleWksDRParserInternal::State::State
State()
constructor
Definition: BeagleWksDRParser.cxx:158
BeagleWksDRParserInternal::State::m_patternList
std::vector< MWAWGraphicStyle::Pattern > m_patternList
the pattern list
Definition: BeagleWksDRParser.cxx:182
BeagleWksDRParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: BeagleWksDRParser.cxx:203
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
BeagleWksDRParserInternal::State::m_graphicBegin
long m_graphicBegin
the graphic begin position
Definition: BeagleWksDRParser.cxx:174
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:222
BeagleWksDRParser::readRSRCZones
bool readRSRCZones()
read the resource fork zone
Definition: BeagleWksDRParser.cxx:475
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
BeagleWksDRParserInternal::Shape::operator<<
friend std::ostream & operator<<(std::ostream &o, Shape const &shape)
operator<<
Definition: BeagleWksDRParser.cxx:107
MWAWHeader.hxx
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:426
BeagleWksDRParser::readShapeDefinitions
bool readShapeDefinitions()
try to read the shape definition
Definition: BeagleWksDRParser.cxx:797
BeagleWksDRParser::readShapeDatas
bool readShapeDatas()
try to read the shape data
Definition: BeagleWksDRParser.cxx:886
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
BeagleWksDRParserInternal
Internal: the structures of a BeagleWksDRParser.
Definition: BeagleWksDRParser.cxx:59
BeagleWksDRParser.hxx
BeagleWksDRParserInternal::Shape::m_style
MWAWGraphicStyle m_style
the style
Definition: BeagleWksDRParser.cxx:95
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
BeagleWksDRParserInternal::SubDocument::SubDocument
SubDocument(BeagleWksDRParser &pars, MWAWInputStreamPtr &input, int zoneId)
Definition: BeagleWksDRParser.cxx:198
BeagleWksDRParser::readStyle
bool readStyle(BeagleWksDRParserInternal::Shape &shape)
try to read a style of a shape
Definition: BeagleWksDRParser.cxx:967
BeagleWksStructManager::Frame::m_wrap
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
BeagleWksDRParserInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: BeagleWksDRParser.cxx:190
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
BeagleWksDRParser
the main class to read a BeagleWorks drawing file
Definition: BeagleWksDRParser.hxx:61
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
BeagleWksDRParserInternal::State::m_typeEntryMap
std::multimap< std::string, MWAWEntry > m_typeEntryMap
the type entry map
Definition: BeagleWksDRParser.cxx:178
BeagleWksDRParser::newPage
void newPage(int number)
adds a new page
Definition: BeagleWksDRParser.cxx:292
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
BeagleWksDRParserInternal::Shape::Shape
Shape()
constructor
Definition: BeagleWksDRParser.cxx:64
BeagleWksDRParser::parse
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: BeagleWksDRParser.cxx:308
MWAWInputStream.hxx
BeagleWksDRParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksDRParser.cxx:275
BeagleWksDRParser::rsrcInput
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksDRParser.cxx:270
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
BeagleWksDRParser::readPatterns
bool readPatterns()
try to read the pattern zone
Definition: BeagleWksDRParser.cxx:639
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
librevenge
Definition: MWAWDocument.hxx:56
MWAWGraphicStyle::m_rotate
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:464
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
BeagleWksDRParserInternal::Shape::m_box
MWAWBox2f m_box
the shape bdbox
Definition: BeagleWksDRParser.cxx:83
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
BeagleWksStructManager::Frame::m_bordersSet
int m_bordersSet
the list of border which are set in form libmwaw::LeftBit|...
Definition: BeagleWksStructManager.hxx:147
MWAWParser.hxx
BeagleWksDRParser::sendPictures
bool sendPictures()
try to send the different pictures
Definition: BeagleWksDRParser.cxx:1246
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
MWAWParser::resetGraphicListener
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
BeagleWksDRParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: BeagleWksDRParser.cxx:107
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
BeagleWksDRParser::sendText
bool sendText(int id)
try to send a text box content
Definition: BeagleWksDRParser.cxx:1312
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
BeagleWksDRParserInternal::Shape::m_shape
MWAWGraphicShape m_shape
the graphic shape ( for line, rect, ...)
Definition: BeagleWksDRParser.cxx:86
BeagleWksDRParserInternal::Shape::m_justify
MWAWParagraph::Justification m_justify
the textbox justification
Definition: BeagleWksDRParser.cxx:99
BeagleWksDRParserInternal::Shape::m_entry
MWAWEntry m_entry
the textbox or picture entry
Definition: BeagleWksDRParser.cxx:88
BeagleWksDRParserInternal::Shape::m_type
int m_type
the shape type
Definition: BeagleWksDRParser.cxx:81