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:47
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
bool readTextboxV2(int zId)
try to read a textbox zone: version 2
Definition: FreeHandParser.cxx:2947
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
friend std::ostream & operator<<(std::ostream &o, StyleHeader const &style)
operator<<
Definition: FreeHandParser.cxx:245
LineCap m_lineCap
the line cap
Definition: MWAWGraphicStyle.hxx:510
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:304
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:549
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
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:3287
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:842
Internal: the subdocument of a FreeHandParser.
Definition: FreeHandParser.cxx:653
@ J_Bevel
Definition: MWAWGraphicStyle.hxx:53
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:577
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
bool sendText(int zId)
try to send the text of a text box
Definition: FreeHandParser.cxx:3524
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:415
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:704
Type m_type
the gradient type
Definition: MWAWGraphicStyle.hxx:260
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
@ G_None
Definition: MWAWGraphicStyle.hxx:177
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:228
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: FreeHandParser.cxx:445
int m_labelId
the label id
Definition: FreeHandParser.cxx:259
@ 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
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:1765
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
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:872
bool sendShape(FreeHandParserInternal::Shape const &shape, MWAWTransformation const &transform)
try to send a basic shape
Definition: FreeHandParser.cxx:3469
Internal: the state of a FreeHandParser.
Definition: FreeHandParser.cxx:456
void closeLayer()
try to close a layer
Definition: FreeHandParser.cxx:3304
@ outlineBit
Definition: MWAWFont.hxx:191
@ G_Linear
Definition: MWAWGraphicStyle.hxx:177
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:1947
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:188
bool readZoneV2(int zId)
try to read a zone: version 2
Definition: FreeHandParser.cxx:944
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
std::map< int, std::string > m_zIdToStringMap
the list zoneId to string
Definition: FreeHandParser.cxx:514
@ MWAW_T_FREEHAND
FreeHand: v1.
Definition: MWAWDocument.hxx:207
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:663
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:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
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:363
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FreeHandParser.cxx:759
@ Picture
Definition: FreeHandParser.cxx:272
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
std::string m_extra
extra data
Definition: FreeHandParser.cxx:265
bool readColor(int zId)
try to read a color zone
Definition: FreeHandParser.cxx:1805
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:129
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:1365
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
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:277
bool sendBackgroundPicture(FreeHandParserInternal::Shape const &picture, MWAWTransformation const &transform)
try to send a background picture
Definition: FreeHandParser.cxx:3388
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:3620
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:178
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:1129
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:1676
int m_id
the subdocument id
Definition: FreeHandParser.cxx:677
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
void init()
inits all internal variables
Definition: FreeHandParser.cxx:715
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:3312
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
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:508
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
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: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:625
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
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:48
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
bool readStringZone(int zId)
try to read a label/font name zone
Definition: FreeHandParser.cxx:1634
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: FreeHandParser.cxx:3598
bool readRootGroup(int zId)
try to read the list of group
Definition: FreeHandParser.cxx:1227
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
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
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:358
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
bool readPictureZone(int zId)
try to read a picture node
Definition: FreeHandParser.cxx:2444
@ 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:1753
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
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:3421
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:1499
Definition: libmwaw_internal.hxx:144
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:2333
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: FreeHandParser.cxx:728
Type m_type
the type
Definition: FreeHandParser.cxx:364
bool readLineStyle(int zId)
try to read a line style zone
Definition: FreeHandParser.cxx:2188
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
@ 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:2526
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
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:579
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: FreeHandParser.cxx:683
ZoneType getZoneType(int id) const
try to return a zone type
Definition: FreeHandParser.cxx:477
@ Path
Definition: FreeHandParser.cxx:272
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
@ 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:1563
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:361
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:1440
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
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:516
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:1191
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:2732
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
@ 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
Gradient m_gradient
the gradient
Definition: MWAWGraphicStyle.hxx:533
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:3338
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:2004
@ Page
Definition: MWAWPosition.hxx:51
bool createZones()
finds the different objects zones
Definition: FreeHandParser.cxx:781
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
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
LineJoin m_lineJoin
the line join
Definition: MWAWGraphicStyle.hxx:512
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:506
bool readGroupV1(int zId)
try to read a group zone: version 1
Definition: FreeHandParser.cxx:1310
int m_layerId
the layer
Definition: FreeHandParser.cxx:366
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:1019
@ 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
SubDocument(SubDocument const &orig)
~FreeHandParser() final
destructor
Definition: FreeHandParser.cxx:711
bool readBackgroundPicture(int zId)
try to read a background picture zone
Definition: FreeHandParser.cxx:2405
@ 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:1067
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
Textbox(int id)
constructor
Definition: FreeHandParser.cxx:416
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
Definition: MWAWDocument.hxx:57
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:544
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:213
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:848
MWAWGraphicStyle::Pattern m_pattern
the pattern
Definition: FreeHandParser.cxx:193
@ Z_Note
Definition: FreeHandParser.cxx:66
~SubDocument() final
destructor
Definition: FreeHandParser.cxx:660
Class to store font.
Definition: MWAWFont.hxx:44
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
a simple path component
Definition: MWAWGraphicShape.hxx:53
@ G_Radial
Definition: MWAWGraphicStyle.hxx:177
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
@ 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
Type
an enum used to define the gradient type
Definition: MWAWGraphicStyle.hxx:177
@ LANDSCAPE
Definition: MWAWPageSpan.hxx:102
@ 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:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
@ BackgroundPicture
Definition: FreeHandParser.cxx:272
MWAWGraphicStyle::Gradient::Type m_type
the gradient type
Definition: FreeHandParser.cxx:189
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:99
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:3204
bool sendTextbox(FreeHandParserInternal::Textbox const &textbox, MWAWTransformation const &transform)
try to send a basic textbox
Definition: FreeHandParser.cxx:3494
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:325
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: FreeHandParser.cxx:1016
SubDocument(FreeHandParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: FreeHandParser.cxx:655
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20