Go to the documentation of this file.
34 #ifndef FREEHAND_PARSER
35 # define FREEHAND_PARSER
40 #include <librevenge/librevenge.h>
75 void parse(librevenge::RVNGDrawingInterface *documentInterface);
82 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
165 shared_ptr<FreeHandParserInternal::State>
m_state;
@ Z_ColorGroup
Definition: FreeHandParser.cxx:65
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
bool readTextboxV2(int zId)
try to read a textbox zone: version 2
Definition: FreeHandParser.cxx:2879
friend std::ostream & operator<<(std::ostream &o, StyleHeader const &style)
operator<<
Definition: FreeHandParser.cxx:218
LineCap m_lineCap
the line cap
Definition: MWAWGraphicStyle.hxx:377
int m_mainGroupId
the main group id
Definition: FreeHandParser.cxx:433
std::map< int, Textbox > m_zIdToTextboxMap
the list zoneId to textbox
Definition: FreeHandParser.cxx:455
bool empty() const
return true if we does not have a pattern
Definition: MWAWGraphicStyle.hxx:188
MWAWGraphicShape transform(MWAWTransformation const &matrix) const
returns a new shape corresponding to a matrix transformation
Definition: MWAWGraphicShape.cxx:400
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
bool m_logarithm
flag to know if a flag has logarithmic scale
Definition: FreeHandParser.cxx:182
int m_layerId
the layer id
Definition: FreeHandParser.cxx:155
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool openLayer(int zId)
try to open a layer
Definition: FreeHandParser.cxx:3219
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: FreeHandParser.cxx:951
virtual ~SubDocument()
destructor
Definition: FreeHandParser.cxx:590
std::map< int, LineStyle > m_zIdToLineStyleMap
the list zoneId to lineStyle
Definition: FreeHandParser.cxx:447
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
Internal: the subdocument of a FreeHandParser.
Definition: FreeHandParser.cxx:585
@ J_Bevel
Definition: MWAWGraphicStyle.hxx:53
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:527
int m_values[4]
the unknown values
Definition: FreeHandParser.cxx:159
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
int m_dataId
the id of a the picture date
Definition: FreeHandParser.cxx:351
bool sendText(int zId)
try to send the text of a text box
Definition: FreeHandParser.cxx:3457
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
friend std::ostream & operator<<(std::ostream &o, ScreenMode const &screen)
operator<<
Definition: FreeHandParser.cxx:76
std::set< int > m_sendLayerSet
a set of create layer to avoid dupplicating layer
Definition: FreeHandParser.cxx:461
MWAWVec2f m_corner
the corner size
Definition: FreeHandParser.cxx:337
float m_width
the line width
Definition: FreeHandParser.cxx:195
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: FreeHandParser.cxx:392
int m_labelId
the label id
Definition: FreeHandParser.cxx:232
void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: FreeHandParser.cxx:663
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:396
@ boldBit
Definition: MWAWFont.hxx:182
@ Z_String
Definition: FreeHandParser.cxx:66
LineStyle()
constructor
Definition: FreeHandParser.cxx:190
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
LineJoin
an enum used to define the basic line join
Definition: MWAWGraphicStyle.hxx:53
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
std::map< int, ZoneType > m_zIdToTypeMap
the list of id seen
Definition: FreeHandParser.cxx:437
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
int m_type
the zone type
Definition: FreeHandParser.cxx:230
void setWidthStreching(float scale=1.0)
sets the text width streching
Definition: MWAWFont.hxx:282
bool readStyleHeader(FreeHandParserInternal::StyleHeader &style)
try to read a style header
Definition: FreeHandParser.cxx:1701
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:182
float m_baseline
the baseline
Definition: FreeHandParser.cxx:390
@ Unknown
Definition: FreeHandParser.cxx:245
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
@ Z_LineStyleGroup
Definition: FreeHandParser.cxx:66
int m_id
the textbox id
Definition: FreeHandParser.cxx:378
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
int version() const
returns the works version
Definition: MWAWParser.hxx:108
bool readZoneV1(int zId)
try to read a zone: version 1
Definition: FreeHandParser.cxx:807
bool sendShape(FreeHandParserInternal::Shape const &shape, MWAWTransformation const &transform)
try to send a basic shape
Definition: FreeHandParser.cxx:3402
Internal: the state of a FreeHandParser.
Definition: FreeHandParser.cxx:403
void closeLayer()
try to close a layer
Definition: FreeHandParser.cxx:3236
@ outlineBit
Definition: MWAWFont.hxx:183
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
friend std::ostream & operator<<(std::ostream &o, ShapeHeader const &shape)
operator<<
Definition: FreeHandParser.cxx:124
bool readDash(int zId)
try to read the dash zone
Definition: FreeHandParser.cxx:1883
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:182
bool readZoneV2(int zId)
try to read a zone: version 2
Definition: FreeHandParser.cxx:879
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
@ G_None
Definition: MWAWGraphicStyle.hxx:55
std::map< int, std::string > m_zIdToStringMap
the list zoneId to string
Definition: FreeHandParser.cxx:449
@ MWAW_T_FREEHAND
FreeHand: v1.
Definition: MWAWDocument.hxx:183
bool m_evenOdd
a flag to know how path intersection are defined
Definition: FreeHandParser.cxx:343
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
int m_lineByInch
the line/inch
Definition: FreeHandParser.cxx:109
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:271
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:193
MWAWVec2f m_spacings
the letter/word spacing
Definition: FreeHandParser.cxx:386
std::map< int, std::string > m_zIdToPostscriptMap
the list zoneId to postscrip code
Definition: FreeHandParser.cxx:451
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:247
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FreeHandParser.cxx:694
@ Picture
Definition: FreeHandParser.cxx:245
MWAWGraphicStyle::GradientType m_type
the gradient type
Definition: FreeHandParser.cxx:174
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: FreeHandParser.cxx:593
std::string m_extra
extra data
Definition: FreeHandParser.cxx:238
bool readColor(int zId)
try to read a color zone
Definition: FreeHandParser.cxx:1741
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:402
int m_value
unknow value
Definition: FreeHandParser.cxx:111
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
std::set< int > m_sendIdSet
a set of send id used to avoid potential loop
Definition: FreeHandParser.cxx:459
@ Rectangle
Definition: FreeHandParser.cxx:245
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:112
Internal: the structures of a FreeHandParser.
Definition: FreeHandParser.cxx:63
bool readGroupV2(int zId)
try to read a group zone: version 2
Definition: FreeHandParser.cxx:1301
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
SubDocument(FreeHandParser &pars, MWAWInputStreamPtr input, int zoneId)
Definition: FreeHandParser.cxx:587
structure of FreeHandParserInternal used to stored a font
Definition: FreeHandParser.cxx:357
@ J_Round
Definition: MWAWGraphicStyle.hxx:53
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
bool sendBackgroundPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a background picture
Definition: FreeHandParser.cxx:3321
int m_lineId
the line id
Definition: FreeHandParser.cxx:328
float m_miterLimit
the miter limit
Definition: FreeHandParser.cxx:203
static bool decomposeMatrix(MWAWTransformation const &matrix, float &rotation, MWAWTransformation &transform, MWAWVec2f const ¢er)
try to decompose the matrix in a rotation + scaling/translation matrix.
Definition: FreeHandParser.cxx:3555
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:147
int m_dashId
the dash id
Definition: FreeHandParser.cxx:199
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
int m_colorId[2]
the color id
Definition: FreeHandParser.cxx:176
bool m_isSent
flag to known if a shape is sent
Definition: FreeHandParser.cxx:353
virtual ~FreeHandParser()
destructor
Definition: FreeHandParser.cxx:646
@ Polygon
Definition: MWAWGraphicShape.hxx:49
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:205
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ Z_Color
Definition: FreeHandParser.cxx:65
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
bool readShapeHeader(FreeHandParserInternal::ShapeHeader &shape)
try to read a shape header
Definition: FreeHandParser.cxx:1612
int m_id
the subdocument id
Definition: FreeHandParser.cxx:612
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:268
void init()
inits all internal variables
Definition: FreeHandParser.cxx:650
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:87
@ shadowBit
Definition: MWAWFont.hxx:183
bool sendZone(int zId, MWAWTransformation const &transform)
try to send a zone
Definition: FreeHandParser.cxx:3244
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
@ Z_LineStyle
Definition: FreeHandParser.cxx:66
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
ScreenMode()
constructor
Definition: FreeHandParser.cxx:72
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:201
@ Z_Unknown
Definition: FreeHandParser.cxx:65
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
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:197
bool addZoneId(int id, ZoneType zoneType)
try to add a id
Definition: FreeHandParser.cxx:419
Shape()
constructor
Definition: FreeHandParser.cxx:248
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
FillStyle()
constructor
Definition: FreeHandParser.cxx:169
SubDocument & operator=(SubDocument const &orig)
@ Group
Definition: FreeHandParser.cxx:245
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: FreeHandParser.cxx:618
the main class to read a FreeHand v0,v1 file
Definition: FreeHandParser.hxx:63
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:559
float m_angle
the angle
Definition: FreeHandParser.cxx:107
MWAWGraphicStyle::LineCap m_cap
the line cap
Definition: FreeHandParser.cxx:205
MWAWFont m_font
the font
Definition: FreeHandParser.cxx:363
@ G_Radial
Definition: MWAWGraphicStyle.hxx:55
std::map< int, FillStyle > m_zIdToFillStyleMap
the list zoneId to fillStyle
Definition: FreeHandParser.cxx:445
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
bool readStringZone(int zId)
try to read a label/font name zone
Definition: FreeHandParser.cxx:1570
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FreeHandParser.cxx:3531
bool readRootGroup(int zId)
try to read the list of group
Definition: FreeHandParser.cxx:1163
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:201
MWAWGraphicStyle::LineJoin m_join
the line join
Definition: FreeHandParser.cxx:207
int m_actualLayer
the actual layer
Definition: FreeHandParser.cxx:457
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:113
int m_colorId
the color id
Definition: FreeHandParser.cxx:197
int m_id
the zone id
Definition: FreeHandParser.cxx:322
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
#define M_PI
Definition: libmwaw_internal.hxx:49
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:242
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
bool readPictureZone(int zId)
try to read a picture node
Definition: FreeHandParser.cxx:2377
@ Z_Fill
Definition: FreeHandParser.cxx:65
@ Path
Definition: MWAWGraphicShape.hxx:49
@ Z_Shape
Definition: FreeHandParser.cxx:66
bool m_isSent
flag to known if a shape is sent
Definition: FreeHandParser.cxx:398
MWAWEntry m_picture
the picture entry
Definition: FreeHandParser.cxx:349
bool readScreenMode(FreeHandParserInternal::ScreenMode &screen)
try to read a special scren mode
Definition: FreeHandParser.cxx:1689
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
MWAWVec2f m_scalings
the horizontal/vertical scalings
Definition: FreeHandParser.cxx:388
bool sendPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a picture
Definition: FreeHandParser.cxx:3354
int m_nameId
the font name id
Definition: FreeHandParser.cxx:365
float size() const
returns the font size
Definition: MWAWFont.hxx:249
bool readTransformGroup(int zId)
try to read a node which contain the group transformation
Definition: FreeHandParser.cxx:1435
Definition: libmwaw_internal.hxx:142
struct which defines the screen parameters in FreeHandParserInternal
Definition: FreeHandParser.cxx:70
bool readPostscriptStyle(int zId)
try to read a postscript zone
Definition: FreeHandParser.cxx:2266
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Type m_type
the type
Definition: FreeHandParser.cxx:324
bool readLineStyle(int zId)
try to read a line style zone
Definition: FreeHandParser.cxx:2123
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
@ Z_Dash
Definition: FreeHandParser.cxx:65
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
bool readShape(int zId)
try to read a shape
Definition: FreeHandParser.cxx:2459
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:234
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:333
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
bool updateShape(MWAWGraphicShape &shape) const
try to returns a shape and position
Definition: FreeHandParser.cxx:256
small structure of FreeHandParserInternal used to stored a fill style
Definition: FreeHandParser.cxx:167
bool updateLineStyle(int zId, MWAWGraphicStyle &style) const
try to update the line style
Definition: FreeHandParser.cxx:513
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
ZoneType getZoneType(int id) const
try to return a zone type
Definition: FreeHandParser.cxx:412
@ Path
Definition: FreeHandParser.cxx:245
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:134
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
@ Z_PictureName
Definition: FreeHandParser.cxx:66
@ Z_StyleGroup
Definition: FreeHandParser.cxx:66
@ Ellipse
Definition: FreeHandParser.cxx:245
MWAWEntry m_text
the text data
Definition: FreeHandParser.cxx:394
bool readStyleGroup(int zId)
try to read a style group zone
Definition: FreeHandParser.cxx:1499
State()
constructor
Definition: FreeHandParser.cxx:405
ZoneType
the different zone type
Definition: FreeHandParser.cxx:65
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
std::string m_extra
extra data
Definition: FreeHandParser.cxx:161
structure of FreeHandParserInternal used to stored a textbox
Definition: FreeHandParser.cxx:371
bool readJoinGroup(int zId)
try to read a join zone (used to put text around path)
Definition: FreeHandParser.cxx:1376
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
std::map< int, MWAWColor > m_zIdToColorMap
the list zoneId to color
Definition: FreeHandParser.cxx:439
StyleHeader()
constructor
Definition: FreeHandParser.cxx:214
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
ShapeHeader()
constructor
Definition: FreeHandParser.cxx:119
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
float m_angle
the angle
Definition: FreeHandParser.cxx:180
@ C_Square
Definition: MWAWGraphicStyle.hxx:51
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
int m_unknownValue
the first unknown value
Definition: FreeHandParser.cxx:236
small structure of FreeHandParserInternal used to stored a shape header
Definition: FreeHandParser.cxx:117
bool readTextboxV1(int zId)
try to read a textbox zone: version 1
Definition: FreeHandParser.cxx:2664
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1013
@ italicBit
Definition: MWAWFont.hxx:182
@ C_Round
Definition: MWAWGraphicStyle.hxx:51
int m_function
the function
Definition: FreeHandParser.cxx:105
small structure of FreeHandParserInternal used to stored a shape
Definition: FreeHandParser.cxx:243
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
LineCap
an enum used to define the basic line cap
Definition: MWAWGraphicStyle.hxx:51
int m_dataId
the data id (used to store a note, ...)
Definition: FreeHandParser.cxx:153
std::vector< MWAWVec2f > m_vertices
the list of point for path: 3 Vec2f defining each point
Definition: FreeHandParser.cxx:339
std::map< int, std::vector< float > > m_zIdToDashMap
the list zoneId to dash
Definition: FreeHandParser.cxx:441
MWAWTransformation m_transform
the main transformation
Definition: FreeHandParser.cxx:435
bool sendGroup(FreeHandParserInternal::Shape const &group, MWAWTransformation const &transform)
try to send a group shape
Definition: FreeHandParser.cxx:3270
MWAWBox2f m_box
the main box
Definition: FreeHandParser.cxx:382
Font()
constructor
Definition: FreeHandParser.cxx:359
bool readFillStyle(int zId)
try to read a fill zone
Definition: FreeHandParser.cxx:1940
@ Page
Definition: MWAWPosition.hxx:51
bool createZones()
finds the different objects zones
Definition: FreeHandParser.cxx:716
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
@ JustificationFull
Definition: MWAWParagraph.hxx:87
std::vector< int > m_childs
the list of child (for group and join group )
Definition: FreeHandParser.cxx:347
@ JustificationRight
Definition: MWAWParagraph.hxx:88
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
LineJoin m_lineJoin
the line join
Definition: MWAWGraphicStyle.hxx:379
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:373
bool readGroupV1(int zId)
try to read a group zone: version 1
Definition: FreeHandParser.cxx:1246
int m_layerId
the layer
Definition: FreeHandParser.cxx:326
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:962
@ Z_Group
Definition: FreeHandParser.cxx:65
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool m_closed
a flag to know if a path is closed
Definition: FreeHandParser.cxx:341
Type
the different type
Definition: FreeHandParser.cxx:245
SubDocument(SubDocument const &orig)
bool readBackgroundPicture(int zId)
try to read a background picture zone
Definition: FreeHandParser.cxx:2338
@ Z_Data
Definition: FreeHandParser.cxx:65
int m_type
the zone type
Definition: FreeHandParser.cxx:149
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
float m_joinDistance
the join distance
Definition: FreeHandParser.cxx:345
small structure of FreeHandParserInternal used to stored a line style
Definition: FreeHandParser.cxx:188
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:157
MWAWBox2f m_box
the main box (for line, rectangle, ellipse)
Definition: FreeHandParser.cxx:335
@ Z_FillGroup
Definition: FreeHandParser.cxx:65
shared_ptr< FreeHandParserInternal::State > m_state
the state
Definition: FreeHandParser.hxx:165
int m_layerId
the layer id
Definition: FreeHandParser.cxx:380
small structure of FreeHandParserInternal used to stored a style header
Definition: FreeHandParser.cxx:212
std::string m_note
the note
Definition: FreeHandParser.cxx:151
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:404
FreeHandParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: FreeHandParser.cxx:640
Textbox(int id)
constructor
Definition: FreeHandParser.cxx:373
GradientType
an enum used to define the gradient type
Definition: MWAWGraphicStyle.hxx:55
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:421
std::map< int, MWAWEntry > m_zIdToDataMap
the list zoneId to data map
Definition: FreeHandParser.cxx:443
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:384
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:791
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:178
@ Z_Note
Definition: FreeHandParser.cxx:66
Class to store font.
Definition: MWAWFont.hxx:44
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: FreeHandParser.cxx:603
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:985
a simple path component
Definition: MWAWGraphicShape.hxx:53
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:103
@ Z_DashGroup
Definition: FreeHandParser.cxx:65
@ Line
Definition: FreeHandParser.cxx:245
int m_fillId
the fill id
Definition: FreeHandParser.cxx:330
@ Z_Picture
Definition: FreeHandParser.cxx:66
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:99
@ JoinGroup
Definition: FreeHandParser.cxx:245
std::map< int, Font > m_posToFontMap
map char pos to font
Definition: FreeHandParser.cxx:396
int m_colorId
the font color id
Definition: FreeHandParser.cxx:367
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:228
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
@ BackgroundPicture
Definition: FreeHandParser.cxx:245
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:118
bool updateFillStyle(int zId, MWAWGraphicStyle &style) const
try to update the fill style
Definition: FreeHandParser.cxx:464
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
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:199
std::map< int, Shape > m_zIdToShapeMap
the list zoneId to shape
Definition: FreeHandParser.cxx:453
bool readDataZone(int zId)
try to read a data zone
Definition: FreeHandParser.cxx:3136
bool sendTextbox(FreeHandParserInternal::Textbox const &textbox, MWAWTransformation const &transform)
try to send a basic textbox
Definition: FreeHandParser.cxx:3427
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18