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  shared_ptr<HanMacWrdJGraphInternal::Frame> readFrame(int id);
116  shared_ptr<HanMacWrdJGraphInternal::ShapeGraph> readShapeGraph(HanMacWrdJGraphInternal::Frame const &header, long endPos);
118  shared_ptr<HanMacWrdJGraphInternal::CommentFrame> readCommentData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
120  shared_ptr<HanMacWrdJGraphInternal::PictureFrame> readPictureData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
122  shared_ptr<HanMacWrdJGraphInternal::TableFrame> readTableData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
124  shared_ptr<HanMacWrdJGraphInternal::TextboxFrame> readTextboxData(HanMacWrdJGraphInternal::Frame const &header, long endPos);
126  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 pos);
144  bool sendComment(HanMacWrdJGraphInternal::CommentFrame const &textbox, MWAWPosition pos, librevenge::RVNGPropertyList extras=librevenge::RVNGPropertyList());
148  bool sendEmptyPicture(MWAWPosition pos);
152  bool sendTableUnformatted(long zId);
153 
155  bool sendGroup(long zId, MWAWPosition pos);
157  bool sendGroup(HanMacWrdJGraphInternal::Group const &group, MWAWPosition pos);
161  void sendGroupChild(HanMacWrdJGraphInternal::Group const &group, MWAWPosition const &pos);
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 pos);
175  bool sendText(long textId, long fPos, MWAWListenerPtr listener=MWAWListenerPtr());
176 
177  //
178  // low level
179  //
181  bool checkGroupStructures(long zId, std::set<long> &seens, bool inGroup);
182 
183 
184 private:
187 
188 protected:
189  //
190  // data
191  //
194 
196  shared_ptr<HanMacWrdJGraphInternal::State> m_state;
197 
200 };
201 #endif
202 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
HanMacWrdJGraphInternal::CellFormat::operator<<
friend std::ostream & operator<<(std::ostream &o, CellFormat const &frmt)
operator<<
Definition: HanMacWrdJGraph.cxx:73
HanMacWrdJGraphInternal::Frame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:323
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:806
HanMacWrdJGraphInternal::PictureFrame::m_zId
long m_zId
the picture id
Definition: HanMacWrdJGraph.cxx:501
MWAWPosition::CharBaseLine
@ CharBaseLine
Definition: MWAWPosition.hxx:51
HanMacWrdJParser.hxx
HanMacWrdJGraphInternal::CommentFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:424
MWAWTable::numCells
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:101
HanMacWrdJGraphInternal::CellFormat::m_extra
std::string m_extra
extra data
Definition: HanMacWrdJGraph.cxx:88
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
HanMacWrdJGraphInternal::Pattern::~Pattern
~Pattern()
destructor
Definition: HanMacWrdJGraph.cxx:731
HanMacWrdJGraph::sendTableUnformatted
bool sendTableUnformatted(long zId)
try to send a table unformatted
Definition: HanMacWrdJGraph.cxx:2140
HanMacWrdJGraphInternal::Table::Table
Table(HanMacWrdJGraph &parser)
constructor
Definition: HanMacWrdJGraph.cxx:156
HanMacWrdJGraph::sendPageGraphics
bool sendPageGraphics(std::vector< long > const &doNotSendIds)
try to send the page graphic
Definition: HanMacWrdJGraph.cxx:2998
HanMacWrdJGraphInternal::SubDocument::Text
@ Text
Definition: HanMacWrdJGraph.cxx:887
HanMacWrdJGraphInternal::Frame::getBdBox
MWAWBox2f getBdBox() const
return the frame bdbox
Definition: HanMacWrdJGraph.cxx:311
MWAWGraphicStyle::hasSurfaceColor
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
MWAWTextListenerPtr
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
HanMacWrdJGraphInternal::TableCell::m_extra
std::string m_extra
extra data
Definition: HanMacWrdJGraph.cxx:117
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr input, Type type, long id, long firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:889
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
HanMacWrdJGraphInternal::PictureFrame::m_scale
MWAWVec2f m_scale
the scale
Definition: HanMacWrdJGraph.cxx:505
HanMacWrdJGraphInternal::TextFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:631
HanMacWrdJGraphInternal::FrameFormat::operator<<
friend std::ostream & operator<<(std::ostream &o, FrameFormat const &frmt)
operator<<
Definition: HanMacWrdJGraph.cxx:261
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:1042
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
HanMacWrdJGraphInternal::CellFormat::m_borders
std::vector< MWAWBorder > m_borders
the border: order defined by MWAWBorder::Pos
Definition: HanMacWrdJGraph.cxx:86
HanMacWrdJGraphInternal::State::m_numPages
int m_numPages
Definition: HanMacWrdJGraph.cxx:802
HanMacWrdJGraph::HanMacWrdJGraph
HanMacWrdJGraph(HanMacWrdJGraph const &orig)
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
HanMacWrdJGraphInternal::SubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: HanMacWrdJGraph.cxx:973
HanMacWrdJGraph::numPages
int numPages() const
returns the number of pages
Definition: HanMacWrdJGraph.cxx:1019
MWAWBorder::m_type
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:355
MWAWGraphicStyle::m_extra
std::string m_extra
extra data
Definition: MWAWGraphicStyle.hxx:442
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
HanMacWrdJGraphInternal::Table
Internal: the table of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:154
HanMacWrdJGraphInternal::Group::m_zId
long m_zId
the group id
Definition: HanMacWrdJGraph.cxx:466
HanMacWrdJGraphInternal::CommentFrame::m_dim
MWAWVec2f m_dim
the auxilliary dim
Definition: HanMacWrdJGraph.cxx:443
HanMacWrdJGraphInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
a list colorId -> color
Definition: HanMacWrdJGraph.cxx:804
HanMacWrdJGraph::readTableData
shared_ptr< HanMacWrdJGraphInternal::TableFrame > readTableData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the table data
Definition: HanMacWrdJGraph.cxx:2395
HanMacWrdJGraphInternal::TextFrame::~TextFrame
virtual ~TextFrame()
destructor
Definition: HanMacWrdJGraph.cxx:654
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
HanMacWrdJGraph::~HanMacWrdJGraph
virtual ~HanMacWrdJGraph()
destructor
Definition: HanMacWrdJGraph.cxx:996
HanMacWrdJGraph::readShapeGraph
shared_ptr< HanMacWrdJGraphInternal::ShapeGraph > readShapeGraph(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the basic graph data
Definition: HanMacWrdJGraph.cxx:2516
HanMacWrdJGraphInternal::State::m_framesMap
std::map< long, int > m_framesMap
a map zId->frame pos in frames list
Definition: HanMacWrdJGraph.cxx:799
HanMacWrdJGraphInternal::Table::operator=
Table & operator=(Table const &orig)
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:1105
HanMacWrdJGraphInternal::TableCell::sendContent
virtual bool sendContent(MWAWListenerPtr listener, MWAWTable &table)
call when the content of a cell must be send
Definition: HanMacWrdJGraph.cxx:191
HanMacWrdJGraph::readTableFormatsList
bool readTableFormatsList(HanMacWrdJGraphInternal::Table &table, long endPos)
try to read a list of format
Definition: HanMacWrdJGraph.cxx:1857
MWAWPosition::setPage
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
HanMacWrdJGraphInternal::TableCell::m_zId
long m_zId
the cell zone id
Definition: HanMacWrdJGraph.cxx:105
HanMacWrdJGraphInternal::SubDocument::operator==
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: HanMacWrdJGraph.cxx:902
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
HanMacWrdJGraphInternal::ShapeGraph::operator<<
friend std::ostream & operator<<(std::ostream &o, ShapeGraph const &graph)
operator<<
Definition: HanMacWrdJGraph.cxx:673
HanMacWrdJGraphInternal::PictureFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:490
MWAWGraphicStyle::m_surfaceOpacity
float m_surfaceOpacity
true if the surface has some color
Definition: MWAWGraphicStyle.hxx:387
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:884
HanMacWrdJGraph::sendGroup
bool sendGroup(long zId, MWAWPosition pos)
try to send a group to the listener
Definition: HanMacWrdJGraph.cxx:2751
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
MWAWTable.hxx
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:609
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:168
HanMacWrdJGraphInternal::CommentFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:419
HanMacWrdJGraphInternal::PictureFrame::m_entry
MWAWEntry m_entry
the picture entry
Definition: HanMacWrdJGraph.cxx:499
HanMacWrdJGraphInternal::Frame::m_fileId
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:332
MWAWGraphicListener::startDocument
void startDocument()
starts a new document
Definition: MWAWGraphicListener.cxx:432
HanMacWrdJGraphInternal::ShapeGraph::m_arrowsFlag
int m_arrowsFlag
the lines arrow flag
Definition: HanMacWrdJGraph.cxx:692
HanMacWrdJGraphInternal::TextboxFrame::isLinked
bool isLinked() const
returns true if the box is linked to other textbox
Definition: HanMacWrdJGraph.cxx:589
HanMacWrdJGraphInternal::SeparatorFrame::SeparatorFrame
SeparatorFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:517
HanMacWrdJGraph::operator=
HanMacWrdJGraph & operator=(HanMacWrdJGraph const &orig)
HanMacWrdJGraphInternal::SubDocument::Group
@ Group
Definition: HanMacWrdJGraph.cxx:887
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWTable::get
shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:114
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
MWAWTable::sendTable
bool sendTable(MWAWListenerPtr listener, bool inFrame=true)
try to send the table
Definition: MWAWTable.cxx:465
HanMacWrdJGraphInternal::Frame::m_extra
std::string m_extra
an extra string
Definition: HanMacWrdJGraph.cxx:348
HanMacWrdJGraphInternal::FrameFormat::FrameFormat
FrameFormat()
constructor
Definition: HanMacWrdJGraph.cxx:221
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
MWAWGraphicStyle::setBackgroundColor
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
HanMacWrdJGraphInternal::TableFrame
Internal: the table frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:535
HanMacWrdJGraphInternal::TextboxFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:594
HanMacWrdJGraphInternal::TextboxFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:607
HanMacWrdJGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)
HanMacWrdJGraphInternal::TextFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:647
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:1063
HanMacWrdJGraphInternal::SubDocument::UnformattedTable
@ UnformattedTable
Definition: HanMacWrdJGraph.cxx:887
HanMacWrdJGraph::sendTextbox
bool sendTextbox(HanMacWrdJGraphInternal::TextboxFrame const &textbox, MWAWPosition pos)
try to send a textbox to the listener
Definition: HanMacWrdJGraph.cxx:2111
HanMacWrdJGraph::sendPictureFrame
bool sendPictureFrame(HanMacWrdJGraphInternal::PictureFrame const &pict, MWAWPosition pos)
try to send a picture frame
Definition: HanMacWrdJGraph.cxx:2013
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)
MWAWListener::Graphic
@ Graphic
Definition: MWAWListener.hxx:56
MWAWGraphicListener::endDocument
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWGraphicListener.cxx:443
MWAWBorder::None
@ None
Definition: libmwaw_internal.hxx:316
HanMacWrdJParser::readClassicHeader
bool readClassicHeader(HanMacWrdJZoneHeader &header, long endPos=-1)
try to read a header of classic zone
Definition: HanMacWrdJParser.cxx:232
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:1080
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
HanMacWrdJGraphInternal::TableFrame::m_length
long m_length
related to text length?
Definition: HanMacWrdJGraph.cxx:564
HanMacWrdJGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: HanMacWrdJGraph.cxx:927
HanMacWrdJGraphInternal::Frame::m_inGroup
bool m_inGroup
true if this node is a group's child
Definition: HanMacWrdJGraph.cxx:344
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:296
MWAWParserStatePtr
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
HanMacWrdJGraphInternal::SeparatorFrame::~SeparatorFrame
virtual ~SeparatorFrame()
destructor
Definition: HanMacWrdJGraph.cxx:529
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
HanMacWrdJGraphInternal::TextboxFrame::TextboxFrame
TextboxFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:578
HanMacWrdJParser::sendText
bool sendText(long id, long cPos, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdJParser.cxx:185
HanMacWrdJGraph::sendShapeGraph
bool sendShapeGraph(HanMacWrdJGraphInternal::ShapeGraph const &pict, MWAWPosition pos)
try to send a basic picture to the listener
Definition: HanMacWrdJGraph.cxx:1991
HanMacWrdJGraphInternal::SeparatorFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:523
HanMacWrdJGraphInternal::State::initColors
void initColors()
init the color list
Definition: HanMacWrdJGraph.cxx:838
HanMacWrdJGraphInternal::Frame::m_formatId
int m_formatId
the format id
Definition: HanMacWrdJGraph.cxx:336
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
HanMacWrdJGraph::readFrame
shared_ptr< HanMacWrdJGraphInternal::Frame > readFrame(int id)
try to read a frame
Definition: HanMacWrdJGraph.cxx:1327
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:193
HanMacWrdJGraph::readTextData
shared_ptr< HanMacWrdJGraphInternal::TextFrame > readTextData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read a text data (text, header/footer, footnote)
Definition: HanMacWrdJGraph.cxx:2478
MWAWGraphicStyle::hasLine
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:277
HanMacWrdJGraphInternal::ShapeGraph::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:668
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:247
HanMacWrdJGraph::prepareStructures
void prepareStructures()
check the group structures, the linked textbox
Definition: HanMacWrdJGraph.cxx:2661
HanMacWrdJGraphInternal::FrameFormat::m_borderType
int m_borderType
the border type
Definition: HanMacWrdJGraph.cxx:293
HanMacWrdJGraphInternal::CommentFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:439
MWAWPosition::setOrder
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
HanMacWrdJGraphInternal::TextboxFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:584
MWAWCell::hasExtraLine
bool hasExtraLine() const
returns true if we have some extra lines
Definition: MWAWCell.hxx:301
MWAWCell::setExtraLine
void setExtraLine(ExtraLine extrLine, MWAWBorder const &type=MWAWBorder())
sets the extraline
Definition: MWAWCell.hxx:316
HanMacWrdJGraphInternal::FrameFormat::addTo
void addTo(MWAWGraphicStyle &style) const
add property to frame extra values
Definition: HanMacWrdJGraph.cxx:228
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:381
MWAWCell::extraLine
ExtraLine extraLine() const
returns the extra lines
Definition: MWAWCell.hxx:306
HanMacWrdJGraphInternal::PictureFrame::~PictureFrame
virtual ~PictureFrame()
destructor
Definition: HanMacWrdJGraph.cxx:508
MWAWGraphicListener::insertShape
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style)
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:995
MWAWCell.hxx
MWAWTable::TableDimBit
@ TableDimBit
Definition: MWAWTable.hxx:56
HanMacWrdJGraphInternal::ShapeGraph::ShapeGraph
ShapeGraph(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:662
HanMacWrdJGraph::m_state
shared_ptr< HanMacWrdJGraphInternal::State > m_state
the state
Definition: HanMacWrdJGraph.hxx:196
HanMacWrdJGraphInternal::CommentFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:437
HanMacWrdJGraphInternal::Frame::Frame
Frame()
constructor
Definition: HanMacWrdJGraph.cxx:304
HanMacWrdJGraph::readTable
bool readTable(MWAWEntry const &entry, int actZone)
try to read a table (zone 7)
Definition: HanMacWrdJGraph.cxx:1640
HanMacWrdJGraphInternal::CommentFrame::~CommentFrame
virtual ~CommentFrame()
destructor
Definition: HanMacWrdJGraph.cxx:446
HanMacWrdJGraphInternal::SubDocument::m_pos
MWAWPosition m_pos
the position in a frame
Definition: HanMacWrdJGraph.cxx:920
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
HanMacWrdJParser::canSendTextAsGraphic
bool canSendTextAsGraphic(long id, long cPos)
check if we can send a textzone as graphic
Definition: HanMacWrdJParser.cxx:190
HanMacWrdJGraphInternal::TextboxFrame::m_linkToFId
long m_linkToFId
the next link zone
Definition: HanMacWrdJGraph.cxx:611
MWAWSubDocument.hxx
MWAWPosition::size
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
HanMacWrdJGraph::version
int version() const
returns the file version
Definition: HanMacWrdJGraph.cxx:999
HanMacWrdJGraphInternal::State
Internal: the state of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:737
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:205
MWAWGraphicStyle::hasPattern
bool hasPattern() const
returns true if the pattern is defined
Definition: MWAWGraphicStyle.hxx:299
HanMacWrdJGraphInternal::SubDocument::m_id
long m_id
the zone id
Definition: HanMacWrdJGraph.cxx:916
HanMacWrdJGraphInternal::State::getPattern
bool getPattern(int id, Pattern &pattern)
returns a pattern correspond to an id
Definition: HanMacWrdJGraph.cxx:775
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
MWAWGraphicShape::Rectangle
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:178
HanMacWrdJGraphInternal::Table::m_formatsList
std::vector< CellFormat > m_formatsList
a list of cell format
Definition: HanMacWrdJGraph.cxx:180
HanMacWrdJGraphInternal::SubDocument::m_firstChar
long m_firstChar
the first char position
Definition: HanMacWrdJGraph.cxx:918
HanMacWrdJGraphInternal::State::State
State()
constructor
Definition: HanMacWrdJGraph.cxx:739
HanMacWrdJGraphInternal::ShapeGraph
Internal: the geometrical graph of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:660
HanMacWrdJGraph::sendFrame
bool sendFrame(HanMacWrdJGraphInternal::Frame const &frame, MWAWPosition pos)
try to send a frame to the listener
Definition: HanMacWrdJGraph.cxx:2169
HanMacWrdJGraphInternal::FrameFormat::m_style
MWAWGraphicStyle m_style
the graphic style
Definition: HanMacWrdJGraph.cxx:291
HanMacWrdJGraphInternal::Pattern::Pattern
Pattern(uint16_t const *pat=0)
constructor ( 4 int by patterns )
Definition: HanMacWrdJGraph.cxx:703
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:361
HanMacWrdJGraph::readGroupData
bool readGroupData(MWAWEntry const &entry, int actZone)
try to read the groupd data ( type 9 )
Definition: HanMacWrdJGraph.cxx:1441
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:2861
MWAWGraphicStyle::m_surfaceColor
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWGraphicEncoder.hxx
HanMacWrdJGraphInternal::Frame::m_id
int m_id
the local id
Definition: HanMacWrdJGraph.cxx:334
HanMacWrdJGraphInternal::SubDocument::SubDocument
SubDocument(HanMacWrdJGraph &pars, MWAWInputStreamPtr input, MWAWPosition pos, Type type, long id, int firstChar=0)
constructor
Definition: HanMacWrdJGraph.cxx:893
HanMacWrdJGraphInternal::TableCell::m_formatId
int m_formatId
the cell format id
Definition: HanMacWrdJGraph.cxx:113
HanMacWrdJParser
the main class to read a HanMac Word-J file
Definition: HanMacWrdJParser.hxx:105
HanMacWrdJGraphInternal::TableCell::m_flags
int m_flags
the cell flags
Definition: HanMacWrdJGraph.cxx:115
MWAWGraphicListenerPtr
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
HanMacWrdJGraphInternal::State::m_framesList
std::vector< shared_ptr< Frame > > m_framesList
the list of frames
Definition: HanMacWrdJGraph.cxx:797
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:197
HanMacWrdJGraphInternal::CommentFrame::m_cPos
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:441
libmwaw::Bottom
@ Bottom
Definition: libmwaw_internal.hxx:166
libmwaw_internal.hxx
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
HanMacWrdJGraphInternal::TextFrame
Internal: the text frame (basic, header, footer, footnote) of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:622
MWAWPosition.hxx
MWAWPosition::setSize
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
HanMacWrdJGraphInternal::Pattern
Internal: the pattern of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:701
MWAWTable::hasExtraLines
bool hasExtraLines()
returns true if the table has extralines
Definition: MWAWTable.hxx:132
HanMacWrdJGraphInternal::Table::updateCells
void updateCells()
update all cells using the formats list
Definition: HanMacWrdJGraph.cxx:198
HanMacWrdJGraphInternal::CommentFrame
Internal: the comment frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:410
HanMacWrdJGraphInternal::State::getFrameFormat
FrameFormat const & getFrameFormat(int id) const
returns the frame format corresponding to an id
Definition: HanMacWrdJGraph.cxx:756
HanMacWrdJGraph::sendComment
bool sendComment(HanMacWrdJGraphInternal::CommentFrame const &textbox, MWAWPosition pos, librevenge::RVNGPropertyList extras=librevenge::RVNGPropertyList())
try to send a comment box to the listener
Definition: HanMacWrdJGraph.cxx:2079
HanMacWrdJGraphInternal::State::getColor
bool getColor(int id, MWAWColor &col)
returns a color correspond to an id
Definition: HanMacWrdJGraph.cxx:764
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:95
MWAWEntry::name
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:142
MWAWBorder
a border
Definition: libmwaw_internal.hxx:314
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:201
HanMacWrdJGraphInternal::Table::Table
Table(Table const &orig)
HanMacWrdJGraphInternal::SubDocument::~SubDocument
virtual ~SubDocument()
destructor
Definition: HanMacWrdJGraph.cxx:897
HanMacWrdJGraphInternal::TextFrame::m_cPos
long m_cPos
the first char pos
Definition: HanMacWrdJGraph.cxx:651
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:49
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:242
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
HanMacWrdJGraphInternal::ShapeGraph::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:680
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
HanMacWrdJGraphInternal::TableCell
a table cell in a table in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:93
HanMacWrdJGraphInternal::SubDocument::m_type
Type m_type
the zone type
Definition: HanMacWrdJGraph.cxx:914
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:135
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:168
MWAWVec2< float >
MWAWGraphicListener.hxx
MWAWPictMac.hxx
HanMacWrdJGraphInternal::CommentFrame::CommentFrame
CommentFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:413
MWAWGraphicShape.hxx
MWAWDebug.hxx
HanMacWrdJGraphInternal::TextFrame::TextFrame
TextFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:625
HanMacWrdJGraphInternal::PictureFrame::m_dim
MWAWVec2i m_dim
the picture size
Definition: HanMacWrdJGraph.cxx:503
MWAWPosition::setOrigin
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:430
HanMacWrdJGraphInternal::Table::m_textFileId
long m_textFileId
the text file id
Definition: HanMacWrdJGraph.cxx:178
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
HanMacWrdJGraphInternal::TableFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:562
HanMacWrdJGraph::HanMacWrdJGraph
HanMacWrdJGraph(HanMacWrdJParser &parser)
constructor
Definition: HanMacWrdJGraph.cxx:990
HanMacWrdJGraphInternal::State::findFrame
shared_ptr< Frame > findFrame(int type, int lId) const
tries to find the lId the frame of a given type
Definition: HanMacWrdJGraph.cxx:741
HanMacWrdJGraphInternal::Frame::m_page
int m_page
the page
Definition: HanMacWrdJGraph.cxx:338
HanMacWrdJGraphInternal::TableCell::m_cPos
long m_cPos
the first character position in m_zId
Definition: HanMacWrdJGraph.cxx:109
HanMacWrdJGraphInternal::Frame::m_parsed
bool m_parsed
true if we have send the data
Definition: HanMacWrdJGraph.cxx:346
MWAWTable::updateTable
bool updateTable()
try to build the table structures
Definition: MWAWTable.cxx:452
HanMacWrdJGraphInternal::SubDocument::FrameInFrame
@ FrameInFrame
Definition: HanMacWrdJGraph.cxx:887
MWAWGraphicShape::Pie
@ Pie
Definition: MWAWGraphicShape.hxx:49
HanMacWrdJGraphInternal::TextFrame::m_width
double m_width
the zone width
Definition: HanMacWrdJGraph.cxx:649
HanMacWrdJGraphInternal::ShapeGraph::~ShapeGraph
~ShapeGraph()
destructor
Definition: HanMacWrdJGraph.cxx:695
MWAWGraphicShape::m_cornerWidth
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:197
HanMacWrdJGraphInternal::TableFrame::m_table
shared_ptr< Table > m_table
the table
Definition: HanMacWrdJGraph.cxx:566
HanMacWrdJGraphInternal::Frame::m_type
int m_type
the graph type
Definition: HanMacWrdJGraph.cxx:330
HanMacWrdJGraphInternal::Group::~Group
virtual ~Group()
destructor
Definition: HanMacWrdJGraph.cxx:471
HanMacWrdJGraphInternal::State::initPatterns
void initPatterns()
init the pattenr list
Definition: HanMacWrdJGraph.cxx:811
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:245
libmwaw::Top
@ Top
Definition: libmwaw_internal.hxx:166
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
HanMacWrdJGraphInternal::TableFrame::~TableFrame
~TableFrame()
destructor
Definition: HanMacWrdJGraph.cxx:569
HanMacWrdJGraphInternal::Frame::operator<<
friend std::ostream & operator<<(std::ostream &o, Frame const &grph)
operator<<
Definition: HanMacWrdJGraph.cxx:355
MWAWBorder::m_style
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
HanMacWrdJGraphInternal::TextboxFrame::m_zId
long m_zId
the text id
Definition: HanMacWrdJGraph.cxx:605
MWAWCell::VALIGN_CENTER
@ VALIGN_CENTER
Definition: MWAWCell.hxx:122
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
HanMacWrdJGraph.hxx
HanMacWrdJZoneHeader::m_n
int m_n
the number of item
Definition: HanMacWrdJParser.hxx:88
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:425
HanMacWrdJGraphInternal::TableFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:544
HanMacWrdJGraphInternal::SubDocument::EmptyPicture
@ EmptyPicture
Definition: HanMacWrdJGraph.cxx:887
MWAWCell::E_Cross
@ E_Cross
Definition: MWAWCell.hxx:125
MWAWGraphicShape::Line
@ Line
Definition: MWAWGraphicShape.hxx:49
HanMacWrdJGraphInternal::SubDocument::m_graphParser
HanMacWrdJGraph * m_graphParser
the graph parser
Definition: HanMacWrdJGraph.cxx:912
HanMacWrdJGraphInternal::operator<<
std::ostream & operator<<(std::ostream &o, TableCell const &cell)
Definition: HanMacWrdJGraph.cxx:135
HanMacWrdJGraphInternal::TableFrame::TableFrame
TableFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:538
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:318
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:168
HanMacWrdJGraphInternal::Group::m_childsList
std::vector< long > m_childsList
the child list
Definition: HanMacWrdJGraph.cxx:468
HanMacWrdJGraphInternal::Table::m_height
int m_height
the table height
Definition: HanMacWrdJGraph.cxx:176
HanMacWrdJGraphInternal::Frame::m_baseline
float m_baseline
the baseline
Definition: HanMacWrdJGraph.cxx:342
HanMacWrdJGraphInternal::State::getColor
static MWAWColor getColor(MWAWColor col, float pattern)
returns a color corresponding to a pattern and a color
Definition: HanMacWrdJGraph.cxx:786
MWAWGraphicStyle.hxx
HanMacWrdJGraphInternal::TableFrame::m_zId
long m_zId
the textzone id
Definition: HanMacWrdJGraph.cxx:560
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:2778
HanMacWrdJGraphInternal::Pattern::m_percent
float m_percent
the percentage
Definition: HanMacWrdJGraph.cxx:728
MWAWGraphicStyle::m_frameNextName
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
HanMacWrdJGraphInternal::PictureFrame::PictureFrame
PictureFrame(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:479
MWAWTextListener.hxx
HanMacWrdJGraphInternal::TableCell::m_fileId
long m_fileId
the file id
Definition: HanMacWrdJGraph.cxx:111
HanMacWrdJGraphInternal::TextFrame::print
std::string print() const
print local data
Definition: HanMacWrdJGraph.cxx:636
HanMacWrdJGraphInternal::PictureFrame::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:485
HanMacWrdJGraphInternal::SubDocument::Type
Type
the document type
Definition: HanMacWrdJGraph.cxx:887
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:166
MWAWCell::E_Line1
@ E_Line1
Definition: MWAWCell.hxx:125
HanMacWrdJGraph::getColor
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdJGraph.cxx:1004
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
HanMacWrdJGraphInternal::Group::Group
Group(Frame const &orig)
constructor
Definition: HanMacWrdJGraph.cxx:455
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:168
HanMacWrdJZoneHeader::m_length
long m_length
the zone size
Definition: HanMacWrdJParser.hxx:86
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:379
HanMacWrdJGraphInternal::TableCell::update
void update(CellFormat const &format)
use cell format to finish updating cell
Definition: HanMacWrdJGraph.cxx:121
HanMacWrdJGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdJGraph.cxx:3024
MWAWPosition::origin
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
HanMacWrdJGraphInternal::TableCell::m_tId
long m_tId
the cell text zone id
Definition: HanMacWrdJGraph.cxx:107
HanMacWrdJGraphInternal::FrameFormat::m_extWrap
double m_extWrap[4]
the exterior wrap dim
Definition: HanMacWrdJGraph.cxx:297
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:166
MWAWTable::sendAsText
bool sendAsText(MWAWListenerPtr listener)
try to send the table as basic text
Definition: MWAWTable.cxx:496
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
MWAWPosition::Frame
@ Frame
Definition: MWAWPosition.hxx:51
HanMacWrdJGraph::sendEmptyPicture
bool sendEmptyPicture(MWAWPosition pos)
try to send an empty picture
Definition: HanMacWrdJGraph.cxx:2051
HanMacWrdJGraphInternal::TextboxFrame::~TextboxFrame
virtual ~TextboxFrame()
destructor
Definition: HanMacWrdJGraph.cxx:616
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:90
HanMacWrdJGraphInternal::Table::m_parser
HanMacWrdJGraph * m_parser
the graph parser
Definition: HanMacWrdJGraph.cxx:170
MWAWGraphicShape::m_arcAngles
MWAWVec2f m_arcAngles
the start and end value which defines an arc
Definition: MWAWGraphicShape.hxx:199
HanMacWrdJGraph::readCommentData
shared_ptr< HanMacWrdJGraphInternal::CommentFrame > readCommentData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the comment data
Definition: HanMacWrdJGraph.cxx:2292
HanMacWrdJGraphInternal::TextboxFrame::m_isLinked
bool m_isLinked
true if this zone is linked
Definition: HanMacWrdJGraph.cxx:613
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:270
HanMacWrdJGraph::checkGroupStructures
bool checkGroupStructures(long zId, std::set< long > &seens, bool inGroup)
check the graph structures: ie.
Definition: HanMacWrdJGraph.cxx:2721
HanMacWrdJGraphInternal::Table::~Table
~Table()
destructor
Definition: HanMacWrdJGraph.cxx:187
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
HanMacWrdJGraphInternal::CellFormat::m_backColor
MWAWColor m_backColor
the background color
Definition: HanMacWrdJGraph.cxx:84
HanMacWrdJGraphInternal::Frame::m_pos
MWAWBox2f m_pos
the position
Definition: HanMacWrdJGraph.cxx:340
MWAWCell::E_Line2
@ E_Line2
Definition: MWAWCell.hxx:125
HanMacWrdJGraphInternal::Table::m_rows
int m_rows
the number of row
Definition: HanMacWrdJGraph.cxx:172
HanMacWrdJGraph::readTextboxData
shared_ptr< HanMacWrdJGraphInternal::TextboxFrame > readTextboxData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read a textbox data
Definition: HanMacWrdJGraph.cxx:2438
MWAWSubDocumentPtr
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
MWAWBox2< float >
MWAWGraphicListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1074
HanMacWrdJGraph::readGraphData
bool readGraphData(MWAWEntry const &entry, int actZone)
try to read the graph data (zone 8)
Definition: HanMacWrdJGraph.cxx:1518
HanMacWrdJGraphInternal::TextboxFrame
Internal: the textbox frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:575
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:165
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:103
HanMacWrdJGraph::readPictureData
shared_ptr< HanMacWrdJGraphInternal::PictureFrame > readPictureData(HanMacWrdJGraphInternal::Frame const &header, long endPos)
try to read the picture data
Definition: HanMacWrdJGraph.cxx:2344
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
HanMacWrdJGraphInternal::Group::valid
virtual bool valid() const
returns true if the frame data are read
Definition: HanMacWrdJGraph.cxx:461
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
HanMacWrdJGraphInternal::Group
Internal: a group of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:452
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
HanMacWrdJGraphInternal::Frame
Internal: the frame header of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:302
HanMacWrdJGraph::sendText
bool sendText(long textId, long fPos, MWAWListenerPtr listener=MWAWListenerPtr())
ask main parser to send a text zone
Definition: HanMacWrdJGraph.cxx:1037
HanMacWrdJGraphInternal::Frame::~Frame
virtual ~Frame()
destructor
Definition: HanMacWrdJGraph.cxx:351
HanMacWrdJGraphInternal::Table::m_columns
int m_columns
the number of columns
Definition: HanMacWrdJGraph.cxx:174
MWAWSubDocument::m_input
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
HanMacWrdJGraphInternal::FrameFormat::m_intWrap
double m_intWrap[4]
the interior wrap dim
Definition: HanMacWrdJGraph.cxx:295
HanMacWrdJGraphInternal::State::m_defaultFormat
FrameFormat m_defaultFormat
empty format used to return a default format
Definition: HanMacWrdJGraph.cxx:808
HanMacWrdJGraphInternal::PictureFrame
Internal: the picture frame of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:476
HanMacWrdJGraph::readPicture
bool readPicture(MWAWEntry const &entry, int actZone)
try to read the pictures definition (type 6)
Definition: HanMacWrdJGraph.cxx:1597
HanMacWrdJGraphInternal::SeparatorFrame
Internal: a footnote separator of a HanMacWrdJGraph.
Definition: HanMacWrdJGraph.cxx:514
HanMacWrdJGraphInternal::ShapeGraph::m_shape
MWAWGraphicShape m_shape
the shape m_shape
Definition: HanMacWrdJGraph.cxx:690
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:549
HanMacWrdJGraphInternal::FrameFormat
a frame format in HanMacWrdJGraph
Definition: HanMacWrdJGraph.cxx:218
MWAWGraphicShape::m_formBox
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
HanMacWrdJGraphInternal::State::m_frameFormatsList
std::vector< FrameFormat > m_frameFormatsList
the list of frame format
Definition: HanMacWrdJGraph.cxx:801
MWAWTable::CellPositionBit
@ CellPositionBit
Definition: MWAWTable.hxx:56

Generated on Wed Jun 17 2020 06:30:10 for libmwaw by doxygen 1.8.18