Go to the documentation of this file.
34 #ifndef FREEHAND_PARSER
35 # define FREEHAND_PARSER
40 #include <librevenge/librevenge.h>
@ Z_ColorGroup
Definition: FreeHandParser.cxx:65
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:166
bool readTextboxV2(int zId)
try to read a textbox zone: version 2
Definition: FreeHandParser.cxx:2946
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
friend std::ostream & operator<<(std::ostream &o, StyleHeader const &style)
operator<<
Definition: FreeHandParser.cxx:245
LineCap m_lineCap
the line cap
Definition: MWAWGraphicStyle.hxx:417
int m_mainGroupId
the main group id
Definition: FreeHandParser.cxx:498
std::map< int, Textbox > m_zIdToTextboxMap
the list zoneId to textbox
Definition: FreeHandParser.cxx:520
bool empty() const
return true if we does not have a pattern
Definition: MWAWGraphicStyle.hxx:206
MWAWGraphicShape transform(MWAWTransformation const &matrix) const
returns a new shape corresponding to a matrix transformation
Definition: MWAWGraphicShape.cxx:404
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:547
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:266
bool m_logarithm
flag to know if a flag has logarithmic scale
Definition: FreeHandParser.cxx:197
int m_layerId
the layer id
Definition: FreeHandParser.cxx:166
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
bool openLayer(int zId)
try to open a layer
Definition: FreeHandParser.cxx:3286
std::map< int, LineStyle > m_zIdToLineStyleMap
the list zoneId to lineStyle
Definition: FreeHandParser.cxx:512
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
Internal: the subdocument of a FreeHandParser.
Definition: FreeHandParser.cxx:651
@ J_Bevel
Definition: MWAWGraphicStyle.hxx:53
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:575
int m_values[4]
the unknown values
Definition: FreeHandParser.cxx:170
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:391
const MWAWVec2< T > & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1042
bool sendText(int zId)
try to send the text of a text box
Definition: FreeHandParser.cxx:3523
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:322
friend std::ostream & operator<<(std::ostream &o, ScreenMode const &screen)
operator<<
Definition: FreeHandParser.cxx:80
FreeHandParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: FreeHandParser.cxx:703
std::set< int > m_sendLayerSet
a set of create layer to avoid dupplicating layer
Definition: FreeHandParser.cxx:526
MWAWVec2f m_corner
the corner size
Definition: FreeHandParser.cxx:377
float m_width
the line width
Definition: FreeHandParser.cxx:216
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:227
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: FreeHandParser.cxx:445
int m_labelId
the label id
Definition: FreeHandParser.cxx:259
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:436
@ boldBit
Definition: MWAWFont.hxx:190
@ Z_String
Definition: FreeHandParser.cxx:66
LineStyle()
constructor
Definition: FreeHandParser.cxx:205
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
LineJoin
an enum used to define the basic line join
Definition: MWAWGraphicStyle.hxx:53
std::map< int, ZoneType > m_zIdToTypeMap
the list of id seen
Definition: FreeHandParser.cxx:502
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
const MWAWVec2< T > & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1037
int m_type
the zone type
Definition: FreeHandParser.cxx:257
std::shared_ptr< FreeHandParserInternal::State > m_state
the state
Definition: FreeHandParser.hxx:165
bool readStyleHeader(FreeHandParserInternal::StyleHeader &style)
try to read a style header
Definition: FreeHandParser.cxx:1764
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:206
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
the class to store a color
Definition: libmwaw_internal.hxx:192
float m_baseline
the baseline
Definition: FreeHandParser.cxx:443
@ Unknown
Definition: FreeHandParser.cxx:272
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
@ Z_LineStyleGroup
Definition: FreeHandParser.cxx:66
int m_id
the textbox id
Definition: FreeHandParser.cxx:431
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
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:871
bool sendShape(FreeHandParserInternal::Shape const &shape, MWAWTransformation const &transform)
try to send a basic shape
Definition: FreeHandParser.cxx:3468
Internal: the state of a FreeHandParser.
Definition: FreeHandParser.cxx:456
void closeLayer()
try to close a layer
Definition: FreeHandParser.cxx:3303
@ outlineBit
Definition: MWAWFont.hxx:191
friend std::ostream & operator<<(std::ostream &o, ShapeHeader const &shape)
operator<<
Definition: FreeHandParser.cxx:135
bool readDash(int zId)
try to read the dash zone
Definition: FreeHandParser.cxx:1946
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:186
bool readZoneV2(int zId)
try to read a zone: version 2
Definition: FreeHandParser.cxx:943
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:191
@ G_None
Definition: MWAWGraphicStyle.hxx:55
std::map< int, std::string > m_zIdToStringMap
the list zoneId to string
Definition: FreeHandParser.cxx:514
@ MWAW_T_FREEHAND
FreeHand: v1.
Definition: MWAWDocument.hxx:183
bool m_evenOdd
a flag to know how path intersection are defined
Definition: FreeHandParser.cxx:383
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: FreeHandParser.cxx:662
int m_lineByInch
the line/inch
Definition: FreeHandParser.cxx:113
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:217
MWAWVec2f m_spacings
the letter/word spacing
Definition: FreeHandParser.cxx:439
std::map< int, std::string > m_zIdToPostscriptMap
the list zoneId to postscrip code
Definition: FreeHandParser.cxx:516
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:265
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FreeHandParser.cxx:758
@ Picture
Definition: FreeHandParser.cxx:272
MWAWGraphicStyle::GradientType m_type
the gradient type
Definition: FreeHandParser.cxx:189
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:263
std::string m_extra
extra data
Definition: FreeHandParser.cxx:265
bool readColor(int zId)
try to read a color zone
Definition: FreeHandParser.cxx:1804
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:442
int m_value
unknow value
Definition: FreeHandParser.cxx:115
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:524
@ Rectangle
Definition: FreeHandParser.cxx:272
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:128
Internal: the structures of a FreeHandParser.
Definition: FreeHandParser.cxx:62
bool readGroupV2(int zId)
try to read a group zone: version 2
Definition: FreeHandParser.cxx:1364
structure of FreeHandParserInternal used to stored a font
Definition: FreeHandParser.cxx:397
@ J_Round
Definition: MWAWGraphicStyle.hxx:53
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
bool sendBackgroundPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a background picture
Definition: FreeHandParser.cxx:3387
int m_lineId
the line id
Definition: FreeHandParser.cxx:368
float m_miterLimit
the miter limit
Definition: FreeHandParser.cxx:224
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:3619
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:158
int m_dashId
the dash id
Definition: FreeHandParser.cxx:220
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:176
int m_colorId[2]
the color id
Definition: FreeHandParser.cxx:191
bool m_isSent
flag to known if a shape is sent
Definition: FreeHandParser.cxx:393
@ 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:206
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1127
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ Z_Color
Definition: FreeHandParser.cxx:65
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
bool readShapeHeader(FreeHandParserInternal::ShapeHeader &shape)
try to read a shape header
Definition: FreeHandParser.cxx:1675
int m_id
the subdocument id
Definition: FreeHandParser.cxx:676
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:308
void init()
inits all internal variables
Definition: FreeHandParser.cxx:714
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
bool sendZone(int zId, MWAWTransformation const &transform)
try to send a zone
Definition: FreeHandParser.cxx:3311
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:113
ScreenMode()
constructor
Definition: FreeHandParser.cxx:72
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:222
@ Z_Unknown
Definition: FreeHandParser.cxx:65
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
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
bool addZoneId(int id, ZoneType zoneType)
try to add a id
Definition: FreeHandParser.cxx:484
Shape()
constructor
Definition: FreeHandParser.cxx:275
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:415
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:181
FillStyle()
constructor
Definition: FreeHandParser.cxx:180
SubDocument & operator=(SubDocument const &orig)
@ Group
Definition: FreeHandParser.cxx:272
the main class to read a FreeHand v0,v1 file
Definition: FreeHandParser.hxx:62
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
float m_angle
the angle
Definition: FreeHandParser.cxx:111
MWAWGraphicStyle::LineCap m_cap
the line cap
Definition: FreeHandParser.cxx:226
MWAWFont m_font
the font
Definition: FreeHandParser.cxx:406
@ G_Radial
Definition: MWAWGraphicStyle.hxx:55
std::map< int, FillStyle > m_zIdToFillStyleMap
the list zoneId to fillStyle
Definition: FreeHandParser.cxx:510
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
bool readStringZone(int zId)
try to read a label/font name zone
Definition: FreeHandParser.cxx:1633
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FreeHandParser.cxx:3597
bool readRootGroup(int zId)
try to read the list of group
Definition: FreeHandParser.cxx:1226
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:66
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:225
MWAWGraphicStyle::LineJoin m_join
the line join
Definition: FreeHandParser.cxx:228
int m_actualLayer
the actual layer
Definition: FreeHandParser.cxx:522
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
int m_colorId
the color id
Definition: FreeHandParser.cxx:218
const std::string & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
int m_id
the zone id
Definition: FreeHandParser.cxx:362
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:260
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
bool readPictureZone(int zId)
try to read a picture node
Definition: FreeHandParser.cxx:2443
@ 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:451
MWAWEntry m_picture
the picture entry
Definition: FreeHandParser.cxx:389
bool readScreenMode(FreeHandParserInternal::ScreenMode &screen)
try to read a special scren mode
Definition: FreeHandParser.cxx:1752
Type m_type
the type
Definition: MWAWGraphicShape.hxx:215
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2f m_scalings
the horizontal/vertical scalings
Definition: FreeHandParser.cxx:441
bool sendPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a picture
Definition: FreeHandParser.cxx:3420
int m_nameId
the font name id
Definition: FreeHandParser.cxx:408
bool readTransformGroup(int zId)
try to read a node which contain the group transformation
Definition: FreeHandParser.cxx:1498
Definition: libmwaw_internal.hxx:143
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:2332
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:71
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: FreeHandParser.cxx:727
Type m_type
the type
Definition: FreeHandParser.cxx:364
bool readLineStyle(int zId)
try to read a line style zone
Definition: FreeHandParser.cxx:2187
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:333
@ Z_Dash
Definition: FreeHandParser.cxx:65
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:250
bool readShape(int zId)
try to read a shape
Definition: FreeHandParser.cxx:2525
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1191
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:261
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:373
bool updateShape(MWAWGraphicShape &shape) const
try to returns a shape and position
Definition: FreeHandParser.cxx:296
small structure of FreeHandParserInternal used to stored a fill style
Definition: FreeHandParser.cxx:178
bool updateLineStyle(int zId, MWAWGraphicStyle &style) const
try to update the line style
Definition: FreeHandParser.cxx:578
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: FreeHandParser.cxx:682
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
ZoneType getZoneType(int id) const
try to return a zone type
Definition: FreeHandParser.cxx:477
@ Path
Definition: FreeHandParser.cxx:272
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:201
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
@ Z_PictureName
Definition: FreeHandParser.cxx:66
@ Z_StyleGroup
Definition: FreeHandParser.cxx:66
@ Ellipse
Definition: FreeHandParser.cxx:272
MWAWEntry m_text
the text data
Definition: FreeHandParser.cxx:447
bool readStyleGroup(int zId)
try to read a style group zone
Definition: FreeHandParser.cxx:1562
State()
constructor
Definition: FreeHandParser.cxx:458
ZoneType
the different zone type
Definition: FreeHandParser.cxx:65
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:263
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
std::string m_extra
extra data
Definition: FreeHandParser.cxx:172
structure of FreeHandParserInternal used to stored a textbox
Definition: FreeHandParser.cxx:414
bool readJoinGroup(int zId)
try to read a join zone (used to put text around path)
Definition: FreeHandParser.cxx:1439
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
std::map< int, MWAWColor > m_zIdToColorMap
the list zoneId to color
Definition: FreeHandParser.cxx:504
StyleHeader()
constructor
Definition: FreeHandParser.cxx:235
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
ShapeHeader()
constructor
Definition: FreeHandParser.cxx:123
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:423
float m_angle
the angle
Definition: FreeHandParser.cxx:195
@ C_Square
Definition: MWAWGraphicStyle.hxx:51
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1189
int m_unknownValue
the first unknown value
Definition: FreeHandParser.cxx:263
small structure of FreeHandParserInternal used to stored a shape header
Definition: FreeHandParser.cxx:121
bool readTextboxV1(int zId)
try to read a textbox zone: version 1
Definition: FreeHandParser.cxx:2731
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1070
@ italicBit
Definition: MWAWFont.hxx:190
@ C_Round
Definition: MWAWGraphicStyle.hxx:51
int m_function
the function
Definition: FreeHandParser.cxx:109
small structure of FreeHandParserInternal used to stored a shape
Definition: FreeHandParser.cxx:270
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:164
std::vector< MWAWVec2f > m_vertices
the list of point for path: 3 Vec2f defining each point
Definition: FreeHandParser.cxx:379
std::map< int, std::vector< float > > m_zIdToDashMap
the list zoneId to dash
Definition: FreeHandParser.cxx:506
MWAWTransformation m_transform
the main transformation
Definition: FreeHandParser.cxx:500
bool sendGroup(FreeHandParserInternal::Shape const &group, MWAWTransformation const &transform)
try to send a group shape
Definition: FreeHandParser.cxx:3337
MWAWBox2f m_box
the main box
Definition: FreeHandParser.cxx:435
Font()
constructor
Definition: FreeHandParser.cxx:399
bool readFillStyle(int zId)
try to read a fill zone
Definition: FreeHandParser.cxx:2003
@ Page
Definition: MWAWPosition.hxx:51
bool createZones()
finds the different objects zones
Definition: FreeHandParser.cxx:780
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
@ JustificationFull
Definition: MWAWParagraph.hxx:90
std::vector< int > m_childs
the list of child (for group and join group )
Definition: FreeHandParser.cxx:387
@ JustificationRight
Definition: MWAWParagraph.hxx:91
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
LineJoin m_lineJoin
the line join
Definition: MWAWGraphicStyle.hxx:419
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:413
bool readGroupV1(int zId)
try to read a group zone: version 1
Definition: FreeHandParser.cxx:1309
int m_layerId
the layer
Definition: FreeHandParser.cxx:366
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:196
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:98
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:1017
@ Z_Group
Definition: FreeHandParser.cxx:65
bool m_closed
a flag to know if a path is closed
Definition: FreeHandParser.cxx:381
Type
the different type
Definition: FreeHandParser.cxx:272
~FreeHandParser() final
destructor
Definition: FreeHandParser.cxx:710
bool readBackgroundPicture(int zId)
try to read a background picture zone
Definition: FreeHandParser.cxx:2404
@ Z_Data
Definition: FreeHandParser.cxx:65
int m_type
the zone type
Definition: FreeHandParser.cxx:160
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1065
float m_joinDistance
the join distance
Definition: FreeHandParser.cxx:385
small structure of FreeHandParserInternal used to stored a line style
Definition: FreeHandParser.cxx:203
MWAWVariable< ScreenMode > m_screen
the screen mode
Definition: FreeHandParser.cxx:168
MWAWBox2f m_box
the main box (for line, rectangle, ellipse)
Definition: FreeHandParser.cxx:375
@ Z_FillGroup
Definition: FreeHandParser.cxx:65
int m_layerId
the layer id
Definition: FreeHandParser.cxx:433
small structure of FreeHandParserInternal used to stored a style header
Definition: FreeHandParser.cxx:233
std::string m_note
the note
Definition: FreeHandParser.cxx:162
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:444
Textbox(int id)
constructor
Definition: FreeHandParser.cxx:416
GradientType
an enum used to define the gradient type
Definition: MWAWGraphicStyle.hxx:55
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:551
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:269
Definition: MWAWDocument.hxx:56
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:461
std::map< int, MWAWEntry > m_zIdToDataMap
the list zoneId to data map
Definition: FreeHandParser.cxx:508
MWAWTransformation m_transformation
the transformation
Definition: FreeHandParser.cxx:437
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:211
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:845
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:193
@ Z_Note
Definition: FreeHandParser.cxx:66
~SubDocument() final
destructor
Definition: FreeHandParser.cxx:659
Class to store font.
Definition: MWAWFont.hxx:43
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:119
@ Z_DashGroup
Definition: FreeHandParser.cxx:65
@ Line
Definition: FreeHandParser.cxx:272
int m_fillId
the fill id
Definition: FreeHandParser.cxx:370
@ Z_Picture
Definition: FreeHandParser.cxx:66
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:101
@ JoinGroup
Definition: FreeHandParser.cxx:272
std::map< int, Font > m_posToFontMap
map char pos to font
Definition: FreeHandParser.cxx:449
int m_colorId
the font color id
Definition: FreeHandParser.cxx:410
long m_size
a field related to the zone size
Definition: FreeHandParser.cxx:255
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:836
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
@ BackgroundPicture
Definition: FreeHandParser.cxx:272
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
bool updateFillStyle(int zId, MWAWGraphicStyle &style) const
try to update the fill style
Definition: FreeHandParser.cxx:529
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
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
std::map< int, Shape > m_zIdToShapeMap
the list zoneId to shape
Definition: FreeHandParser.cxx:518
bool readDataZone(int zId)
try to read a data zone
Definition: FreeHandParser.cxx:3203
bool sendTextbox(FreeHandParserInternal::Textbox const &textbox, MWAWTransformation const &transform)
try to send a basic textbox
Definition: FreeHandParser.cxx:3493
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: FreeHandParser.cxx:1015
SubDocument(FreeHandParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: FreeHandParser.cxx:654
Generated on Mon Apr 25 2022 14:03:04 for libmwaw by
doxygen 1.8.17