Go to the documentation of this file.
38 #ifndef HAN_MAC_WRD_J_GRAPH
39 # define HAN_MAC_WRD_J_GRAPH
46 #include <librevenge/librevenge.h>
114 std::shared_ptr<HanMacWrdJGraphInternal::Frame>
readFrame(
int id);
196 std::shared_ptr<HanMacWrdJGraphInternal::State>
m_state;
~ShapeGraph() final
destructor
Definition: HanMacWrdJGraph.cxx:750
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:563
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:351
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::vector< Pattern > m_patternList
a list patternId -> pattern
Definition: HanMacWrdJGraph.cxx:870
long m_zId
the picture id
Definition: HanMacWrdJGraph.cxx:542
@ CharBaseLine
Definition: MWAWPosition.hxx:51
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
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:547
bool sendTableUnformatted(long zId)
try to send a table unformatted
Definition: HanMacWrdJGraph.cxx:2194
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: HanMacWrdJGraph.cxx:996
Table(HanMacWrdJGraph &parser)
constructor
Definition: HanMacWrdJGraph.cxx:167
bool sendPageGraphics(std::vector< long > const &doNotSendIds)
try to send the page graphic
Definition: HanMacWrdJGraph.cxx:3034
@ Text
Definition: HanMacWrdJGraph.cxx:951
MWAWBox2f getBdBox() const
return the frame bdbox
Definition: HanMacWrdJGraph.cxx:339
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:324
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:545
~SeparatorFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:570
std::string m_extra
extra data
Definition: HanMacWrdJGraph.cxx:128
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:636
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::shared_ptr< HanMacWrdJGraphInternal::ShapeGraph > readShapeGraph(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the basic graph data
Definition: HanMacWrdJGraph.cxx:2566
MWAWVec2f m_scale
the scale
Definition: HanMacWrdJGraph.cxx:546
std::map< long, int > getTextFrameInformations() const
return a list textZId -> type which type=0(main), 1(header), 2(footer), 3(footnote),...
Definition: HanMacWrdJGraph.cxx:1111
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr const &input, MWAWPosition const &pos, Type type, long id, int firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:962
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:838
MWAWParserStatePtr m_parserState
the parser state
Definition: HanMacWrdJGraph.hxx:193
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
int numPages() const
returns the number of pages
Definition: HanMacWrdJGraph.cxx:1090
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
std::string m_extra
extra data
Definition: MWAWGraphicStyle.hxx:478
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:318
Internal: the table of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:165
long m_zId
the group id
Definition: HanMacWrdJGraph.cxx:502
std::vector< MWAWColor > m_colorList
a list colorId -> color
Definition: HanMacWrdJGraph.cxx:868
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:497
bool sendContent(MWAWListenerPtr listener, MWAWTable &table) final
call when the content of a cell must be send
Definition: HanMacWrdJGraph.cxx:208
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:234
virtual ~HanMacWrdJGraph()
destructor
Definition: HanMacWrdJGraph.cxx:1066
std::map< long, int > m_framesMap
a map zId->frame pos in frames list
Definition: HanMacWrdJGraph.cxx:863
HanMacWrdJParser * m_mainParser
the main parser;
Definition: HanMacWrdJGraph.hxx:199
bool readFrames(MWAWEntry const &entry)
try to read the frames definition (type 3)
Definition: HanMacWrdJGraph.cxx:1170
bool sendComment(HanMacWrdJGraphInternal::CommentFrame const &textbox, MWAWPosition const &pos, librevenge::RVNGPropertyList const &extras=librevenge::RVNGPropertyList())
try to send a comment box to the listener
Definition: HanMacWrdJGraph.cxx:2133
bool readTableFormatsList(HanMacWrdJGraphInternal::Table &table, long endPos)
try to read a list of format
Definition: HanMacWrdJGraph.cxx:1911
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:202
long m_zId
the cell zone id
Definition: HanMacWrdJGraph.cxx:116
~Group() final
destructor
Definition: HanMacWrdJGraph.cxx:507
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:76
friend std::ostream & operator<<(std::ostream &o, ShapeGraph const &graph)
operator<<
Definition: HanMacWrdJGraph.cxx:728
bool sendGroup(long zId, MWAWPosition const &pos)
try to send a group to the listener
Definition: HanMacWrdJGraph.cxx:2796
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:531
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:423
the main class to read the graphic part of a HanMac Word-J file
Definition: HanMacWrdJGraph.hxx:79
Internal: the subdocument of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:948
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
std::shared_ptr< Table > m_table
the table
Definition: HanMacWrdJGraph.cxx:612
Internal: the structures of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:63
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:661
@ BottomBit
Definition: libmwaw_internal.hxx:178
MWAWEntry m_entry
the picture entry
Definition: HanMacWrdJGraph.cxx:540
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:360
int m_arrowsFlag
the lines arrow flag
Definition: HanMacWrdJGraph.cxx:747
bool isLinked() const
returns true if the box is linked to other textbox
Definition: HanMacWrdJGraph.cxx:641
SeparatorFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:558
@ Group
Definition: HanMacWrdJGraph.cxx:951
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 m_extra
an extra string
Definition: HanMacWrdJGraph.cxx:376
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:561
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:350
Internal: the table frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:576
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:646
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:659
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:699
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:1118
bool sendShapeGraph(HanMacWrdJGraphInternal::ShapeGraph const &pict, MWAWPosition const &pos)
try to send a basic picture to the listener
Definition: HanMacWrdJGraph.cxx:2044
@ UnformattedTable
Definition: HanMacWrdJGraph.cxx:951
@ Graphic
Definition: MWAWListener.hxx:56
@ None
Definition: libmwaw_internal.hxx:335
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:237
bool getFootnoteInformations(long &textZId, std::vector< long > &fPosList) const
return the footnote text zone id and the list of first char position
Definition: HanMacWrdJGraph.cxx:1147
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:683
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
long m_length
related to text length?
Definition: HanMacWrdJGraph.cxx:610
bool m_inGroup
true if this node is a group's child
Definition: HanMacWrdJGraph.cxx:372
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:316
std::shared_ptr< HanMacWrdJGraphInternal::TextFrame > readTextData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read a text data (text, header/footer, footnote)
Definition: HanMacWrdJGraph.cxx:2528
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:124
TextboxFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:624
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:190
void initColors()
init the color list
Definition: HanMacWrdJGraph.cxx:902
int m_formatId
the format id
Definition: HanMacWrdJGraph.cxx:364
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:215
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:313
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:263
void prepareStructures()
check the group structures, the linked textbox
Definition: HanMacWrdJGraph.cxx:2710
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:261
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:321
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:336
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:723
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:417
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:326
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
ShapeGraph(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:714
HanMacWrdJGraph & operator=(HanMacWrdJGraph const &orig)=delete
Frame()
constructor
Definition: HanMacWrdJGraph.cxx:323
Pattern(uint16_t const *pat=nullptr)
constructor ( 4 int by patterns )
Definition: HanMacWrdJGraph.cxx:758
bool readTable(MWAWEntry const &entry, int actZone)
try to read a table (zone 7)
Definition: HanMacWrdJGraph.cxx:1696
MWAWPosition m_pos
the position in a frame
Definition: HanMacWrdJGraph.cxx:989
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJParser.cxx:195
long m_linkToFId
the next link zone
Definition: HanMacWrdJGraph.cxx:663
std::shared_ptr< HanMacWrdJGraphInternal::TableFrame > readTableData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the table data
Definition: HanMacWrdJGraph.cxx:2445
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:132
int version() const
returns the file version
Definition: HanMacWrdJGraph.cxx:1070
Internal: the state of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:794
@ 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
long m_id
the zone id
Definition: HanMacWrdJGraph.cxx:985
bool getPattern(int id, Pattern &pattern)
returns a pattern correspond to an id
Definition: HanMacWrdJGraph.cxx:839
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1125
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
std::shared_ptr< HanMacWrdJGraphInternal::Frame > readFrame(int id)
try to read a frame
Definition: HanMacWrdJGraph.cxx:1390
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::vector< CellFormat > m_formatsList
a list of cell format
Definition: HanMacWrdJGraph.cxx:197
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:590
long m_firstChar
the first char position
Definition: HanMacWrdJGraph.cxx:987
State()
constructor
Definition: HanMacWrdJGraph.cxx:796
Internal: the geometrical graph of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:712
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:564
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
bool readGroupData(MWAWEntry const &entry, int actZone)
try to read the groupd data ( type 9 )
Definition: HanMacWrdJGraph.cxx:1502
void sendGroupChild(HanMacWrdJGraphInternal::Group const &group, MWAWPosition const &pos)
try to send a group elements by elements
Definition: HanMacWrdJGraph.cxx:2900
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:421
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
int m_id
the local id
Definition: HanMacWrdJGraph.cxx:362
int m_formatId
the cell format id
Definition: HanMacWrdJGraph.cxx:124
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:110
int m_flags
the cell flags
Definition: HanMacWrdJGraph.cxx:126
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
@ Bottom
Definition: libmwaw_internal.hxx:176
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:411
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:479
Internal: the text frame (basic, header, footer, footnote) of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:674
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:212
Internal: the pattern of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:756
Table(Table const &orig)=delete
std::vector< std::shared_ptr< Frame > > m_framesList
the list of frames
Definition: HanMacWrdJGraph.cxx:861
void updateCells()
update all cells using the formats list
Definition: HanMacWrdJGraph.cxx:215
FrameFormat const & getFrameFormat(int id) const
returns the frame format corresponding to an id
Definition: HanMacWrdJGraph.cxx:820
bool getColor(int id, MWAWColor &col)
returns a color correspond to an id
Definition: HanMacWrdJGraph.cxx:828
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
TableCell(long tId)
constructor
Definition: HanMacWrdJGraph.cxx:98
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:151
~SubDocument() final
destructor
Definition: HanMacWrdJGraph.cxx:971
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:65
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:223
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:703
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:258
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:735
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:91
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
a table cell in a table in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:96
Type m_type
the zone type
Definition: HanMacWrdJGraph.cxx:983
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
friend std::ostream & operator<<(std::ostream &o, TableCell const &cell)
operator<<
Definition: HanMacWrdJGraph.cxx:146
Type m_type
the type
Definition: MWAWGraphicShape.hxx:213
@ RightBit
Definition: libmwaw_internal.hxx:178
bool sendFrame(HanMacWrdJGraphInternal::Frame const &frame, MWAWPosition const &pos)
try to send a frame to the listener
Definition: HanMacWrdJGraph.cxx:2223
TextFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:677
MWAWVec2i m_dim
the picture size
Definition: HanMacWrdJGraph.cxx:544
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:207
~TableFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:615
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:81
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:1030
~Pattern() final
destructor
Definition: HanMacWrdJGraph.cxx:788
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:466
long m_textFileId
the text file id
Definition: HanMacWrdJGraph.cxx:195
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:329
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1189
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:608
HanMacWrdJGraph(HanMacWrdJParser &parser)
constructor
Definition: HanMacWrdJGraph.cxx:1059
int m_page
the page
Definition: HanMacWrdJGraph.cxx:366
long m_cPos
the first character position in m_zId
Definition: HanMacWrdJGraph.cxx:120
bool m_parsed
true if we have send the data
Definition: HanMacWrdJGraph.cxx:374
@ FrameInFrame
Definition: HanMacWrdJGraph.cxx:951
@ 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:1109
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:701
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:219
int m_type
the graph type
Definition: HanMacWrdJGraph.cxx:358
void initPatterns()
init the pattenr list
Definition: HanMacWrdJGraph.cxx:875
@ Char
Definition: MWAWPosition.hxx:51
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:261
bool sendPictureFrame(HanMacWrdJGraphInternal::PictureFrame const &pict, MWAWPosition const &pos)
try to send a picture frame
Definition: HanMacWrdJGraph.cxx:2066
@ Top
Definition: libmwaw_internal.hxx:176
friend std::ostream & operator<<(std::ostream &o, Frame const &grph)
operator<<
Definition: HanMacWrdJGraph.cxx:383
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:657
@ VALIGN_CENTER
Definition: MWAWCell.hxx:131
long end() const
returns the end offset
Definition: MWAWEntry.hxx:86
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:419
SubDocument(SubDocument const &orig)=delete
std::shared_ptr< Frame > findFrame(int type, int lId) const
tries to find the lId the frame of a given type
Definition: HanMacWrdJGraph.cxx:805
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:461
@ EmptyPicture
Definition: HanMacWrdJGraph.cxx:951
@ E_Cross
Definition: MWAWCell.hxx:134
@ Line
Definition: MWAWGraphicShape.hxx:49
HanMacWrdJGraph * m_graphParser
the graph parser
Definition: HanMacWrdJGraph.cxx:981
std::ostream & operator<<(std::ostream &o, TableCell const &cell)
Definition: HanMacWrdJGraph.cxx:146
~TextFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:706
TableFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:579
@ Double
Definition: libmwaw_internal.hxx:337
@ LeftBit
Definition: libmwaw_internal.hxx:178
Pattern()
constructor
Definition: MWAWGraphicStyle.hxx:182
std::vector< long > m_childsList
the child list
Definition: HanMacWrdJGraph.cxx:504
int m_height
the table height
Definition: HanMacWrdJGraph.cxx:193
float m_baseline
the baseline
Definition: HanMacWrdJGraph.cxx:370
static MWAWColor getColor(MWAWColor col, float pattern)
returns a color corresponding to a pattern and a color
Definition: HanMacWrdJGraph.cxx:850
~TextboxFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:668
std::shared_ptr< HanMacWrdJGraphInternal::State > m_state
the state
Definition: HanMacWrdJGraph.hxx:196
long m_zId
the textzone id
Definition: HanMacWrdJGraph.cxx:606
bool canCreateGraphic(HanMacWrdJGraphInternal::Group const &group)
check if we can send a group as graphic
Definition: HanMacWrdJGraph.cxx:2823
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:468
HanMacWrdJGraph(HanMacWrdJGraph const &orig)=delete
float m_percent
the percentage
Definition: HanMacWrdJGraph.cxx:785
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:463
PictureFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:515
Defines MWAWTextListener: the libmwaw word processor listener.
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:122
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:688
std::shared_ptr< HanMacWrdJGraphInternal::PictureFrame > readPictureData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the picture data
Definition: HanMacWrdJGraph.cxx:2396
Type
the document type
Definition: HanMacWrdJGraph.cxx:951
~PictureFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:549
@ Right
Definition: libmwaw_internal.hxx:176
@ E_Line1
Definition: MWAWCell.hxx:134
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJGraph.cxx:1075
@ Page
Definition: MWAWPosition.hxx:51
Group(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:488
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:553
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: HanMacWrdJGraph.cxx:1042
@ TopBit
Definition: libmwaw_internal.hxx:178
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
void update(CellFormat const &format)
use cell format to finish updating cell
Definition: HanMacWrdJGraph.cxx:132
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdJGraph.cxx:3059
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:127
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:97
long m_tId
the cell text zone id
Definition: HanMacWrdJGraph.cxx:118
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr const &input, Type type, long id, long firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:953
@ Left
Definition: libmwaw_internal.hxx:176
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1063
@ Frame
Definition: MWAWPosition.hxx:51
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:526
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
HanMacWrdJGraph * m_parser
the graph parser
Definition: HanMacWrdJGraph.cxx:187
MWAWVec2f m_arcAngles
the start and end value which defines an arc
Definition: MWAWGraphicShape.hxx:221
bool m_isLinked
true if this zone is linked
Definition: HanMacWrdJGraph.cxx:665
@ Circle
Definition: MWAWGraphicShape.hxx:49
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
bool sendEmptyPicture(MWAWPosition const &pos)
try to send an empty picture
Definition: HanMacWrdJGraph.cxx:2105
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:549
bool checkGroupStructures(long zId, std::set< long > &seens, bool inGroup)
check the graph structures: ie.
Definition: HanMacWrdJGraph.cxx:2766
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:267
MWAWBox2f m_pos
the position
Definition: HanMacWrdJGraph.cxx:368
@ E_Line2
Definition: MWAWCell.hxx:134
std::shared_ptr< HanMacWrdJGraphInternal::TextboxFrame > readTextboxData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read a textbox data
Definition: HanMacWrdJGraph.cxx:2488
void addTo(librevenge::RVNGPropertyList &pList, bool only1d=false) const
add all the parameters to the propList excepted the frame parameter: the background and the borders
Definition: MWAWGraphicStyle.cxx:191
int m_rows
the number of row
Definition: HanMacWrdJGraph.cxx:189
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
Table & operator=(Table const &orig)=delete
bool readGraphData(MWAWEntry const &entry, int actZone)
try to read the graph data (zone 8)
Definition: HanMacWrdJGraph.cxx:1577
Internal: the textbox frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:621
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
bool sendText(long id, long cPos) const
send a text zone
Definition: HanMacWrdJGraph.cxx:182
SubDocument & operator=(SubDocument const &orig)=delete
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:117
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
bool sendText(long textId, long fPos, MWAWListenerPtr const &listener=MWAWListenerPtr())
ask main parser to send a text zone
Definition: HanMacWrdJGraph.cxx:1106
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:834
Internal: a group of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:485
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Internal: the frame header of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:321
std::shared_ptr< HanMacWrdJGraphInternal::CommentFrame > readCommentData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the comment data
Definition: HanMacWrdJGraph.cxx:2345
virtual ~Frame()
destructor
Definition: HanMacWrdJGraph.cxx:379
bool sendTextbox(HanMacWrdJGraphInternal::TextboxFrame const &textbox, MWAWPosition const &pos)
try to send a textbox to the listener
Definition: HanMacWrdJGraph.cxx:2165
int m_columns
the number of columns
Definition: HanMacWrdJGraph.cxx:191
FrameFormat m_defaultFormat
empty format used to return a default format
Definition: HanMacWrdJGraph.cxx:872
Internal: the picture frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:512
bool readPicture(MWAWEntry const &entry, int actZone)
try to read the pictures definition (type 6)
Definition: HanMacWrdJGraph.cxx:1654
Internal: a footnote separator of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:555
MWAWGraphicShape m_shape
the shape m_shape
Definition: HanMacWrdJGraph.cxx:745
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:595
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:217
~Table() final
destructor
Definition: HanMacWrdJGraph.cxx:204
std::vector< FrameFormat > m_frameFormatsList
the list of frame format
Definition: HanMacWrdJGraph.cxx:865
@ CellPositionBit
Definition: MWAWTable.hxx:56
Generated on Tue Apr 24 2018 22:55:11 for libmwaw by
doxygen 1.8.20