a structure used to define a picture style More...
#include <MWAWGraphicStyle.hxx>
Classes | |
struct | GradientStop |
a structure used to define the gradient limit More... | |
struct | Pattern |
a basic pattern used in a MWAWGraphicStyle: More... | |
Public Types | |
enum | LineCap { C_Butt, C_Square, C_Round } |
an enum used to define the basic line cap More... | |
enum | LineJoin { J_Miter, J_Round, J_Bevel } |
an enum used to define the basic line join More... | |
enum | GradientType { G_None, G_Axial, G_Linear, G_Radial, G_Rectangular, G_Square, G_Ellipsoid } |
an enum used to define the gradient type More... | |
Public Member Functions | |
MWAWGraphicStyle () | |
constructor More... | |
virtual | ~MWAWGraphicStyle () |
virtual destructor More... | |
bool | hasLine () const |
returns true if the border is defined More... | |
void | setSurfaceColor (MWAWColor const &col, float opacity=1) |
set the surface color More... | |
bool | hasSurfaceColor () const |
returns true if the surface is defined More... | |
void | setPattern (Pattern const &pat) |
set the pattern More... | |
bool | hasPattern () const |
returns true if the pattern is defined More... | |
bool | hasGradient (bool complex=false) const |
returns true if the gradient is defined More... | |
bool | hasSurface () const |
returns true if the interior surface is defined More... | |
void | setShadowColor (MWAWColor const &col, float opacity=1) |
set the shadow color More... | |
bool | hasShadow () const |
returns true if the shadow is defined More... | |
void | addTo (WPXPropertyList &pList, WPXPropertyListVector &gradient, bool only1d=false) const |
add to propList More... | |
int | cmp (MWAWGraphicStyle const &a) const |
compare two styles More... | |
Public Attributes | |
float | m_lineWidth |
the linewidth More... | |
std::vector< float > | m_lineDashWidth |
the dash array: a sequence of (fullsize, emptysize) More... | |
LineCap | m_lineCap |
the line cap More... | |
LineJoin | m_lineJoin |
the line join More... | |
float | m_lineOpacity |
the line opacity: 0=transparent More... | |
MWAWColor | m_lineColor |
the line color More... | |
bool | m_fillRuleEvenOdd |
true if the fill rule is evenod More... | |
MWAWColor | m_surfaceColor |
the surface color More... | |
float | m_surfaceOpacity |
true if the surface has some color More... | |
MWAWColor | m_shadowColor |
the shadow color More... | |
float | m_shadowOpacity |
true if the shadow has some color More... | |
Vec2f | m_shadowOffset |
the shadow offset More... | |
Pattern | m_pattern |
the pattern if it exists More... | |
GradientType | m_gradientType |
the gradient type More... | |
std::vector< GradientStop > | m_gradientStopList |
the list of gradient limits More... | |
float | m_gradientAngle |
the gradient angle More... | |
float | m_gradientBorder |
the gradient border opacity More... | |
Vec2f | m_gradientPercentCenter |
the gradient center More... | |
float | m_gradientRadius |
the gradient radius More... | |
bool | m_arrows [2] |
two bool to indicated if extremity has arrow or not More... | |
float | m_rotate |
the rotation More... | |
bool | m_flip [2] |
two bool to indicated we need to flip the shape or not More... | |
std::string | m_extra |
extra data More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, MWAWGraphicStyle const &st) |
a print operator More... | |
a structure used to define a picture style
|
inline |
constructor
|
inlinevirtual |
virtual destructor
void MWAWGraphicStyle::addTo | ( | WPXPropertyList & | pList, |
WPXPropertyListVector & | gradient, | ||
bool | only1d = false |
||
) | const |
add to propList
Referenced by MWAWGraphicListener::_handleFrameParameters(), MWAWGraphicListener::insertPicture(), and MWAWGraphicShape::send().
int MWAWGraphicStyle::cmp | ( | MWAWGraphicStyle const & | a | ) | const |
compare two styles
|
inline |
returns true if the gradient is defined
Referenced by MWAWGraphicListener::_handleFrameParameters(), addTo(), hasSurface(), operator<<(), CWGraph::sendGroupChild(), and GWGraph::sendTextbox().
|
inline |
returns true if the border is defined
Referenced by HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), MWAWGraphicShape::getBdBox(), CWGraph::sendGroupChild(), and CWTableInternal::TableCell::update().
|
inline |
returns true if the pattern is defined
Referenced by addTo(), hasSurface(), operator<<(), HMWKGraph::sendFrame(), HMWJGraph::sendFrame(), CWGraph::sendGroupChild(), and GWGraph::sendTextbox().
|
inline |
returns true if the shadow is defined
Referenced by addTo(), and operator<<().
|
inline |
returns true if the interior surface is defined
Referenced by addTo(), and MWAWGraphicShape::send().
|
inline |
returns true if the surface is defined
Referenced by HMWJGraphInternal::FrameFormat::addTo(), HMWKGraphInternal::TextBox::addTo(), CWGraph::getSurfaceColor(), hasSurface(), operator<<(), CWTable::readTableCells(), HMWJGraph::sendComment(), CWGraph::sendGroupChild(), and GWGraph::sendTextbox().
|
inline |
set the pattern
Referenced by GWGraph::readStyle(), and MRWGraph::sendRule().
|
inline |
set the shadow color
|
inline |
set the surface color
Referenced by HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), CWStyleManager::updateGradient(), and CWStyleManager::updateWallPaper().
|
friend |
a print operator
bool MWAWGraphicStyle::m_arrows[2] |
two bool to indicated if extremity has arrow or not
Referenced by addTo(), cmp(), MWAWGraphicShape::getBdBox(), HMWKGraphInternal::ShapeGraph::getStyle(), MSKGraphInternal::BasicShape::getStyle(), MWAWGraphicStyle(), MSKGraphInternal::BasicShape::needExtraBorderWidth(), operator<<(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), GWGraph::readStyle(), CWGraph::sendGroup(), HMWJGraph::sendGroup(), HMWJGraph::sendGroupChild(), CWGraph::sendShape(), HMWJGraph::sendShapeGraph(), and GWGraphInternal::FrameShape::updateStyle().
std::string MWAWGraphicStyle::m_extra |
extra data
Referenced by operator<<(), HMWJGraph::readFrames(), MSKGraph::readGradient(), CWStyleManager::readGraphStyles(), and GWGraph::readStyle().
bool MWAWGraphicStyle::m_fillRuleEvenOdd |
true if the fill rule is evenod
Referenced by addTo(), cmp(), operator<<(), and MSKGraph::Style::Style().
bool MWAWGraphicStyle::m_flip[2] |
two bool to indicated we need to flip the shape or not
Referenced by cmp(), GWGraphInternal::FrameText::getStyle(), MWAWGraphicListener::insertTextBox(), MWAWGraphicStyle(), and operator<<().
float MWAWGraphicStyle::m_gradientAngle |
the gradient angle
Referenced by addTo(), cmp(), operator<<(), MSKGraph::readGradient(), GWGraph::readStyle(), and CWStyleManagerInternal::Gradient::update().
float MWAWGraphicStyle::m_gradientBorder |
the gradient border opacity
Referenced by addTo(), cmp(), and operator<<().
Vec2f MWAWGraphicStyle::m_gradientPercentCenter |
the gradient center
Referenced by addTo(), cmp(), operator<<(), MSKGraph::readGradient(), GWGraph::readStyle(), and CWStyleManagerInternal::Gradient::update().
float MWAWGraphicStyle::m_gradientRadius |
the gradient radius
Referenced by addTo(), cmp(), and operator<<().
std::vector<GradientStop> MWAWGraphicStyle::m_gradientStopList |
the list of gradient limits
Referenced by addTo(), cmp(), hasGradient(), MWAWGraphicStyle(), operator<<(), MSKGraph::readGradient(), GWGraph::readStyle(), CWStyleManagerInternal::Gradient::update(), and CWStyleManager::updateGradient().
GradientType MWAWGraphicStyle::m_gradientType |
the gradient type
Referenced by addTo(), cmp(), hasGradient(), operator<<(), MSKGraph::readGradient(), GWGraph::readStyle(), and CWStyleManagerInternal::Gradient::update().
LineCap MWAWGraphicStyle::m_lineCap |
the line cap
Referenced by addTo(), cmp(), and operator<<().
MWAWColor MWAWGraphicStyle::m_lineColor |
the line color
Referenced by HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), cmp(), operator<<(), HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), GWGraph::readStyle(), CWTable::readTableCells(), HMWJGraph::sendComment(), MWAWTable::sendExtraLines(), CWGraph::sendGroupChild(), MRWGraph::sendRule(), and CWTableInternal::TableCell::update().
std::vector<float> MWAWGraphicStyle::m_lineDashWidth |
the dash array: a sequence of (fullsize, emptysize)
Referenced by addTo(), cmp(), operator<<(), GWGraph::readStyle(), and GWGraphInternal::FrameShape::updateStyle().
LineJoin MWAWGraphicStyle::m_lineJoin |
the line join
Referenced by addTo(), cmp(), and operator<<().
float MWAWGraphicStyle::m_lineOpacity |
the line opacity: 0=transparent
Referenced by addTo(), cmp(), hasLine(), operator<<(), HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), and GWGraph::readStyle().
float MWAWGraphicStyle::m_lineWidth |
the linewidth
Referenced by HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), cmp(), HMWJGraphInternal::FrameFormat::FrameFormat(), MWAWGraphicShape::getBdBox(), GWGraphInternal::FrameText::getStyle(), hasLine(), MSKGraphInternal::BasicShape::needExtraBorderWidth(), operator<<(), HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), GWGraph::readStyle(), CWTable::readTableCells(), MSKGraph::send(), CWGraph::sendBitmap(), HMWJGraph::sendComment(), MWAWTable::sendExtraLines(), MSKGraph::sendGroup(), CWGraph::sendGroupChild(), MSKGraph::sendGroupChild(), MRWGraph::sendRule(), and CWTableInternal::TableCell::update().
Pattern MWAWGraphicStyle::m_pattern |
the pattern if it exists
Referenced by addTo(), cmp(), hasPattern(), operator<<(), HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), setPattern(), and CWStyleManager::updateWallPaper().
float MWAWGraphicStyle::m_rotate |
the rotation
Referenced by MWAWGraphicListener::_handleFrameParameters(), cmp(), GWGraphInternal::FrameText::getStyle(), MWAWGraphicListener::insertTextBox(), and operator<<().
MWAWColor MWAWGraphicStyle::m_shadowColor |
the shadow color
Referenced by addTo(), cmp(), operator<<(), and setShadowColor().
Vec2f MWAWGraphicStyle::m_shadowOffset |
the shadow offset
Referenced by addTo(), cmp(), and operator<<().
float MWAWGraphicStyle::m_shadowOpacity |
true if the shadow has some color
Referenced by addTo(), cmp(), hasShadow(), operator<<(), and setShadowColor().
MWAWColor MWAWGraphicStyle::m_surfaceColor |
the surface color
Referenced by HMWJGraphInternal::FrameFormat::addTo(), addTo(), HMWKGraphInternal::TextBox::addTo(), cmp(), CWGraph::getSurfaceColor(), operator<<(), CWGraph::readGroupDef(), MSKGraph::readPictHeader(), GWGraph::readStyle(), CWTable::readTableCells(), HMWJGraph::sendComment(), MSKTable::sendTable(), GWGraph::sendTextbox(), setSurfaceColor(), and MSKTableInternal::Table::Table().
float MWAWGraphicStyle::m_surfaceOpacity |
true if the surface has some color
Referenced by addTo(), cmp(), hasSurfaceColor(), operator<<(), HMWKGraph::readFrames(), HMWJGraph::readFrames(), CWStyleManager::readGraphStyles(), CWGraph::readGroupDef(), GWGraph::readStyle(), and setSurfaceColor().