Go to the documentation of this file.
38 #ifndef HAN_MAC_WRD_K_GRAPH
39 # define HAN_MAC_WRD_K_GRAPH
45 #include <librevenge/librevenge.h>
111 bool readFrames(std::shared_ptr<HanMacWrdKZone> zone);
113 bool readPicture(std::shared_ptr<HanMacWrdKZone> zone);
135 bool checkGroupStructures(
long fileId,
long fileSubId, std::multimap<long, long> &seens,
bool inGroup);
188 std::shared_ptr<HanMacWrdKGraphInternal::State>
m_state;
bool readFrames(std::shared_ptr< HanMacWrdKZone > zone)
try to read the frame definition (type 2)
Definition: HanMacWrdKGraph.cxx:1042
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
~TextBox() final
destructor
Definition: HanMacWrdKGraph.cxx:604
@ CharBaseLine
Definition: MWAWPosition.hxx:51
Pattern & operator=(Pattern const &)=default
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::ostream & operator<<(std::ostream &o, Frame const &grph)
Definition: HanMacWrdKGraph.cxx:137
bool m_inGroup
true if the frame is a child of a group
Definition: HanMacWrdKGraph.cxx:126
MWAWGraphicShape m_shape
the shape m_shape
Definition: HanMacWrdKGraph.cxx:233
std::string m_extra
extra data
Definition: HanMacWrdKGraph.cxx:413
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:421
std::shared_ptr< HanMacWrdKGraphInternal::Group > readGroup(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
try to read the group data
Definition: HanMacWrdKGraph.cxx:1662
SubDocument & operator=(SubDocument const &orig)=delete
long m_id
the cell id ( corresponding to the last data in the main zones list )
Definition: HanMacWrdKGraph.cxx:407
int m_numCells
the number of cells
Definition: HanMacWrdKGraph.cxx:485
the main class to read a HanMac Word-K file
Definition: HanMacWrdKParser.hxx:186
bool sendShapeGraph(HanMacWrdKGraphInternal::ShapeGraph const &shape, MWAWPosition const &pos)
try to send a basic picture to the listener
Definition: HanMacWrdKGraph.cxx:1453
~Picture()
destructor
Definition: HanMacWrdKGraph.cxx:629
long m_fileSubId
the file sub id
Definition: HanMacWrdKGraph.cxx:108
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
a note
Definition: libmwaw_internal.hxx:445
bool sendText(long textId, long id, MWAWListenerPtr const &listener=MWAWListenerPtr())
ask main parser to send a text zone
Definition: HanMacWrdKGraph.cxx:989
Table(Frame const &orig, HanMacWrdKGraph &parser)
constructor
Definition: HanMacWrdKGraph.cxx:434
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
Type
the document type
Definition: HanMacWrdKGraph.cxx:827
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
long m_pos[2]
the first and last position of the picture data in the zone
Definition: HanMacWrdKGraph.cxx:643
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
long m_textFileId
the text file id
Definition: HanMacWrdKGraph.cxx:487
Group(Frame const &orig)
constructor
Definition: HanMacWrdKGraph.cxx:283
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdKGraph.cxx:956
bool m_commentBox
a flag to know if this is a comment textbox
Definition: HanMacWrdKGraph.cxx:593
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
HanMacWrdKGraph & operator=(HanMacWrdKGraph const &orig)=delete
bool canSendTextAsGraphic(long id, long subId)
check if we can send a textzone as graphic
Definition: HanMacWrdKParser.cxx:177
Pattern(uint16_t const *pat=nullptr)
constructor ( 4 int by patterns )
Definition: HanMacWrdKGraph.cxx:658
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
~ShapeGraph() final
destructor
Definition: HanMacWrdKGraph.cxx:236
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:520
Pattern & operator=(Pattern &&)=default
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
bool m_parsed
a flag to know if the picture was send to the receiver
Definition: HanMacWrdKGraph.cxx:649
@ BottomBit
Definition: libmwaw_internal.hxx:178
int numPages() const
returns the number of pages
Definition: HanMacWrdKGraph.cxx:973
Internal: the picture of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:617
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
std::string print() const
print local data
Definition: HanMacWrdKGraph.cxx:465
SubDocument(HanMacWrdKGraph &pars, MWAWInputStreamPtr const &input, MWAWPosition const &pos, Type type, long id, long subId=0)
constructor
Definition: HanMacWrdKGraph.cxx:840
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:447
bool m_isLinked
a flag to know if this textbox is linked to a previous box
Definition: HanMacWrdKGraph.cxx:601
~PictureFrame() final
destructor
Definition: HanMacWrdKGraph.cxx:386
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1122
Frame()
constructor
Definition: HanMacWrdKGraph.cxx:70
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
std::map< long, std::shared_ptr< Picture > > m_picturesMap
a map fileId -> picture
Definition: HanMacWrdKGraph.cxx:745
@ Graphic
Definition: MWAWListener.hxx:56
bool sendTextBox(HanMacWrdKGraphInternal::TextBox const &textbox, MWAWPosition const &pos)
try to send a textbox to the listener
Definition: HanMacWrdKGraph.cxx:1429
std::string print() const
print local data
Definition: HanMacWrdKGraph.cxx:332
@ None
Definition: libmwaw_internal.hxx:335
Internal: the textbox of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:499
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
std::string m_extra
extra data
Definition: HanMacWrdKGraph.cxx:651
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
int m_type
the graph type
Definition: HanMacWrdKGraph.cxx:104
TableCell()
constructor
Definition: HanMacWrdKGraph.cxx:394
long m_fileId
the file id
Definition: HanMacWrdKGraph.cxx:106
int m_values[2]
two values
Definition: HanMacWrdKGraph.cxx:324
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
friend std::ostream & operator<<(std::ostream &o, Picture const &pict)
operator<<
Definition: HanMacWrdKGraph.cxx:633
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
PictureFrame(Frame const &orig)
constructor
Definition: HanMacWrdKGraph.cxx:344
float m_dim[2]
two auxilliary dim for memo textbox
Definition: HanMacWrdKGraph.cxx:597
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
std::vector< Pattern > m_patternList
the patterns list
Definition: HanMacWrdKGraph.cxx:749
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:410
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
@ EmptyPicture
Definition: HanMacWrdKGraph.cxx:827
long m_fileId
the child id
Definition: HanMacWrdKGraph.cxx:322
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
float m_percent
the percentage
Definition: HanMacWrdKGraph.cxx:688
long m_subId
the zone subId ( for table cell )
Definition: HanMacWrdKGraph.cxx:867
HanMacWrdKParser * m_mainParser
the main parser;
Definition: HanMacWrdKGraph.hxx:191
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:514
Defines MWAWCell (cell content and format)
bool sendFrame(long frameId, MWAWPosition const &pos)
try to send a frame to the listener
Definition: HanMacWrdKGraph.cxx:1264
bool sendPictureFrame(HanMacWrdKGraphInternal::PictureFrame const &pict, MWAWPosition const &pos)
try to send a picture frame
Definition: HanMacWrdKGraph.cxx:1418
MWAWPosition m_pos
the position in a frame
Definition: HanMacWrdKGraph.cxx:869
int m_flags
the cell data
Definition: HanMacWrdKGraph.cxx:411
Internal: the frame header of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:68
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
Child()
constructor
Definition: HanMacWrdKGraph.cxx:304
std::string print() const
print local data
Definition: HanMacWrdKGraph.cxx:362
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
Internal: the geometrical graph of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:200
@ 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
bool hasPattern() const
returns true if the pattern is defined
Definition: MWAWGraphicStyle.hxx:432
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
bool sendEmptyPicture(MWAWPosition const &pos)
try to send an empty picture
Definition: HanMacWrdKGraph.cxx:1391
bool sendGroup(long fId, MWAWPosition const &pos)
try to send a group to the listener
Definition: HanMacWrdKGraph.cxx:1998
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
SubDocumentType
Definition: libmwaw_internal.hxx:188
a table cell in a table in HanMacWrdKGraph
Definition: HanMacWrdKGraph.cxx:392
std::vector< MWAWColor > m_colorList
a list colorId -> color
Definition: HanMacWrdKGraph.cxx:747
int m_id
the local id
Definition: HanMacWrdKGraph.cxx:110
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
void prepareStructures()
check the group structures, the linked textbox
Definition: HanMacWrdKGraph.cxx:2211
struct to store child data in HanMacWrdKGraphInternal::Group
Definition: HanMacWrdKGraph.cxx:302
bool getPattern(int id, Pattern &pattern)
returns a pattern correspond to an id
Definition: HanMacWrdKGraph.cxx:719
bool readPicture(std::shared_ptr< HanMacWrdKZone > zone)
try to read a picture zone (type d)
Definition: HanMacWrdKGraph.cxx:1163
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
Frame(Frame const &)=default
bool sendPicture(long pictId, MWAWPosition const &pos)
try to send a picture to the listener
Definition: HanMacWrdKGraph.cxx:1220
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
long m_fileSubId
the file subid
Definition: HanMacWrdKGraph.cxx:647
int m_values[7]
some unknown int
Definition: HanMacWrdKGraph.cxx:383
T y() const
second element
Definition: libmwaw_internal.hxx:673
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
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:481
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
T x() const
first element
Definition: libmwaw_internal.hxx:668
MWAWBox2f getBdBox() const
return the frame bdbox
Definition: HanMacWrdKGraph.cxx:90
MWAWBox2f m_pos
the position
Definition: HanMacWrdKGraph.cxx:114
int m_columns
the number of columns
Definition: HanMacWrdKGraph.cxx:483
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:333
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
State()
constructor
Definition: HanMacWrdKGraph.cxx:699
~Group() final
destructor
Definition: HanMacWrdKGraph.cxx:328
std::shared_ptr< HanMacWrdKGraphInternal::FootnoteFrame > readFootnoteFrame(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
try to read the footnote data
Definition: HanMacWrdKGraph.cxx:1742
#define M_PI
Definition: libmwaw_internal.hxx:52
void addTo(MWAWGraphicStyle &style) const
add property to frame extra values
Definition: HanMacWrdKGraph.cxx:518
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
HanMacWrdKGraph * m_parser
the graph parser
Definition: HanMacWrdKGraph.cxx:479
virtual ~Frame()
destructor
Definition: HanMacWrdKGraph.cxx:133
MWAWGraphicStyle getStyle() const
return the current style
Definition: HanMacWrdKGraph.cxx:217
Internal: the picture of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:342
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
std::string print() const
print local data
Definition: HanMacWrdKGraph.cxx:225
@ RightBit
Definition: libmwaw_internal.hxx:178
bool sendTableUnformatted(long fId)
try to send a table unformatted
Definition: HanMacWrdKGraph.cxx:1466
std::shared_ptr< HanMacWrdKGraphInternal::State > m_state
the state
Definition: HanMacWrdKGraph.hxx:188
Internal: the group of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:280
HanMacWrdKGraph(HanMacWrdKGraph const &orig)=delete
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
int version() const
returns the file version
Definition: HanMacWrdKGraph.cxx:951
MWAWVec2f m_borders[4]
the border default size (before using width), 0 means Top, other unknown
Definition: HanMacWrdKGraph.cxx:124
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:1032
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
std::shared_ptr< HanMacWrdKGraphInternal::PictureFrame > readPictureFrame(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
try to read the picture data
Definition: HanMacWrdKGraph.cxx:1700
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
Picture(std::shared_ptr< HanMacWrdKZone > const &zone)
constructor
Definition: HanMacWrdKGraph.cxx:619
int m_pictureType
a type
Definition: HanMacWrdKGraph.cxx:377
float m_baseline
the baseline
Definition: HanMacWrdKGraph.cxx:116
@ Pie
Definition: MWAWGraphicShape.hxx:49
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1111
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:222
bool checkGroupStructures(long fileId, long fileSubId, std::multimap< long, long > &seens, bool inGroup)
check the graph structures: ie.
Definition: HanMacWrdKGraph.cxx:2239
MWAWGraphicStyle m_style
the style
Definition: HanMacWrdKGraph.cxx:120
void initPatterns()
init the pattenr list
Definition: HanMacWrdKGraph.cxx:752
Table(Table const &orig)=delete
@ Char
Definition: MWAWPosition.hxx:51
TextBox(Frame const &orig, bool isComment)
constructor
Definition: HanMacWrdKGraph.cxx:501
Type m_type
the zone type
Definition: HanMacWrdKGraph.cxx:863
long m_fileId
the file id
Definition: HanMacWrdKGraph.cxx:645
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: HanMacWrdKGraph.cxx:924
std::string m_extra
an extra string
Definition: HanMacWrdKGraph.cxx:130
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
TableCell * get(int i)
return the i^th table cell
Definition: HanMacWrdKGraph.cxx:447
std::string print() const
print local data
Definition: HanMacWrdKGraph.cxx:576
friend std::ostream & operator<<(std::ostream &o, Frame const &grph)
operator<<
Definition: HanMacWrdKGraph.cxx:137
bool sendPageGraphics(std::vector< long > const &doNotSendIds)
try to send the page graphic
Definition: HanMacWrdKGraph.cxx:2274
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
@ VALIGN_CENTER
Definition: MWAWCell.hxx:134
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
Internal: the pattern of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:656
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:548
bool getColor(int id, MWAWColor &col)
returns a color correspond to an id
Definition: HanMacWrdKGraph.cxx:708
@ E_Cross
Definition: MWAWCell.hxx:137
@ Line
Definition: MWAWGraphicShape.hxx:49
Internal: the table of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:432
@ Double
Definition: libmwaw_internal.hxx:337
@ LeftBit
Definition: libmwaw_internal.hxx:178
Pattern()
constructor
Definition: MWAWGraphicStyle.hxx:279
Pattern(Pattern const &)=default
std::multimap< long, std::shared_ptr< Frame > > m_framesMap
a map fileId -> frame
Definition: HanMacWrdKGraph.cxx:743
int m_rows
the number of row
Definition: HanMacWrdKGraph.cxx:481
std::shared_ptr< HanMacWrdKGraphInternal::Table > readTable(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
try to read the table data
Definition: HanMacWrdKGraph.cxx:1825
the main class to read the graphic part of a HanMac Word file
Definition: HanMacWrdKGraph.hxx:78
@ SizeBit
Definition: MWAWTable.hxx:56
Internal: the structures of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:65
long m_textFileId
the text file id
Definition: HanMacWrdKGraph.cxx:595
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:470
bool m_parsed
true if we have send the data
Definition: HanMacWrdKGraph.cxx:128
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:550
Defines MWAWTextListener: the libmwaw word processor listener.
long m_id
the zone id
Definition: HanMacWrdKGraph.cxx:865
bool sendText(long id, long subId, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdKParser.cxx:172
MWAWVec2f m_borderDim
the border dim?
Definition: HanMacWrdKGraph.cxx:381
@ E_Line1
Definition: MWAWCell.hxx:137
Internal: the subdocument of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:824
@ Page
Definition: MWAWPosition.hxx:51
static MWAWColor getColor(MWAWColor col, float pattern)
returns a color corresponding to a pattern and a color
Definition: HanMacWrdKGraph.cxx:731
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
@ TopBit
Definition: libmwaw_internal.hxx:178
int m_posFlags
the graph anchor flags
Definition: HanMacWrdKGraph.cxx:118
friend std::ostream & operator<<(std::ostream &o, TableCell const &cell)
operator<<
Definition: HanMacWrdKGraph.cxx:416
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
@ FrameInFrame
Definition: HanMacWrdKGraph.cxx:827
SubDocument(HanMacWrdKGraph &pars, MWAWInputStreamPtr const &input, Type type, long id, long subId=0)
constructor
Definition: HanMacWrdKGraph.cxx:829
std::shared_ptr< HanMacWrdKZone > m_zone
the main zone
Definition: HanMacWrdKGraph.cxx:641
bool sendText(long textId, long id) const
send a text zone
Definition: HanMacWrdKGraph.cxx:453
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
bool canCreateGraphic(HanMacWrdKGraphInternal::Group const &group)
check if we can send a group as graphic
Definition: HanMacWrdKGraph.cxx:2021
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: HanMacWrdKGraph.cxx:876
std::vector< Child > m_childsList
the list of child
Definition: HanMacWrdKGraph.cxx:300
~Table() final
destructor
Definition: HanMacWrdKGraph.cxx:493
std::vector< long > m_linkedIdList
the list of linked remaining textbox id
Definition: HanMacWrdKGraph.cxx:599
bool sendContent(MWAWListenerPtr listener, MWAWTable &table) final
call when the content of a cell must be send
Definition: HanMacWrdKGraph.cxx:608
friend std::ostream & operator<<(std::ostream &o, TextBox const &textbox)
operator<<
Definition: HanMacWrdKGraph.cxx:569
bool sendAsText(MWAWListenerPtr listener)
try to send the table as basic text
Definition: MWAWTable.cxx:502
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
@ Frame
Definition: MWAWPosition.hxx:51
int m_page
the page
Definition: HanMacWrdKGraph.cxx:112
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ Group
Definition: HanMacWrdKGraph.cxx:827
std::shared_ptr< HanMacWrdKGraphInternal::TextBox > readTextBox(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header, bool isMemo)
try to read the textbox data
Definition: HanMacWrdKGraph.cxx:1778
bool isLinked() const
returns true if the box is linked to other textbox
Definition: HanMacWrdKGraph.cxx:513
@ FootNote
Definition: libmwaw_internal.hxx:447
MWAWVec2f m_arcAngles
the start and end value which defines an arc
Definition: MWAWGraphicShape.hxx:224
HanMacWrdKGraph * m_graphParser
the graph parser
Definition: HanMacWrdKGraph.cxx:861
void sendGroupChild(HanMacWrdKGraphInternal::Group const &group, MWAWPosition const &pos)
try to send a group elements by elements
Definition: HanMacWrdKGraph.cxx:2090
@ Circle
Definition: MWAWGraphicShape.hxx:49
HanMacWrdKGraph(HanMacWrdKParser &parser)
constructor
Definition: HanMacWrdKGraph.cxx:941
friend std::ostream & operator<<(std::ostream &o, Child const &ch)
operator<<
Definition: HanMacWrdKGraph.cxx:310
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
@ UnformattedTable
Definition: HanMacWrdKGraph.cxx:827
Small class used to store the decoded zone of HanMacWrdKParser.
Definition: HanMacWrdKParser.hxx:58
virtual ~HanMacWrdKGraph()
destructor
Definition: HanMacWrdKGraph.cxx:948
Table & operator=(Table const &orig)=delete
long m_fileId
the file id
Definition: HanMacWrdKGraph.cxx:409
~SubDocument() final
destructor
Definition: HanMacWrdKGraph.cxx:851
~Pattern() final
destructor
Definition: HanMacWrdKGraph.cxx:691
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdKGraph.cxx:2292
friend std::ostream & operator<<(std::ostream &o, Table const &table)
operator<<
Definition: HanMacWrdKGraph.cxx:458
@ E_Line2
Definition: MWAWCell.hxx:137
SubDocument(SubDocument const &orig)=delete
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
std::shared_ptr< HanMacWrdKGraphInternal::ShapeGraph > readShapeGraph(std::shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
try to read the basic graph data
Definition: HanMacWrdKGraph.cxx:1484
@ Text
Definition: HanMacWrdKGraph.cxx:827
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
std::map< long, int > getTextFrameInformations() const
return a list textZId -> type which 3(footnote), 4(textbox), 9(table), 10(comment)
Definition: HanMacWrdKGraph.cxx:994
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
int m_borderType
the border type
Definition: HanMacWrdKGraph.cxx:122
MWAWParserStatePtr m_parserState
the parser state
Definition: HanMacWrdKGraph.hxx:185
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
MWAWVec2i m_dim
a dim?
Definition: HanMacWrdKGraph.cxx:379
ShapeGraph(Frame const &orig)
constructor
Definition: HanMacWrdKGraph.cxx:202
Internal: the state of a HanMacWrdKGraph.
Definition: HanMacWrdKGraph.cxx:697
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:220
void initColors()
init the color list
Definition: HanMacWrdKGraph.cxx:779
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
@ CellPositionBit
Definition: MWAWTable.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20