HanMacWrdJGraph.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 /*
35  * Parser to HanMac Word-J text document ( graphic part )
36  *
37  */
38 #ifndef HAN_MAC_WRD_J_GRAPH
39 # define HAN_MAC_WRD_J_GRAPH
40 
41 #include <map>
42 #include <set>
43 #include <string>
44 #include <vector>
45 
46 #include <librevenge/librevenge.h>
47 
48 #include "libmwaw_internal.hxx"
49 
50 #include "MWAWDebug.hxx"
51 #include "MWAWInputStream.hxx"
52 
54 {
55 struct CellFormat;
56 struct Frame;
57 struct CommentFrame;
58 struct Group;
59 struct PictureFrame;
60 struct ShapeGraph;
61 struct TableFrame;
62 struct TextboxFrame;
63 struct TextFrame;
64 struct Table;
65 struct TableCell;
66 
67 struct State;
68 class SubDocument;
69 }
70 
71 class HanMacWrdJParser;
72 
79 {
80  friend class HanMacWrdJParser;
83 
84 public:
86  explicit HanMacWrdJGraph(HanMacWrdJParser &parser);
88  virtual ~HanMacWrdJGraph();
89 
91  int version() const;
92 
94  int numPages() const;
95 
96 protected:
97 
99  bool getColor(int colId, int patternId, MWAWColor &color) const;
100 
102  void prepareStructures();
104  bool sendPageGraphics(std::vector<long> const &doNotSendIds);
106  void flushExtra();
107 
108  //
109  // Intermediate level
110  //
112  bool readFrames(MWAWEntry const &entry);
114  std::shared_ptr<HanMacWrdJGraphInternal::Frame> readFrame(int id);
116  std::shared_ptr<HanMacWrdJGraphInternal::ShapeGraph> readShapeGraph(HanMacWrdJGraphInternal::Frame const &header, long endPos);
118  std::shared_ptr<HanMacWrdJGraphInternal::CommentFrame> readCommentData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
120  std::shared_ptr<HanMacWrdJGraphInternal::PictureFrame> readPictureData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
122  std::shared_ptr<HanMacWrdJGraphInternal::TableFrame> readTableData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
124  std::shared_ptr<HanMacWrdJGraphInternal::TextboxFrame> readTextboxData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
126  std::shared_ptr<HanMacWrdJGraphInternal::TextFrame> readTextData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
128  bool readGroupData(MWAWEntry const &entry, int actZone);
130  bool readGraphData(MWAWEntry const &entry, int actZone);
132  bool readPicture(MWAWEntry const &entry, int actZone);
134  bool readTable(MWAWEntry const &entry, int actZone);
136  bool readTableFormatsList(HanMacWrdJGraphInternal::Table &table, long endPos);
137 
138 
140  bool sendFrame(HanMacWrdJGraphInternal::Frame const &frame, MWAWPosition const &pos);
144  bool sendComment(HanMacWrdJGraphInternal::CommentFrame const &textbox, MWAWPosition const &pos, librevenge::RVNGPropertyList const &extras=librevenge::RVNGPropertyList());
148  bool sendEmptyPicture(MWAWPosition const &pos);
150  bool sendTextbox(HanMacWrdJGraphInternal::TextboxFrame const &textbox, MWAWPosition const &pos);
152  bool sendTableUnformatted(long zId);
153 
155  bool sendGroup(long zId, MWAWPosition const &pos);
157  bool sendGroup(HanMacWrdJGraphInternal::Group const &group, MWAWPosition const &pos);
161  void sendGroupChild(HanMacWrdJGraphInternal::Group const &group, MWAWPosition const &pos);
163  void sendGroup(HanMacWrdJGraphInternal::Group const &group, MWAWGraphicListenerPtr const &listener);
164 
165  // interface with mainParser
166 
169  std::map<long,int> getTextFrameInformations() const;
171  bool getFootnoteInformations(long &textZId, std::vector<long> &fPosList) const;
173  bool sendFrame(long frameId, MWAWPosition const &pos);
175  bool sendText(long textId, long fPos, MWAWListenerPtr const &listener=MWAWListenerPtr());
176 
177  //
178  // low level
179  //
181  bool checkGroupStructures(long zId, std::set<long> &seens, bool inGroup);
182 
183 
184 private:
185  HanMacWrdJGraph(HanMacWrdJGraph const &orig) = delete;
186  HanMacWrdJGraph &operator=(HanMacWrdJGraph const &orig) = delete;
187 
188 protected:
189  //
190  // data
191  //
194 
196  std::shared_ptr<HanMacWrdJGraphInternal::State> m_state;
197 
200 };
201 #endif
202 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
HanMacWrdJGraphInternal::ShapeGraph::~ShapeGraph
~ShapeGraph() final
destructor
Definition: HanMacWrdJGraph.cxx:752
HanMacWrdJGraphInternal::CellFormat::operator<<
friend std::ostream & operator<<(std::ostream &o, CellFormat const &frmt)
operator<<
Definition: HanMacWrdJGraph.cxx:76
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
HanMacWrdJGraphInternal::Frame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:352
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
HanMacWrdJGraphInternal::State::m_patternList
std::vector< Pattern > m_patternList
a list patternId -> pattern
Definition: HanMacWrdJGraph.cxx:875
HanMacWrdJGraphInternal::PictureFrame::m_zId
long m_zId
the picture id
Definition: HanMacWrdJGraph.cxx:544
MWAWPosition::CharBaseLine
@ CharBaseLine
Definition: MWAWPosition.hxx:51
HanMacWrdJParser.hxx
HanMacWrdJGraphInternal::CommentFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:459
MWAWTable::numCells
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
HanMacWrdJGraphInternal::CellFormat::m_extra
std::string m_extra
extra data
Definition: HanMacWrdJGraph.cxx:91
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
HanMacWrdJGraph::sendTableUnformatted
bool sendTableUnformatted(long zId)
try to send a table unformatted
Definition: HanMacWrdJGraph.cxx:2199
HanMacWrdJGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: HanMacWrdJGraph.cxx:1001
HanMacWrdJGraphInternal::Table::Table
Table(HanMacWrdJGraph &parser)
constructor
Definition: HanMacWrdJGraph.cxx:167
HanMacWrdJGraph::sendPageGraphics
bool sendPageGraphics(std::vector< long > const &doNotSendIds)
try to send the page graphic
Definition: HanMacWrdJGraph.cxx:3039
HanMacWrdJGraphInternal::SubDocument::Text
@ Text
Definition: HanMacWrdJGraph.cxx:956
HanMacWrdJGraphInternal::Frame::getBdBox
MWAWBox2f getBdBox() const
return the frame bdbox
Definition: HanMacWrdJGraph.cxx:340
MWAWGraphicStyle::hasSurfaceColor
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:421
MWAWGraphicListenerPtr
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
HanMacWrdJGraphInternal::SeparatorFrame::~SeparatorFrame
~SeparatorFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:572
HanMacWrdJGraphInternal::TableCell::m_extra
std::string m_extra
extra data
Definition: HanMacWrdJGraph.cxx:128
HanMacWrdJGraphInternal::TextboxFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:638
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
HanMacWrdJGraph::readShapeGraph
std::shared_ptr< HanMacWrdJGraphInternal::ShapeGraph > readShapeGraph(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the basic graph data
Definition: HanMacWrdJGraph.cxx:2571
HanMacWrdJGraphInternal::PictureFrame::m_scale
MWAWVec2f m_scale
the scale
Definition: HanMacWrdJGraph.cxx:548
HanMacWrdJGraphInternal::FrameFormat::operator<<
friend std::ostream & operator<<(std::ostream &o, FrameFormat const &frmt)
operator<<
Definition: HanMacWrdJGraph.cxx:280
HanMacWrdJGraph::getTextFrameInformations
std::map< long, int > getTextFrameInformations() const
return a list textZId -> type which type=0(main), 1(header), 2(footer), 3(footnote),...
Definition: HanMacWrdJGraph.cxx:1116
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr const &input, MWAWPosition const &pos, Type type, long id, int firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:967
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
HanMacWrdJGraphInternal::CellFormat::m_borders
std::vector< MWAWBorder > m_borders
the border: order defined by MWAWBorder::Pos
Definition: HanMacWrdJGraph.cxx:89
HanMacWrdJGraph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: HanMacWrdJGraph.hxx:193
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
HanMacWrdJGraph::numPages
int numPages() const
returns the number of pages
Definition: HanMacWrdJGraph.cxx:1095
MWAWBorder::m_type
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
MWAWGraphicStyle::m_extra
std::string m_extra
extra data
Definition: MWAWGraphicStyle.hxx:568
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
HanMacWrdJGraphInternal::Table
Internal: the table of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:165
HanMacWrdJGraphInternal::Pattern::Pattern
Pattern(Pattern const &)=default
HanMacWrdJGraphInternal::Group::m_zId
long m_zId
the group id
Definition: HanMacWrdJGraph.cxx:504
HanMacWrdJGraphInternal::Pattern::operator=
Pattern & operator=(Pattern const &)=default
HanMacWrdJGraphInternal::CommentFrame::m_dim
MWAWVec2f m_dim
the auxilliary dim
Definition: HanMacWrdJGraph.cxx:478
HanMacWrdJGraphInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
a list colorId -> color
Definition: HanMacWrdJGraph.cxx:873
HanMacWrdJGraphInternal::Group::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:499
HanMacWrdJGraphInternal::TableCell::sendContent
bool sendContent(MWAWListenerPtr listener, MWAWTable &table) final
call when the content of a cell must be send
Definition: HanMacWrdJGraph.cxx:208
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
HanMacWrdJGraph::~HanMacWrdJGraph
virtual ~HanMacWrdJGraph()
destructor
Definition: HanMacWrdJGraph.cxx:1071
HanMacWrdJGraphInternal::State::m_framesMap
std::map< long, int > m_framesMap
a map zId->frame pos in frames list
Definition: HanMacWrdJGraph.cxx:868
HanMacWrdJGraph::m_mainParser
HanMacWrdJParser * m_mainParser
the main parser;
Definition: HanMacWrdJGraph.hxx:199
HanMacWrdJGraph::readFrames
bool readFrames(MWAWEntry const &entry)
try to read the frames definition (type 3)
Definition: HanMacWrdJGraph.cxx:1175
HanMacWrdJGraph::sendComment
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:2138
HanMacWrdJGraph::readTableFormatsList
bool readTableFormatsList(HanMacWrdJGraphInternal::Table &table, long endPos)
try to read a list of format
Definition: HanMacWrdJGraph.cxx:1916
MWAWPosition::setPage
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
HanMacWrdJGraphInternal::TableCell::m_zId
long m_zId
the cell zone id
Definition: HanMacWrdJGraph.cxx:116
HanMacWrdJGraphInternal::Group::~Group
~Group() final
destructor
Definition: HanMacWrdJGraph.cxx:509
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
HanMacWrdJGraphInternal::ShapeGraph::operator<<
friend std::ostream & operator<<(std::ostream &o, ShapeGraph const &graph)
operator<<
Definition: HanMacWrdJGraph.cxx:730
HanMacWrdJGraph::sendGroup
bool sendGroup(long zId, MWAWPosition const &pos)
try to send a group to the listener
Definition: HanMacWrdJGraph.cxx:2801
HanMacWrdJGraphInternal::PictureFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:533
MWAWGraphicStyle::m_surfaceOpacity
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:520
HanMacWrdJGraph
the main class to read the graphic part of a HanMac Word-J file
Definition: HanMacWrdJGraph.hxx:79
HanMacWrdJGraphInternal::SubDocument
Internal: the subdocument of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:953
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWTable.hxx
HanMacWrdJGraphInternal::TableFrame::m_table
std::shared_ptr< Table > m_table
the table
Definition: HanMacWrdJGraph.cxx:614
HanMacWrdJGraphInternal
Internal: the structures of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:63
HanMacWrdJGraphInternal::TextboxFrame::m_cPos
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:663
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:178
HanMacWrdJGraphInternal::PictureFrame::m_entry
MWAWEntry m_entry
the picture entry
Definition: HanMacWrdJGraph.cxx:542
HanMacWrdJGraphInternal::Frame::m_fileId
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:361
HanMacWrdJGraphInternal::ShapeGraph::m_arrowsFlag
int m_arrowsFlag
the lines arrow flag
Definition: HanMacWrdJGraph.cxx:749
HanMacWrdJGraphInternal::TextboxFrame::isLinked
bool isLinked() const
returns true if the box is linked to other textbox
Definition: HanMacWrdJGraph.cxx:643
HanMacWrdJGraphInternal::SeparatorFrame::SeparatorFrame
SeparatorFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:560
HanMacWrdJGraphInternal::SubDocument::Group
@ Group
Definition: HanMacWrdJGraph.cxx:956
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
HanMacWrdJGraphInternal::Frame::m_extra
std::string m_extra
an extra string
Definition: HanMacWrdJGraph.cxx:377
HanMacWrdJGraphInternal::FrameFormat::FrameFormat
FrameFormat()
constructor
Definition: HanMacWrdJGraph.cxx:238
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
MWAWGraphicStyle::setBackgroundColor
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:447
HanMacWrdJGraphInternal::TableFrame
Internal: the table frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:578
HanMacWrdJGraphInternal::TextboxFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:648
HanMacWrdJGraphInternal::TextboxFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:661
HanMacWrdJGraphInternal::TextFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:701
HanMacWrdJGraphInternal::Pattern::operator=
Pattern & operator=(Pattern &&)=default
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
MWAWBox2::extend
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1122
HanMacWrdJGraph::sendShapeGraph
bool sendShapeGraph(HanMacWrdJGraphInternal::ShapeGraph const &pict, MWAWPosition const &pos)
try to send a basic picture to the listener
Definition: HanMacWrdJGraph.cxx:2049
HanMacWrdJGraphInternal::SubDocument::UnformattedTable
@ UnformattedTable
Definition: HanMacWrdJGraph.cxx:956
MWAWListener::Graphic
@ Graphic
Definition: MWAWListener.hxx:56
MWAWBorder::None
@ None
Definition: libmwaw_internal.hxx:335
HanMacWrdJParser::readClassicHeader
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:237
HanMacWrdJGraph::getFootnoteInformations
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:1152
HanMacWrdJGraphInternal::TextFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:685
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
HanMacWrdJGraphInternal::TableFrame::m_length
long m_length
related to text length?
Definition: HanMacWrdJGraph.cxx:612
HanMacWrdJGraphInternal::Frame::m_inGroup
bool m_inGroup
true if this node is a group's child
Definition: HanMacWrdJGraph.cxx:373
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
HanMacWrdJGraph::readTextData
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:2533
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
HanMacWrdJGraphInternal::TextboxFrame::TextboxFrame
TextboxFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:626
HanMacWrdJParser::sendText
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:190
HanMacWrdJGraphInternal::State::initColors
void initColors()
init the color list
Definition: HanMacWrdJGraph.cxx:907
HanMacWrdJGraphInternal::Frame::m_formatId
int m_formatId
the format id
Definition: HanMacWrdJGraph.cxx:365
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWGraphicShape::m_bdBox
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
MWAWGraphicStyle::hasLine
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:410
MWAWGraphicStyle::Pattern::m_data
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
HanMacWrdJGraph::prepareStructures
void prepareStructures()
check the group structures, the linked textbox
Definition: HanMacWrdJGraph.cxx:2715
HanMacWrdJGraphInternal::FrameFormat::m_borderType
int m_borderType
the border type
Definition: HanMacWrdJGraph.cxx:312
HanMacWrdJGraphInternal::CommentFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:474
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
MWAWCell::hasExtraLine
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:337
MWAWCell::setExtraLine
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:352
HanMacWrdJGraphInternal::ShapeGraph::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:725
HanMacWrdJGraphInternal::FrameFormat::addTo
void addTo(MWAWGraphicStyle &style) const
add property to frame extra values
Definition: HanMacWrdJGraph.cxx:247
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:514
MWAWCell::extraLine
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:342
MWAWCell.hxx
Defines MWAWCell (cell content and format)
MWAWTable::TableDimBit
@ TableDimBit
Definition: MWAWTable.hxx:56
HanMacWrdJGraphInternal::ShapeGraph::ShapeGraph
ShapeGraph(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:716
HanMacWrdJGraphInternal::CommentFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:472
HanMacWrdJGraph::operator=
HanMacWrdJGraph & operator=(HanMacWrdJGraph const &orig)=delete
HanMacWrdJGraphInternal::Frame::Frame
Frame()
constructor
Definition: HanMacWrdJGraph.cxx:323
HanMacWrdJGraphInternal::Pattern::Pattern
Pattern(uint16_t const *pat=nullptr)
constructor ( 4 int by patterns )
Definition: HanMacWrdJGraph.cxx:760
HanMacWrdJGraph::readTable
bool readTable(MWAWEntry const &entry, int actZone)
try to read a table (zone 7)
Definition: HanMacWrdJGraph.cxx:1701
HanMacWrdJGraphInternal::SubDocument::m_pos
MWAWPosition m_pos
the position in a frame
Definition: HanMacWrdJGraph.cxx:994
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
HanMacWrdJParser::canSendTextAsGraphic
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJParser.cxx:195
HanMacWrdJGraphInternal::TextboxFrame::m_linkToFId
long m_linkToFId
the next link zone
Definition: HanMacWrdJGraph.cxx:665
MWAWSubDocument.hxx
HanMacWrdJGraph::readTableData
std::shared_ptr< HanMacWrdJGraphInternal::TableFrame > readTableData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the table data
Definition: HanMacWrdJGraph.cxx:2450
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
HanMacWrdJGraph::version
int version() const
returns the file version
Definition: HanMacWrdJGraph.cxx:1075
HanMacWrdJGraphInternal::State
Internal: the state of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:799
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
HanMacWrdJGraphInternal::SubDocument::m_id
long m_id
the zone id
Definition: HanMacWrdJGraph.cxx:990
HanMacWrdJGraphInternal::State::getPattern
bool getPattern(int id, Pattern &pattern)
returns a pattern correspond to an id
Definition: HanMacWrdJGraph.cxx:844
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
MWAWGraphicShape::Rectangle
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
HanMacWrdJGraph::readFrame
std::shared_ptr< HanMacWrdJGraphInternal::Frame > readFrame(int id)
try to read a frame
Definition: HanMacWrdJGraph.cxx:1395
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
HanMacWrdJGraphInternal::Table::m_formatsList
std::vector< CellFormat > m_formatsList
a list of cell format
Definition: HanMacWrdJGraph.cxx:197
HanMacWrdJGraphInternal::TableFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:592
HanMacWrdJGraphInternal::SubDocument::m_firstChar
long m_firstChar
the first char position
Definition: HanMacWrdJGraph.cxx:992
HanMacWrdJGraphInternal::State::State
State()
constructor
Definition: HanMacWrdJGraph.cxx:801
HanMacWrdJGraphInternal::ShapeGraph
Internal: the geometrical graph of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:714
HanMacWrdJGraphInternal::SeparatorFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:566
HanMacWrdJGraphInternal::FrameFormat::m_style
MWAWGraphicStyle m_style
the graphic style
Definition: HanMacWrdJGraph.cxx:310
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
HanMacWrdJGraph::readGroupData
bool readGroupData(MWAWEntry const &entry, int actZone)
try to read the groupd data ( type 9 )
Definition: HanMacWrdJGraph.cxx:1507
HanMacWrdJGraphInternal::CellFormat
a cell format in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:66
HanMacWrdJGraph::sendGroupChild
void sendGroupChild(HanMacWrdJGraphInternal::Group const &group, MWAWPosition const &pos)
try to send a group elements by elements
Definition: HanMacWrdJGraph.cxx:2905
MWAWGraphicStyle::m_surfaceColor
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWGraphicEncoder.hxx
HanMacWrdJGraphInternal::Frame::m_id
int m_id
the local id
Definition: HanMacWrdJGraph.cxx:363
HanMacWrdJGraphInternal::TableCell::m_formatId
int m_formatId
the cell format id
Definition: HanMacWrdJGraph.cxx:124
HanMacWrdJParser
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:110
HanMacWrdJGraphInternal::TableCell::m_flags
int m_flags
the cell flags
Definition: HanMacWrdJGraph.cxx:126
libmwaw::Debug::dumpFile
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
HanMacWrdJGraphInternal::CommentFrame::m_cPos
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:476
libmwaw::Bottom
@ Bottom
Definition: libmwaw_internal.hxx:176
libmwaw_internal.hxx
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
MWAWGraphicListener::endDocument
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:481
HanMacWrdJGraphInternal::TextFrame
Internal: the text frame (basic, header, footer, footnote) of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:676
MWAWPosition.hxx
MWAWPosition::setSize
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
HanMacWrdJGraphInternal::Pattern
Internal: the pattern of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:758
HanMacWrdJGraphInternal::Table::Table
Table(Table const &orig)=delete
HanMacWrdJGraphInternal::State::m_framesList
std::vector< std::shared_ptr< Frame > > m_framesList
the list of frames
Definition: HanMacWrdJGraph.cxx:866
HanMacWrdJGraphInternal::Table::updateCells
void updateCells()
update all cells using the formats list
Definition: HanMacWrdJGraph.cxx:215
HanMacWrdJGraphInternal::CommentFrame
Internal: the comment frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:440
HanMacWrdJGraphInternal::State::getFrameFormat
FrameFormat const & getFrameFormat(int id) const
returns the frame format corresponding to an id
Definition: HanMacWrdJGraph.cxx:825
HanMacWrdJGraphInternal::State::getColor
bool getColor(int id, MWAWColor &col)
returns a color correspond to an id
Definition: HanMacWrdJGraph.cxx:833
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
HanMacWrdJGraphInternal::TableCell::TableCell
TableCell(long tId)
constructor
Definition: HanMacWrdJGraph.cxx:98
MWAWEntry::name
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:153
HanMacWrdJGraphInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: HanMacWrdJGraph.cxx:976
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
HanMacWrdJGraphInternal::TextFrame::m_cPos
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:705
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
HanMacWrdJGraphInternal::ShapeGraph::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:737
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
HanMacWrdJGraphInternal::TableCell
a table cell in a table in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:96
HanMacWrdJGraphInternal::SubDocument::m_type
Type m_type
the zone type
Definition: HanMacWrdJGraph.cxx:988
MWAWTable
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
HanMacWrdJGraphInternal::TableCell::operator<<
friend std::ostream & operator<<(std::ostream &o, TableCell const &cell)
operator<<
Definition: HanMacWrdJGraph.cxx:146
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:178
MWAWVec2< float >
MWAWGraphicListener.hxx
MWAWPictMac.hxx
HanMacWrdJGraphInternal::CommentFrame::CommentFrame
CommentFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:443
MWAWGraphicShape.hxx
MWAWDebug.hxx
HanMacWrdJGraph::sendFrame
bool sendFrame(HanMacWrdJGraphInternal::Frame const &frame, MWAWPosition const &pos)
try to send a frame to the listener
Definition: HanMacWrdJGraph.cxx:2228
HanMacWrdJGraphInternal::TextFrame::TextFrame
TextFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:679
HanMacWrdJGraphInternal::PictureFrame::m_dim
MWAWVec2i m_dim
the picture size
Definition: HanMacWrdJGraph.cxx:546
MWAWPosition::setOrigin
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
HanMacWrdJGraphInternal::TableFrame::~TableFrame
~TableFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:617
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWGraphicListener::insertShape
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:1032
HanMacWrdJGraphInternal::Pattern::~Pattern
~Pattern() final
destructor
Definition: HanMacWrdJGraph.cxx:793
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
HanMacWrdJGraphInternal::Table::m_textFileId
long m_textFileId
the text file id
Definition: HanMacWrdJGraph.cxx:195
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
HanMacWrdJGraphInternal::TableFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:610
HanMacWrdJGraph::HanMacWrdJGraph
HanMacWrdJGraph(HanMacWrdJParser &parser)
constructor
Definition: HanMacWrdJGraph.cxx:1064
HanMacWrdJGraphInternal::Frame::m_page
int m_page
the page
Definition: HanMacWrdJGraph.cxx:367
HanMacWrdJGraphInternal::TableCell::m_cPos
long m_cPos
the first character position in m_zId
Definition: HanMacWrdJGraph.cxx:120
HanMacWrdJGraphInternal::Frame::m_parsed
bool m_parsed
true if we have send the data
Definition: HanMacWrdJGraph.cxx:375
HanMacWrdJGraphInternal::SubDocument::FrameInFrame
@ FrameInFrame
Definition: HanMacWrdJGraph.cxx:956
MWAWGraphicShape::Pie
@ Pie
Definition: MWAWGraphicShape.hxx:49
MWAWGraphicListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1111
HanMacWrdJGraphInternal::TextFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:703
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:222
HanMacWrdJGraphInternal::Frame::m_type
int m_type
the graph type
Definition: HanMacWrdJGraph.cxx:359
HanMacWrdJGraphInternal::State::initPatterns
void initPatterns()
init the pattenr list
Definition: HanMacWrdJGraph.cxx:880
HanMacWrdJGraphInternal::CommentFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:454
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
HanMacWrdJGraphInternal::CellFormat::CellFormat
CellFormat()
constructor
Definition: HanMacWrdJGraph.cxx:69
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
HanMacWrdJGraph::sendPictureFrame
bool sendPictureFrame(HanMacWrdJGraphInternal::PictureFrame const &pict, MWAWPosition const &pos)
try to send a picture frame
Definition: HanMacWrdJGraph.cxx:2071
HanMacWrdJGraphInternal::CommentFrame::~CommentFrame
~CommentFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:481
libmwaw::Top
@ Top
Definition: libmwaw_internal.hxx:176
HanMacWrdJGraphInternal::Frame::operator<<
friend std::ostream & operator<<(std::ostream &o, Frame const &grph)
operator<<
Definition: HanMacWrdJGraph.cxx:384
MWAWBorder::m_style
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
HanMacWrdJGraphInternal::TextboxFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:659
MWAWCell::VALIGN_CENTER
@ VALIGN_CENTER
Definition: MWAWCell.hxx:134
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
HanMacWrdJGraph.hxx
HanMacWrdJZoneHeader::m_n
int m_n
the number of item
Definition: HanMacWrdJParser.hxx:93
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
HanMacWrdJGraphInternal::State::findFrame
std::shared_ptr< Frame > findFrame(int type, int lId) const
tries to find the lId the frame of a given type
Definition: HanMacWrdJGraph.cxx:810
MWAWGraphicEncoder
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
MWAWGraphicStyle::m_frameName
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:548
HanMacWrdJGraphInternal::SubDocument::EmptyPicture
@ EmptyPicture
Definition: HanMacWrdJGraph.cxx:956
MWAWCell::E_Cross
@ E_Cross
Definition: MWAWCell.hxx:137
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
HanMacWrdJGraphInternal::SubDocument::m_graphParser
HanMacWrdJGraph * m_graphParser
the graph parser
Definition: HanMacWrdJGraph.cxx:986
HanMacWrdJGraphInternal::operator<<
std::ostream & operator<<(std::ostream &o, TableCell const &cell)
Definition: HanMacWrdJGraph.cxx:146
HanMacWrdJGraphInternal::TextFrame::~TextFrame
~TextFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:708
HanMacWrdJGraphInternal::TableFrame::TableFrame
TableFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:581
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:178
MWAWGraphicStyle::Pattern::Pattern
Pattern()
constructor
Definition: MWAWGraphicStyle.hxx:279
HanMacWrdJGraphInternal::Group::m_childsList
std::vector< long > m_childsList
the child list
Definition: HanMacWrdJGraph.cxx:506
HanMacWrdJGraphInternal::Table::m_height
int m_height
the table height
Definition: HanMacWrdJGraph.cxx:193
HanMacWrdJGraphInternal::Frame::m_baseline
float m_baseline
the baseline
Definition: HanMacWrdJGraph.cxx:371
HanMacWrdJGraphInternal::State::getColor
static MWAWColor getColor(MWAWColor col, float pattern)
returns a color corresponding to a pattern and a color
Definition: HanMacWrdJGraph.cxx:855
HanMacWrdJGraphInternal::TextboxFrame::~TextboxFrame
~TextboxFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:670
MWAWGraphicStyle.hxx
HanMacWrdJGraph::m_state
std::shared_ptr< HanMacWrdJGraphInternal::State > m_state
the state
Definition: HanMacWrdJGraph.hxx:196
HanMacWrdJGraphInternal::TableFrame::m_zId
long m_zId
the textzone id
Definition: HanMacWrdJGraph.cxx:608
HanMacWrdJZoneHeader
a class use to store the classic header find before file zone
Definition: HanMacWrdJParser.hxx:60
HanMacWrdJGraph::canCreateGraphic
bool canCreateGraphic(HanMacWrdJGraphInternal::Group const &group)
check if we can send a group as graphic
Definition: HanMacWrdJGraph.cxx:2828
MWAWGraphicListener::startDocument
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:470
HanMacWrdJGraph::HanMacWrdJGraph
HanMacWrdJGraph(HanMacWrdJGraph const &orig)=delete
HanMacWrdJGraphInternal::Pattern::m_percent
float m_percent
the percentage
Definition: HanMacWrdJGraph.cxx:790
MWAWGraphicStyle::m_frameNextName
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:550
HanMacWrdJGraphInternal::PictureFrame::PictureFrame
PictureFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:517
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
HanMacWrdJGraphInternal::TableCell::m_fileId
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:122
HanMacWrdJGraphInternal::TextFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:690
HanMacWrdJGraph::readPictureData
std::shared_ptr< HanMacWrdJGraphInternal::PictureFrame > readPictureData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the picture data
Definition: HanMacWrdJGraph.cxx:2401
HanMacWrdJGraphInternal::SubDocument::Type
Type
the document type
Definition: HanMacWrdJGraph.cxx:956
HanMacWrdJGraphInternal::PictureFrame::~PictureFrame
~PictureFrame() final
destructor
Definition: HanMacWrdJGraph.cxx:551
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:176
MWAWCell::E_Line1
@ E_Line1
Definition: MWAWCell.hxx:137
HanMacWrdJGraph::getColor
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJGraph.cxx:1080
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
HanMacWrdJGraphInternal::Group::Group
Group(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:490
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
HanMacWrdJGraphInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: HanMacWrdJGraph.cxx:1047
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:178
HanMacWrdJZoneHeader::m_length
long m_length
the zone size
Definition: HanMacWrdJParser.hxx:91
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWCell::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:382
HanMacWrdJGraphInternal::TableCell::update
void update(CellFormat const &format)
use cell format to finish updating cell
Definition: HanMacWrdJGraph.cxx:132
HanMacWrdJGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdJGraph.cxx:3064
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
HanMacWrdJGraphInternal::TableCell::m_tId
long m_tId
the cell text zone id
Definition: HanMacWrdJGraph.cxx:118
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr const &input, Type type, long id, long firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:958
HanMacWrdJGraphInternal::FrameFormat::m_extWrap
double m_extWrap[4]
the exterior wrap dim
Definition: HanMacWrdJGraph.cxx:316
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:176
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
MWAWPosition::Frame
@ Frame
Definition: MWAWPosition.hxx:51
HanMacWrdJGraphInternal::PictureFrame::valid
bool valid() const final
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:528
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
HanMacWrdJZoneHeader::m_fieldSize
int m_fieldSize
the field size
Definition: HanMacWrdJParser.hxx:95
HanMacWrdJGraphInternal::Table::m_parser
HanMacWrdJGraph * m_parser
the graph parser
Definition: HanMacWrdJGraph.cxx:187
MWAWGraphicShape::m_arcAngles
MWAWVec2f m_arcAngles
the start and end value which defines an arc
Definition: MWAWGraphicShape.hxx:224
HanMacWrdJGraphInternal::TextboxFrame::m_isLinked
bool m_isLinked
true if this zone is linked
Definition: HanMacWrdJGraph.cxx:667
MWAWInputStream.hxx
MWAWGraphicShape::Circle
@ Circle
Definition: MWAWGraphicShape.hxx:49
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
HanMacWrdJGraph::sendEmptyPicture
bool sendEmptyPicture(MWAWPosition const &pos)
try to send an empty picture
Definition: HanMacWrdJGraph.cxx:2110
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
HanMacWrdJGraph::checkGroupStructures
bool checkGroupStructures(long zId, std::set< long > &seens, bool inGroup)
check the graph structures: ie.
Definition: HanMacWrdJGraph.cxx:2771
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
HanMacWrdJGraphInternal::CellFormat::m_backColor
MWAWColor m_backColor
the background color
Definition: HanMacWrdJGraph.cxx:87
HanMacWrdJGraphInternal::Frame::m_pos
MWAWBox2f m_pos
the position
Definition: HanMacWrdJGraph.cxx:369
MWAWCell::E_Line2
@ E_Line2
Definition: MWAWCell.hxx:137
HanMacWrdJGraph::readTextboxData
std::shared_ptr< HanMacWrdJGraphInternal::TextboxFrame > readTextboxData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read a textbox data
Definition: HanMacWrdJGraph.cxx:2493
MWAWGraphicStyle::addTo
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:251
HanMacWrdJGraphInternal::Table::m_rows
int m_rows
the number of row
Definition: HanMacWrdJGraph.cxx:189
MWAWTable::get
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
HanMacWrdJGraphInternal::Table::operator=
Table & operator=(Table const &orig)=delete
MWAWBox2< float >
HanMacWrdJGraph::readGraphData
bool readGraphData(MWAWEntry const &entry, int actZone)
try to read the graph data (zone 8)
Definition: HanMacWrdJGraph.cxx:1582
HanMacWrdJGraphInternal::TextboxFrame
Internal: the textbox frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:623
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
HanMacWrdJGraphInternal::Table::sendText
bool sendText(long id, long cPos) const
send a text zone
Definition: HanMacWrdJGraph.cxx:182
HanMacWrdJGraphInternal::Frame::Frame
Frame(Frame const &)=default
HanMacWrdJGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
HanMacWrdJGraph::sendText
bool sendText(long textId, long fPos, MWAWListenerPtr const &listener=MWAWListenerPtr())
ask main parser to send a text zone
Definition: HanMacWrdJGraph.cxx:1111
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
HanMacWrdJGraphInternal::Group
Internal: a group of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:487
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
HanMacWrdJGraphInternal::Frame
Internal: the frame header of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:321
HanMacWrdJGraph::readCommentData
std::shared_ptr< HanMacWrdJGraphInternal::CommentFrame > readCommentData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the comment data
Definition: HanMacWrdJGraph.cxx:2350
HanMacWrdJGraphInternal::Frame::~Frame
virtual ~Frame()
destructor
Definition: HanMacWrdJGraph.cxx:380
HanMacWrdJGraph::sendTextbox
bool sendTextbox(HanMacWrdJGraphInternal::TextboxFrame const &textbox, MWAWPosition const &pos)
try to send a textbox to the listener
Definition: HanMacWrdJGraph.cxx:2170
HanMacWrdJGraphInternal::Table::m_columns
int m_columns
the number of columns
Definition: HanMacWrdJGraph.cxx:191
HanMacWrdJGraphInternal::FrameFormat::m_intWrap
double m_intWrap[4]
the interior wrap dim
Definition: HanMacWrdJGraph.cxx:314
HanMacWrdJGraphInternal::State::m_defaultFormat
FrameFormat m_defaultFormat
empty format used to return a default format
Definition: HanMacWrdJGraph.cxx:877
HanMacWrdJGraphInternal::PictureFrame
Internal: the picture frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:514
HanMacWrdJGraph::readPicture
bool readPicture(MWAWEntry const &entry, int actZone)
try to read the pictures definition (type 6)
Definition: HanMacWrdJGraph.cxx:1659
HanMacWrdJGraphInternal::SeparatorFrame
Internal: a footnote separator of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:557
HanMacWrdJGraphInternal::ShapeGraph::m_shape
MWAWGraphicShape m_shape
the shape m_shape
Definition: HanMacWrdJGraph.cxx:747
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
HanMacWrdJGraphInternal::TableFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:597
HanMacWrdJGraphInternal::FrameFormat
a frame format in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:235
MWAWGraphicShape::m_formBox
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:220
HanMacWrdJGraphInternal::Table::~Table
~Table() final
destructor
Definition: HanMacWrdJGraph.cxx:204
HanMacWrdJGraphInternal::State::m_frameFormatsList
std::vector< FrameFormat > m_frameFormatsList
the list of frame format
Definition: HanMacWrdJGraph.cxx:870
MWAWTable::CellPositionBit
@ CellPositionBit
Definition: MWAWTable.hxx:56

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20