Go to the documentation of this file.
44 #include <librevenge/librevenge.h>
93 bool readTextZone(std::shared_ptr<WingzGraphInternal::Graphic> graphic);
96 bool readChartData(std::shared_ptr<WingzGraphInternal::Graphic> graphic);
126 std::shared_ptr<WingzGraphInternal::State>
m_state;
bool sendPicture(WingzGraphInternal::Graphic const &graphic, MWAWPosition const &pos)
try to send a picture graphic
Definition: WingzGraph.cxx:1503
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
WingzGraph(WingzParser &parser)
constructor
Definition: WingzGraph.cxx:257
MWAWParserStatePtr m_parserState
the parser state
Definition: WingzGraph.hxx:123
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
bool sendPageGraphics()
try to send the page graphic
Definition: WingzGraph.cxx:1693
std::shared_ptr< WingzGraphInternal::State > m_state
the state
Definition: WingzGraph.hxx:126
Graphic()
the constructor
Definition: WingzGraph.cxx:63
int m_order
the order
Definition: WingzGraph.cxx:85
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:228
@ boldBit
Definition: MWAWFont.hxx:190
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
std::vector< std::shared_ptr< Graphic > > m_pictureList
the list of picture
Definition: WingzGraph.cxx:143
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
@ Simple
Definition: MWAWFont.hxx:49
SubDocument(WingzGraph &pars, MWAWInputStreamPtr const &input, Graphic const &graph)
Definition: WingzGraph.cxx:206
bool sendText(WingzGraphInternal::Graphic const &graphic)
try to send the content of a textbox/button
Definition: WingzGraph.cxx:1644
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
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
virtual ~WingzGraph()
destructor
Definition: WingzGraph.cxx:264
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
WingzGraph & m_graphParser
the graph parser
Definition: WingzGraph.cxx:224
@ embossBit
Definition: MWAWFont.hxx:190
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
the main class to read the graphic part of a Claris Resolve/Wingz file
Definition: WingzGraph.hxx:67
MWAWVec2f getPosition(MWAWVec2i const &cell, MWAWVec2f const &relPos) const
returns the page position corresponding to a cell and its relative position(in percent)
Definition: WingzParser.cxx:334
bool readColor(MWAWColor &color, int &patId)
read a color: front color, patId, background color
Definition: WingzGraph.cxx:1025
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
~SubDocument() final
destructor
Definition: WingzGraph.cxx:214
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
bool readPattern(MWAWGraphicStyle::Pattern &pattern, int &patId)
read a pattern
Definition: WingzGraph.cxx:999
static MWAWGraphicShape polygon(MWAWBox2f const &box)
static constructor to create a polygon
Definition: MWAWGraphicShape.hxx:165
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWBox2f m_relativePosition
the relative position (% of cell)
Definition: WingzGraph.cxx:89
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
std::stack< std::shared_ptr< Graphic > > m_groupStack
the group stack
Definition: WingzGraph.cxx:145
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
void initPatterns(int vers)
init the pattern list
Definition: WingzGraph.cxx:150
@ shadowBit
Definition: MWAWFont.hxx:191
std::vector< MWAWVec2f > m_vertices
the vertices list: poly (% of box)
Definition: WingzGraph.cxx:95
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
SubDocument(SubDocument const &orig)=delete
WingzGraph & operator=(WingzGraph const &orig)=delete
the main class to read a Claris Resolve or a Wingz document
Definition: WingzParser.hxx:63
int m_type
the file type
Definition: WingzGraph.cxx:83
Internal: the state of a WingzGraph.
Definition: WingzGraph.cxx:121
Internal: the subdocument of a WingzGraph.
Definition: WingzGraph.cxx:204
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
int m_flag
some flag (depending of type)
Definition: WingzGraph.cxx:116
bool readMacro()
read a macro in a text zone ( some graphic zone)
Definition: WingzParser.cxx:1972
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
WingzGraph(WingzGraph const &orig)=delete
@ Path
Definition: MWAWGraphicShape.hxx:49
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
State()
constructor
Definition: WingzGraph.cxx:123
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
int m_inGroupDepth
the group actual depth
Definition: WingzGraph.cxx:147
static MWAWGraphicShape arc(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a arc
Definition: MWAWGraphicShape.hxx:137
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
void addGraphic(std::shared_ptr< WingzGraphInternal::Graphic > graphic)
add a new graphic
Definition: WingzGraph.cxx:133
int m_textType
the textbox type
Definition: WingzGraph.cxx:105
@ italicBit
Definition: MWAWFont.hxx:190
Internal a Graphic of a WingzGraph.
Definition: WingzGraph.cxx:61
MWAWEntry m_textEntry
the textbox entry
Definition: WingzGraph.cxx:107
MWAWBox2i m_position
the cell
Definition: WingzGraph.cxx:87
Graphic const & m_graphic
the graphic
Definition: WingzGraph.cxx:226
MWAWFont m_font[2]
the name/title basic font
Definition: WingzGraph.cxx:101
@ Page
Definition: MWAWPosition.hxx:51
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
bool readEndGroup()
read a end group zone: 0xf
Definition: WingzGraph.cxx:596
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
int version() const
returns the file version
Definition: WingzGraph.cxx:267
std::vector< MWAWFont > m_fontList
list of fonts: textbox
Definition: WingzGraph.cxx:109
bool findNextZone(int lastType=0)
try to find the next spreadsheet zone
Definition: WingzParser.cxx:1922
bool readGraphic()
read a graphic zone: 0xe
Definition: WingzGraph.cxx:281
Internal: the structures of a WingzGraph.
Definition: WingzGraph.cxx:59
static MWAWGraphicShape polyline(MWAWBox2f const &box)
static constructor to create a polyline
Definition: MWAWGraphicShape.hxx:157
bool readTextZone(std::shared_ptr< WingzGraphInternal::Graphic > graphic)
read a text zone or a button zone ( some graphic zone)
Definition: WingzGraph.cxx:635
bool readChartData(std::shared_ptr< WingzGraphInternal::Graphic > graphic)
read a chart
Definition: WingzGraph.cxx:1037
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
std::vector< MWAWGraphicStyle::Pattern > m_patternList
the patterns list
Definition: WingzGraph.cxx:141
MWAWGraphicStyle m_style
the graphic style
Definition: WingzGraph.cxx:91
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
std::map< int, size_t > m_posToFontId
map pos to fontId
Definition: WingzGraph.cxx:111
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: WingzGraph.cxx:243
MWAWEntry m_entry[2]
the data : if picture 0: data, if textbox/button 0:button, 1:title
Definition: WingzGraph.cxx:99
SubDocument & operator=(SubDocument const &orig)=delete
bool sendShape(WingzGraphInternal::Graphic const &graphic, MWAWPosition const &pos)
try to send a shape graphic
Definition: WingzGraph.cxx:1525
WingzParser * m_mainParser
the main parser;
Definition: WingzGraph.hxx:129
Class to store font.
Definition: MWAWFont.hxx:44
a simple path component
Definition: MWAWGraphicShape.hxx:53
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: WingzGraph.cxx:232
bool hasSurface() const
returns true if the interior surface is defined
Definition: MWAWGraphicStyle.hxx:442
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
float m_angles[2]
the angles: for arc
Definition: WingzGraph.cxx:93
bool sendGraphic(WingzGraphInternal::Graphic const &graphic, MWAWPosition const &pos)
try to send a generic graphic
Definition: WingzGraph.cxx:1444
std::vector< std::shared_ptr< Graphic > > m_children
the children: group
Definition: WingzGraph.cxx:97
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
MWAWParagraph m_paragraph
the paragraph: textbox
Definition: WingzGraph.cxx:113
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20