FreeHandParser.hxx Source File documentation

FreeHandParser.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 FREEHAND_PARSER
35 # define FREEHAND_PARSER
36
37 #include <string>
38 #include <vector>
39
40 #include <librevenge/librevenge.h>
41
42 #include "MWAWDebug.hxx"
43 #include "MWAWInputStream.hxx"
44
45 #include "MWAWParser.hxx"
46
47 namespace FreeHandParserInternal
48 {
49 struct Shape;
50 struct ShapeHeader;
51 struct StyleHeader;
52 struct ScreenMode;
53 struct Textbox;
54 struct State;
55
56 class SubDocument;
57 }
58
62 class FreeHandParser final : public MWAWGraphicParser
63 {
64 friend class FreeHandParserInternal::SubDocument;
65 public:
67 FreeHandParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
69 ~FreeHandParser() final;
70
72 bool checkHeader(MWAWHeader *header, bool strict=false) final;
73
74 // the main parse function
75 void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
76
77 protected:
79 void init();
80
82 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
83
84 protected:
86 bool createZones();
88 bool readZoneV1(int zId);
90 bool readZoneV2(int zId);
91
93 bool readScreenMode(FreeHandParserInternal::ScreenMode &screen);
95 bool readStyleHeader(FreeHandParserInternal::StyleHeader &style);
97 bool readColor(int zId);
99 bool readDash(int zId);
101 bool readFillStyle(int zId);
103 bool readLineStyle(int zId);
105 bool readPostscriptStyle(int zId);
106
108 bool readRootGroup(int zId);
110 bool readStyleGroup(int zId);
112 bool readGroupV1(int zId);
114 bool readGroupV2(int zId);
116 bool readJoinGroup(int zId);
118 bool readTransformGroup(int zId);
120 bool readStringZone(int zId);
121
123 bool readShapeHeader(FreeHandParserInternal::ShapeHeader &shape);
125 bool readDataZone(int zId);
126
128 bool readBackgroundPicture(int zId);
130 bool readPictureZone(int zId);
132 bool readShape(int zId);
134 bool readTextboxV1(int zId);
136 bool readTextboxV2(int zId);
137
139 bool sendZone(int zId, MWAWTransformation const &transform);
141 bool sendGroup(FreeHandParserInternal::Shape const &group, MWAWTransformation const &transform);
143 bool sendBackgroundPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform);
145 bool sendPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform);
147 bool sendShape(FreeHandParserInternal::Shape const &shape, MWAWTransformation const &transform);
149 bool sendTextbox(FreeHandParserInternal::Textbox const &textbox, MWAWTransformation const &transform);
151 bool sendText(int zId);
153 bool openLayer(int zId);
155 void closeLayer();
157 void flushExtra();
158
162 static bool decomposeMatrix(MWAWTransformation const &matrix, float &rotation, MWAWTransformation &transform, MWAWVec2f const &center);
163
165 std::shared_ptr<FreeHandParserInternal::State> m_state;
166 };
167 #endif
168 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
FreeHandParserInternal::Z_ColorGroup
@ Z_ColorGroup
Definition: FreeHandParser.cxx:65
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
FreeHandParser::readTextboxV2
bool readTextboxV2(int zId)
try to read a textbox zone: version 2
Definition: FreeHandParser.cxx:2946
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
FreeHandParserInternal::StyleHeader::operator<<
friend std::ostream & operator<<(std::ostream &o, StyleHeader const &style)
operator<<
Definition: FreeHandParser.cxx:245
MWAWGraphicStyle::m_lineCap
LineCap m_lineCap
the line cap
Definition: MWAWGraphicStyle.hxx:420
FreeHandParserInternal::State::m_mainGroupId
int m_mainGroupId
the main group id
Definition: FreeHandParser.cxx:498
FreeHandParserInternal::State::m_zIdToTextboxMap
std::map< int, Textbox > m_zIdToTextboxMap
the list zoneId to textbox
Definition: FreeHandParser.cxx:520
MWAWGraphicStyle::Pattern::empty
bool empty() const
return true if we does not have a pattern
Definition: MWAWGraphicStyle.hxx:207
MWAWGraphicShape::transform
MWAWGraphicShape transform(MWAWTransformation const &matrix) const
returns a new shape corresponding to a matrix transformation
Definition: MWAWGraphicShape.cxx:404
MWAWGraphicListenerPtr
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
FreeHandParserInternal::FillStyle::m_logarithm
bool m_logarithm
flag to know if a flag has logarithmic scale
Definition: FreeHandParser.cxx:197
FreeHandParserInternal::ShapeHeader::m_layerId
int m_layerId
the layer id
Definition: FreeHandParser.cxx:166
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
FreeHandParser::openLayer
bool openLayer(int zId)
try to open a layer
Definition: FreeHandParser.cxx:3286
FreeHandParser.hxx
FreeHandParserInternal::State::m_zIdToLineStyleMap
std::map< int, LineStyle > m_zIdToLineStyleMap
the list zoneId to lineStyle
Definition: FreeHandParser.cxx:512
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
FreeHandParserInternal::SubDocument
Internal: the subdocument of a FreeHandParser.
Definition: FreeHandParser.cxx:651
MWAWGraphicStyle::J_Bevel
@ J_Bevel
Definition: MWAWGraphicStyle.hxx:53
MWAWVariable
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:577
FreeHandParserInternal::ShapeHeader::m_values
int m_values[4]
the unknown values
Definition: FreeHandParser.cxx:170
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
FreeHandParserInternal::Shape::m_dataId
int m_dataId
the id of a the picture date
Definition: FreeHandParser.cxx:391
MWAWBox2::max
const MWAWVec2< T > & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
FreeHandParser::sendText
bool sendText(int zId)
try to send the text of a text box
Definition: FreeHandParser.cxx:3523
MWAWParser::getGraphicListener
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:325
FreeHandParserInternal::ScreenMode::operator<<
friend std::ostream & operator<<(std::ostream &o, ScreenMode const &screen)
operator<<
Definition: FreeHandParser.cxx:80
FreeHandParser::FreeHandParser
FreeHandParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: FreeHandParser.cxx:703
FreeHandParserInternal::State::m_sendLayerSet
std::set< int > m_sendLayerSet
a set of create layer to avoid dupplicating layer
Definition: FreeHandParser.cxx:526
FreeHandParserInternal::Shape::m_corner
MWAWVec2f m_corner
the corner size
Definition: FreeHandParser.cxx:377
FreeHandParserInternal::LineStyle::m_width
float m_width
the line width
Definition: FreeHandParser.cxx:216
MWAWGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:228
FreeHandParserInternal::Textbox::m_justify
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: FreeHandParser.cxx:445
FreeHandParserInternal::StyleHeader::m_labelId
int m_labelId
the label id
Definition: FreeHandParser.cxx:259
MWAWGraphicStyle::m_gradientType
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:439
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
FreeHandParserInternal::Z_String
@ Z_String
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::LineStyle::LineStyle
LineStyle()
constructor
Definition: FreeHandParser.cxx:205
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWGraphicStyle::LineJoin
LineJoin
an enum used to define the basic line join
Definition: MWAWGraphicStyle.hxx:53
FreeHandParserInternal::State::m_zIdToTypeMap
std::map< int, ZoneType > m_zIdToTypeMap
the list of id seen
Definition: FreeHandParser.cxx:502
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWBox2::min
const MWAWVec2< T > & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
FreeHandParserInternal::StyleHeader::m_type
int m_type
the zone type
Definition: FreeHandParser.cxx:257
FreeHandParser::m_state
std::shared_ptr< FreeHandParserInternal::State > m_state
the state
Definition: FreeHandParser.hxx:165
FreeHandParser::readStyleHeader
bool readStyleHeader(FreeHandParserInternal::StyleHeader &style)
try to read a style header
Definition: FreeHandParser.cxx:1764
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
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
FreeHandParserInternal::Textbox::m_baseline
float m_baseline
the baseline
Definition: FreeHandParser.cxx:443
FreeHandParserInternal::Shape::Unknown
@ Unknown
Definition: FreeHandParser.cxx:272
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
FreeHandParserInternal::Z_LineStyleGroup
@ Z_LineStyleGroup
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::Textbox::m_id
int m_id
the textbox id
Definition: FreeHandParser.cxx:431
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
FreeHandParser::readZoneV1
bool readZoneV1(int zId)
try to read a zone: version 1
Definition: FreeHandParser.cxx:871
FreeHandParser::sendShape
bool sendShape(FreeHandParserInternal::Shape const &shape, MWAWTransformation const &transform)
try to send a basic shape
Definition: FreeHandParser.cxx:3468
FreeHandParserInternal::State
Internal: the state of a FreeHandParser.
Definition: FreeHandParser.cxx:456
FreeHandParser::closeLayer
void closeLayer()
try to close a layer
Definition: FreeHandParser.cxx:3303
MWAWFont::outlineBit
@ outlineBit
Definition: MWAWFont.hxx:191
MWAWPrinter.hxx
FreeHandParserInternal::ShapeHeader::operator<<
friend std::ostream & operator<<(std::ostream &o, ShapeHeader const &shape)
operator<<
Definition: FreeHandParser.cxx:135
FreeHandParser::readDash
bool readDash(int zId)
try to read the dash zone
Definition: FreeHandParser.cxx:1946
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
MWAWPageSpan::setFormOrientation
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:188
FreeHandParser::readZoneV2
bool readZoneV2(int zId)
try to read a zone: version 2
Definition: FreeHandParser.cxx:943
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWGraphicStyle::G_None
@ G_None
Definition: MWAWGraphicStyle.hxx:55
FreeHandParserInternal::State::m_zIdToStringMap
std::map< int, std::string > m_zIdToStringMap
the list zoneId to string
Definition: FreeHandParser.cxx:514
MWAWDocument::MWAW_T_FREEHAND
@ MWAW_T_FREEHAND
FreeHand: v1.
Definition: MWAWDocument.hxx:183
FreeHandParserInternal::Shape::m_evenOdd
bool m_evenOdd
a flag to know how path intersection are defined
Definition: FreeHandParser.cxx:383
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
FreeHandParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: FreeHandParser.cxx:662
FreeHandParserInternal::ScreenMode::m_lineByInch
int m_lineByInch
the line/inch
Definition: FreeHandParser.cxx:113
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
MWAWGraphicShape::m_bdBox
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
FreeHandParserInternal::Textbox::m_spacings
MWAWVec2f m_spacings
the letter/word spacing
Definition: FreeHandParser.cxx:439
FreeHandParserInternal::State::m_zIdToPostscriptMap
std::map< int, std::string > m_zIdToPostscriptMap
the list zoneId to postscrip code
Definition: FreeHandParser.cxx:516
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
FreeHandParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FreeHandParser.cxx:758
FreeHandParserInternal::Shape::Picture
@ Picture
Definition: FreeHandParser.cxx:272
FreeHandParserInternal::FillStyle::m_type
MWAWGraphicStyle::GradientType m_type
the gradient type
Definition: FreeHandParser.cxx:189
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
FreeHandParserInternal::StyleHeader::m_extra
std::string m_extra
extra data
Definition: FreeHandParser.cxx:265
FreeHandParser::readColor
bool readColor(int zId)
try to read a color zone
Definition: FreeHandParser.cxx:1804
MWAWGraphicStyle::m_gradientStopList
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:445
FreeHandParserInternal::ScreenMode::m_value
int m_value
unknow value
Definition: FreeHandParser.cxx:115
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
FreeHandParserInternal::State::m_sendIdSet
std::set< int > m_sendIdSet
a set of send id used to avoid potential loop
Definition: FreeHandParser.cxx:524
FreeHandParserInternal::Shape::Rectangle
@ Rectangle
Definition: FreeHandParser.cxx:272
MWAWGraphicShape::circle
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
FreeHandParserInternal
Internal: the structures of a FreeHandParser.
Definition: FreeHandParser.cxx:62
FreeHandParser::readGroupV2
bool readGroupV2(int zId)
try to read a group zone: version 2
Definition: FreeHandParser.cxx:1364
FreeHandParserInternal::Font
structure of FreeHandParserInternal used to stored a font
Definition: FreeHandParser.cxx:397
MWAWGraphicStyle::J_Round
@ J_Round
Definition: MWAWGraphicStyle.hxx:53
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
FreeHandParser::sendBackgroundPicture
bool sendBackgroundPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a background picture
Definition: FreeHandParser.cxx:3387
FreeHandParserInternal::Shape::m_lineId
int m_lineId
the line id
Definition: FreeHandParser.cxx:368
MWAWSubDocument.hxx
FreeHandParserInternal::LineStyle::m_miterLimit
float m_miterLimit
the miter limit
Definition: FreeHandParser.cxx:224
FreeHandParser::decomposeMatrix
static bool decomposeMatrix(MWAWTransformation const &matrix, float &rotation, MWAWTransformation &transform, MWAWVec2f const &center)
try to decompose the matrix in a rotation + scaling/translation matrix.
Definition: FreeHandParser.cxx:3619
FreeHandParserInternal::ShapeHeader::m_size
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:158
FreeHandParserInternal::LineStyle::m_dashId
int m_dashId
the dash id
Definition: FreeHandParser.cxx:220
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
FreeHandParserInternal::FillStyle::m_colorId
int m_colorId[2]
the color id
Definition: FreeHandParser.cxx:191
FreeHandParserInternal::Shape::m_isSent
bool m_isSent
flag to known if a shape is sent
Definition: FreeHandParser.cxx:393
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
FreeHandParserInternal::Z_Color
@ Z_Color
Definition: FreeHandParser.cxx:65
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
FreeHandParser::readShapeHeader
bool readShapeHeader(FreeHandParserInternal::ShapeHeader &shape)
try to read a shape header
Definition: FreeHandParser.cxx:1675
FreeHandParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: FreeHandParser.cxx:676
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:311
FreeHandParser::init
void init()
inits all internal variables
Definition: FreeHandParser.cxx:714
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
FreeHandParser::sendZone
bool sendZone(int zId, MWAWTransformation const &transform)
try to send a zone
Definition: FreeHandParser.cxx:3311
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
FreeHandParserInternal::Z_LineStyle
@ Z_LineStyle
Definition: FreeHandParser.cxx:66
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
FreeHandParserInternal::ScreenMode::ScreenMode
ScreenMode()
constructor
Definition: FreeHandParser.cxx:72
FreeHandParserInternal::LineStyle::m_pattern
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:222
FreeHandParserInternal::Z_Unknown
@ Z_Unknown
Definition: FreeHandParser.cxx:65
MWAWParser::getPageSpan
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
FreeHandParserInternal::State::addZoneId
bool addZoneId(int id, ZoneType zoneType)
try to add a id
Definition: FreeHandParser.cxx:484
FreeHandParserInternal::Shape::Shape
Shape()
constructor
Definition: FreeHandParser.cxx:275
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
FreeHandParserInternal::FillStyle::FillStyle
FillStyle()
constructor
Definition: FreeHandParser.cxx:180
FreeHandParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)
FreeHandParserInternal::Shape::Group
@ Group
Definition: FreeHandParser.cxx:272
FreeHandParser
the main class to read a FreeHand v0,v1 file
Definition: FreeHandParser.hxx:62
FreeHandParserInternal::State::updateGroupLayerId
int updateGroupLayerId(int zId, std::set< int > &seen)
try to update the group layer id, return 0 or the new layer id
Definition: FreeHandParser.cxx:624
FreeHandParserInternal::ScreenMode::m_angle
float m_angle
the angle
Definition: FreeHandParser.cxx:111
FreeHandParserInternal::LineStyle::m_cap
MWAWGraphicStyle::LineCap m_cap
the line cap
Definition: FreeHandParser.cxx:226
FreeHandParserInternal::Font::m_font
MWAWFont m_font
the font
Definition: FreeHandParser.cxx:406
MWAWGraphicStyle::G_Radial
@ G_Radial
Definition: MWAWGraphicStyle.hxx:55
FreeHandParserInternal::State::m_zIdToFillStyleMap
std::map< int, FillStyle > m_zIdToFillStyleMap
the list zoneId to fillStyle
Definition: FreeHandParser.cxx:510
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
FreeHandParser::readStringZone
bool readStringZone(int zId)
try to read a label/font name zone
Definition: FreeHandParser.cxx:1633
FreeHandParser::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FreeHandParser.cxx:3597
FreeHandParser::readRootGroup
bool readRootGroup(int zId)
try to read the list of group
Definition: FreeHandParser.cxx:1226
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
FreeHandParserInternal::LineStyle::m_join
MWAWGraphicStyle::LineJoin m_join
the line join
Definition: FreeHandParser.cxx:228
FreeHandParserInternal::State::m_actualLayer
int m_actualLayer
the actual layer
Definition: FreeHandParser.cxx:522
MWAWParser::setGraphicListener
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
FreeHandParserInternal::LineStyle::m_colorId
int m_colorId
the color id
Definition: FreeHandParser.cxx:218
MWAWParser::asciiName
const std::string & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
FreeHandParserInternal::Shape::m_id
int m_id
the zone id
Definition: FreeHandParser.cxx:362
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
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPictData.hxx
FreeHandParser::readPictureZone
bool readPictureZone(int zId)
try to read a picture node
Definition: FreeHandParser.cxx:2443
FreeHandParserInternal::Z_Fill
@ Z_Fill
Definition: FreeHandParser.cxx:65
MWAWGraphicShape::Path
@ Path
Definition: MWAWGraphicShape.hxx:49
FreeHandParserInternal::Z_Shape
@ Z_Shape
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::Textbox::m_isSent
bool m_isSent
flag to known if a shape is sent
Definition: FreeHandParser.cxx:451
FreeHandParserInternal::Shape::m_picture
MWAWEntry m_picture
the picture entry
Definition: FreeHandParser.cxx:389
FreeHandParser::readScreenMode
bool readScreenMode(FreeHandParserInternal::ScreenMode &screen)
try to read a special scren mode
Definition: FreeHandParser.cxx:1752
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
FreeHandParserInternal::Textbox::m_scalings
MWAWVec2f m_scalings
the horizontal/vertical scalings
Definition: FreeHandParser.cxx:441
FreeHandParser::sendPicture
bool sendPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a picture
Definition: FreeHandParser.cxx:3420
MWAWVec2< float >
FreeHandParserInternal::Font::m_nameId
int m_nameId
the font name id
Definition: FreeHandParser.cxx:408
MWAWGraphicListener.hxx
FreeHandParser::readTransformGroup
bool readTransformGroup(int zId)
try to read a node which contain the group transformation
Definition: FreeHandParser.cxx:1498
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:143
MWAWDebug.hxx
FreeHandParserInternal::ScreenMode
struct which defines the screen parameters in FreeHandParserInternal
Definition: FreeHandParser.cxx:70
FreeHandParser::readPostscriptStyle
bool readPostscriptStyle(int zId)
try to read a postscript zone
Definition: FreeHandParser.cxx:2332
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
MWAWTransformation::rotation
static MWAWTransformation rotation(float angle, MWAWVec2f const &center=MWAWVec2f(0, 0))
returns a rotation transformation around center.
Definition: libmwaw_internal.cxx:646
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
FreeHandParser::parse
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: FreeHandParser.cxx:727
FreeHandParserInternal::Shape::m_type
Type m_type
the type
Definition: FreeHandParser.cxx:364
FreeHandParser::readLineStyle
bool readLineStyle(int zId)
try to read a line style zone
Definition: FreeHandParser.cxx:2187
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:336
FreeHandParserInternal::Z_Dash
@ Z_Dash
Definition: FreeHandParser.cxx:65
MWAWGraphicParser
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:250
FreeHandParser::readShape
bool readShape(int zId)
try to read a shape
Definition: FreeHandParser.cxx:2525
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
FreeHandParserInternal::StyleHeader::m_screen
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:261
FreeHandParserInternal::Shape::m_transformation
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:373
FreeHandParserInternal::Shape::updateShape
bool updateShape(MWAWGraphicShape &shape) const
try to returns a shape and position
Definition: FreeHandParser.cxx:296
FreeHandParserInternal::FillStyle
small structure of FreeHandParserInternal used to stored a fill style
Definition: FreeHandParser.cxx:178
FreeHandParserInternal::State::updateLineStyle
bool updateLineStyle(int zId, MWAWGraphicStyle &style) const
try to update the line style
Definition: FreeHandParser.cxx:578
FreeHandParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: FreeHandParser.cxx:682
MWAWGraphicStyle::G_Linear
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
FreeHandParserInternal::State::getZoneType
ZoneType getZoneType(int id) const
try to return a zone type
Definition: FreeHandParser.cxx:477
FreeHandParserInternal::Shape::Path
@ Path
Definition: FreeHandParser.cxx:272
MWAWGraphicStyle::GradientStop
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
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
FreeHandParserInternal::Z_PictureName
@ Z_PictureName
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::Z_StyleGroup
@ Z_StyleGroup
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::Shape::Ellipse
@ Ellipse
Definition: FreeHandParser.cxx:272
FreeHandParserInternal::Textbox::m_text
MWAWEntry m_text
the text data
Definition: FreeHandParser.cxx:447
FreeHandParser::readStyleGroup
bool readStyleGroup(int zId)
try to read a style group zone
Definition: FreeHandParser.cxx:1562
FreeHandParserInternal::State::State
State()
constructor
Definition: FreeHandParser.cxx:458
FreeHandParserInternal::ZoneType
ZoneType
the different zone type
Definition: FreeHandParser.cxx:65
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:264
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
FreeHandParserInternal::ShapeHeader::m_extra
std::string m_extra
extra data
Definition: FreeHandParser.cxx:172
FreeHandParserInternal::Textbox
structure of FreeHandParserInternal used to stored a textbox
Definition: FreeHandParser.cxx:414
MWAWHeader.hxx
FreeHandParser::readJoinGroup
bool readJoinGroup(int zId)
try to read a join zone (used to put text around path)
Definition: FreeHandParser.cxx:1439
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
FreeHandParserInternal::State::m_zIdToColorMap
std::map< int, MWAWColor > m_zIdToColorMap
the list zoneId to color
Definition: FreeHandParser.cxx:504
FreeHandParserInternal::StyleHeader::StyleHeader
StyleHeader()
constructor
Definition: FreeHandParser.cxx:235
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
FreeHandParserInternal::ShapeHeader::ShapeHeader
ShapeHeader()
constructor
Definition: FreeHandParser.cxx:123
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:426
FreeHandParserInternal::FillStyle::m_angle
float m_angle
the angle
Definition: FreeHandParser.cxx:195
MWAWGraphicStyle::C_Square
@ C_Square
Definition: MWAWGraphicStyle.hxx:51
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
FreeHandParserInternal::StyleHeader::m_unknownValue
int m_unknownValue
the first unknown value
Definition: FreeHandParser.cxx:263
MWAWTransformation::translation
static MWAWTransformation translation(MWAWVec2f const &trans)
returns a translation transformation
Definition: libmwaw_internal.hxx:1312
FreeHandParserInternal::ShapeHeader
small structure of FreeHandParserInternal used to stored a shape header
Definition: FreeHandParser.cxx:121
FreeHandParser::readTextboxV1
bool readTextboxV1(int zId)
try to read a textbox zone: version 1
Definition: FreeHandParser.cxx:2731
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWGraphicStyle::C_Round
@ C_Round
Definition: MWAWGraphicStyle.hxx:51
FreeHandParserInternal::ScreenMode::m_function
int m_function
the function
Definition: FreeHandParser.cxx:109
FreeHandParserInternal::Shape
small structure of FreeHandParserInternal used to stored a shape
Definition: FreeHandParser.cxx:270
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWGraphicStyle::LineCap
LineCap
an enum used to define the basic line cap
Definition: MWAWGraphicStyle.hxx:51
FreeHandParserInternal::ShapeHeader::m_dataId
int m_dataId
the data id (used to store a note, ...)
Definition: FreeHandParser.cxx:164
FreeHandParserInternal::Shape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of point for path: 3 Vec2f defining each point
Definition: FreeHandParser.cxx:379
FreeHandParserInternal::State::m_zIdToDashMap
std::map< int, std::vector< float > > m_zIdToDashMap
the list zoneId to dash
Definition: FreeHandParser.cxx:506
FreeHandParserInternal::State::m_transform
MWAWTransformation m_transform
the main transformation
Definition: FreeHandParser.cxx:500
FreeHandParser::sendGroup
bool sendGroup(FreeHandParserInternal::Shape const &group, MWAWTransformation const &transform)
try to send a group shape
Definition: FreeHandParser.cxx:3337
MWAWTransformation::isIdentity
bool isIdentity() const
returns true if the matrix is an identity matrix
Definition: libmwaw_internal.hxx:1209
FreeHandParserInternal::Textbox::m_box
MWAWBox2f m_box
the main box
Definition: FreeHandParser.cxx:435
FreeHandParserInternal::Font::Font
Font()
constructor
Definition: FreeHandParser.cxx:399
FreeHandParser::readFillStyle
bool readFillStyle(int zId)
try to read a fill zone
Definition: FreeHandParser.cxx:2003
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
FreeHandParser::createZones
bool createZones()
finds the different objects zones
Definition: FreeHandParser.cxx:780
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
FreeHandParserInternal::Shape::m_childs
std::vector< int > m_childs
the list of child (for group and join group )
Definition: FreeHandParser.cxx:387
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWTransformation
a transformation which stored the first row of a 3x3 perspective matrix
Definition: libmwaw_internal.hxx:1198
MWAWParser::getPageLength
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWGraphicStyle::m_lineJoin
LineJoin m_lineJoin
the line join
Definition: MWAWGraphicStyle.hxx:422
MWAWGraphicStyle::m_lineDashWidth
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:416
FreeHandParser::readGroupV1
bool readGroupV1(int zId)
try to read a group zone: version 1
Definition: FreeHandParser.cxx:1309
FreeHandParserInternal::Shape::m_layerId
int m_layerId
the layer
Definition: FreeHandParser.cxx:366
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWTransformation::scale
static MWAWTransformation scale(MWAWVec2f const &trans)
returns a scaling transformation
Definition: libmwaw_internal.hxx:1317
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWVec3f
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:1019
FreeHandParserInternal::Z_Group
@ Z_Group
Definition: FreeHandParser.cxx:65
FreeHandParserInternal::Shape::m_closed
bool m_closed
a flag to know if a path is closed
Definition: FreeHandParser.cxx:381
FreeHandParserInternal::Shape::Type
Type
the different type
Definition: FreeHandParser.cxx:272
FreeHandParser::~FreeHandParser
~FreeHandParser() final
destructor
Definition: FreeHandParser.cxx:710
FreeHandParser::readBackgroundPicture
bool readBackgroundPicture(int zId)
try to read a background picture zone
Definition: FreeHandParser.cxx:2404
FreeHandParserInternal::Z_Data
@ Z_Data
Definition: FreeHandParser.cxx:65
FreeHandParserInternal::ShapeHeader::m_type
int m_type
the zone type
Definition: FreeHandParser.cxx:160
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
FreeHandParserInternal::Shape::m_joinDistance
float m_joinDistance
the join distance
Definition: FreeHandParser.cxx:385
FreeHandParserInternal::LineStyle
small structure of FreeHandParserInternal used to stored a line style
Definition: FreeHandParser.cxx:203
FreeHandParserInternal::ShapeHeader::m_screen
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:168
FreeHandParserInternal::Shape::m_box
MWAWBox2f m_box
the main box (for line, rectangle, ellipse)
Definition: FreeHandParser.cxx:375
FreeHandParserInternal::Z_FillGroup
@ Z_FillGroup
Definition: FreeHandParser.cxx:65
FreeHandParserInternal::Textbox::m_layerId
int m_layerId
the layer id
Definition: FreeHandParser.cxx:433
FreeHandParserInternal::StyleHeader
small structure of FreeHandParserInternal used to stored a style header
Definition: FreeHandParser.cxx:233
FreeHandParserInternal::ShapeHeader::m_note
std::string m_note
the note
Definition: FreeHandParser.cxx:162
MWAWGraphicStyle::m_gradientAngle
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:447
MWAWInputStream.hxx
FreeHandParserInternal::Textbox::Textbox
Textbox(int id)
constructor
Definition: FreeHandParser.cxx:416
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWGraphicStyle::GradientType
GradientType
an enum used to define the gradient type
Definition: MWAWGraphicStyle.hxx:55
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
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
FreeHandParserInternal::State::m_zIdToDataMap
std::map< int, MWAWEntry > m_zIdToDataMap
the list zoneId to data map
Definition: FreeHandParser.cxx:508
MWAWPictBitmap.hxx
FreeHandParserInternal::Textbox::m_transformation
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:437
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MWAWVec3
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:847
FreeHandParserInternal::FillStyle::m_pattern
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:193
MWAWBox2< float >
FreeHandParserInternal::Z_Note
@ Z_Note
Definition: FreeHandParser.cxx:66
FreeHandParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: FreeHandParser.cxx:659
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
MWAWGraphicShape::PathData
a simple path component
Definition: MWAWGraphicShape.hxx:53
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
FreeHandParserInternal::Z_DashGroup
@ Z_DashGroup
Definition: FreeHandParser.cxx:65
FreeHandParserInternal::Shape::Line
@ Line
Definition: FreeHandParser.cxx:272
FreeHandParserInternal::Shape::m_fillId
int m_fillId
the fill id
Definition: FreeHandParser.cxx:370
FreeHandParserInternal::Z_Picture
@ Z_Picture
Definition: FreeHandParser.cxx:66
MWAWPageSpan::LANDSCAPE
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:102
FreeHandParserInternal::Shape::JoinGroup
@ JoinGroup
Definition: FreeHandParser.cxx:272
FreeHandParserInternal::Textbox::m_posToFontMap
std::map< int, Font > m_posToFontMap
map char pos to font
Definition: FreeHandParser.cxx:449
FreeHandParserInternal::Font::m_colorId
int m_colorId
the font color id
Definition: FreeHandParser.cxx:410
FreeHandParserInternal::StyleHeader::m_size
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:255
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
MWAWParser.hxx
FreeHandParserInternal::Shape::BackgroundPicture
@ BackgroundPicture
Definition: FreeHandParser.cxx:272
MWAWParser::resetGraphicListener
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
FreeHandParserInternal::State::updateFillStyle
bool updateFillStyle(int zId, MWAWGraphicStyle &style) const
try to update the fill style
Definition: FreeHandParser.cxx:529
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
MWAWColor::colorFromCMYK
static MWAWColor colorFromCMYK(unsigned char c, unsigned char m, unsigned char y, unsigned char k)
return a color from a cmyk color ( basic)
Definition: libmwaw_internal.hxx:218
FreeHandParserInternal::State::m_zIdToShapeMap
std::map< int, Shape > m_zIdToShapeMap
the list zoneId to shape
Definition: FreeHandParser.cxx:518
FreeHandParser::readDataZone
bool readDataZone(int zId)
try to read a data zone
Definition: FreeHandParser.cxx:3203
FreeHandParser::sendTextbox
bool sendTextbox(FreeHandParserInternal::Textbox const &textbox, MWAWTransformation const &transform)
try to send a basic textbox
Definition: FreeHandParser.cxx:3493
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
FreeHandParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: FreeHandParser.cxx:1015
FreeHandParserInternal::SubDocument::SubDocument
SubDocument(FreeHandParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: FreeHandParser.cxx:654