a structure used to define a picture style More...
#include <WPSGraphicStyle.h>
Classes | |
| struct | GradientStop |
| a structure used to define the gradient limit More... | |
| struct | Pattern |
| a basic pattern used in a WPSGraphicStyle: 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 | |
| WPSGraphicStyle () | |
| constructor | |
| WPSGraphicStyle (WPSGraphicStyle const &)=default | |
| WPSGraphicStyle (WPSGraphicStyle &&)=default | |
| WPSGraphicStyle & | operator= (WPSGraphicStyle &&)=default |
| WPSGraphicStyle & | operator= (WPSGraphicStyle const &)=default |
| virtual | ~WPSGraphicStyle () |
| virtual destructor | |
| bool | hasLine () const |
| returns true if the border is defined | |
| void | setSurfaceColor (WPSColor const &col, float opacity=1) |
| set the surface color | |
| bool | hasSurfaceColor () const |
| returns true if the surface is defined | |
| void | setPattern (Pattern const &pat) |
| set the pattern | |
| bool | hasPattern () const |
| returns true if the pattern is defined | |
| bool | hasGradient (bool complex=false) const |
| returns true if the gradient is defined | |
| bool | hasSurface () const |
| returns true if the interior surface is defined | |
| void | setBackgroundColor (WPSColor const &col, float opacity=1) |
| set the background color | |
| bool | hasBackgroundColor () const |
| returns true if the background is defined | |
| void | setShadowColor (WPSColor const &col, float opacity=1) |
| set the shadow color | |
| bool | hasShadow () const |
| returns true if the shadow is defined | |
| bool | hasBorders () const |
| return true if the frame has some border | |
| bool | hasSameBorders () const |
| return true if the frame has some border | |
| std::vector< WPSBorder > const & | borders () const |
| return the frame border: libwps::Left | ... | |
| void | resetBorders () |
| reset the border | |
| void | setBorders (int wh, WPSBorder const &border) |
| sets the cell border: wh=libwps::LeftBit|... | |
| 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 | |
| void | addFrameTo (librevenge::RVNGPropertyList &pList) const |
| add all the frame parameters to propList: the background and the borders | |
| int | cmp (WPSGraphicStyle const &a) const |
| compare two styles | |
Static Public Member Functions | |
| static WPSGraphicStyle | emptyStyle () |
| returns an empty style. | |
Public Attributes | |
| float | m_lineWidth |
| the linewidth | |
| std::vector< float > | m_lineDashWidth |
| the dash array: a sequence of (fullsize, emptysize) | |
| LineCap | m_lineCap |
| the line cap | |
| LineJoin | m_lineJoin |
| the line join | |
| float | m_lineOpacity |
| the line opacity: 0=transparent | |
| WPSColor | m_lineColor |
| the line color | |
| bool | m_fillRuleEvenOdd |
| true if the fill rule is evenod | |
| WPSColor | m_surfaceColor |
| the surface color | |
| float | m_surfaceOpacity |
| true if the surface has some color | |
| WPSColor | m_shadowColor |
| the shadow color | |
| float | m_shadowOpacity |
| true if the shadow has some color | |
| Vec2f | m_shadowOffset |
| the shadow offset | |
| Pattern | m_pattern |
| the pattern if it exists | |
| GradientType | m_gradientType |
| the gradient type | |
| std::vector< GradientStop > | m_gradientStopList |
| the list of gradient limits | |
| float | m_gradientAngle |
| the gradient angle | |
| float | m_gradientBorder |
| the gradient border opacity | |
| Vec2f | m_gradientPercentCenter |
| the gradient center | |
| float | m_gradientRadius |
| the gradient radius | |
| bool | m_arrows [2] |
| two bool to indicated if extremity has arrow or not | |
| WPSColor | m_backgroundColor |
| the background color | |
| float | m_backgroundOpacity |
| true if the background has some color | |
| std::vector< WPSBorder > | m_bordersList |
| the borders WPSBorder::Pos (for a frame) | |
| librevenge::RVNGString | m_frameName |
| the frame name | |
| librevenge::RVNGString | m_frameNextName |
| the frame next name (if there is a link) | |
| float | m_rotate |
| the rotation | |
| bool | m_flip [2] |
| two bool to indicated we need to flip the shape or not | |
| std::string | m_extra |
| extra data | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, WPSGraphicStyle const &st) |
| a print operator | |
a structure used to define a picture style
|
inline |
constructor
Referenced by cmp(), emptyStyle(), operator<<, operator=(), operator=(), WPSGraphicStyle(), and WPSGraphicStyle().
|
default |
|
default |
|
virtual |
virtual destructor
| void WPSGraphicStyle::addFrameTo | ( | librevenge::RVNGPropertyList & | pList | ) | const |
add all the frame parameters to propList: the background and the borders
Referenced by WKSContentListener::_openFrame().
| void WPSGraphicStyle::addTo | ( | librevenge::RVNGPropertyList & | pList, |
| bool | only1d = false ) const |
add all the parameters to the propList excepted the frame parameter: the background and the borders
Referenced by WKSContentListener::insertPicture().
|
inline |
return the frame border: libwps::Left | ...
| int WPSGraphicStyle::cmp | ( | WPSGraphicStyle const & | a | ) | const |
compare two styles
|
inlinestatic |
returns an empty style.
Can be used to initialize a default frame style...
Referenced by Quattro9Graph::readShape(), Quattro9Graph::readTextboxStyle(), and LotusChart::sendCharts().
|
inline |
returns true if the background is defined
|
inline |
return true if the frame has some border
Referenced by addFrameTo(), and operator<<.
|
inline |
returns true if the gradient is defined
Referenced by addTo(), hasSurface(), operator<<, and LotusStyleManager::updateSurfaceStyle().
|
inline |
returns true if the border is defined
Referenced by addTo().
|
inline |
returns true if the pattern is defined
Referenced by addTo(), hasSurface(), operator<<, and LotusStyleManager::updateSurfaceStyle().
|
inline |
return true if the frame has some border
Referenced by addFrameTo().
|
inline |
returns true if the shadow is defined
Referenced by addFrameTo(), addTo(), and operator<<.
|
inline |
returns true if the interior surface is defined
Referenced by addTo(), and WKSContentListener::insertPicture().
|
inline |
returns true if the surface is defined
Referenced by hasSurface(), and operator<<.
|
default |
|
default |
|
inline |
reset the border
|
inline |
set the background color
Referenced by Quattro9Graph::readTextboxStyle(), and QuattroGraph::sendGraphic().
| void WPSGraphicStyle::setBorders | ( | int | wh, |
| WPSBorder const & | border ) |
sets the cell border: wh=libwps::LeftBit|...
|
inline |
set the pattern
Referenced by LotusChart::readFramesStyle(), Quattro9Graph::readShapeRec(), and LotusStyleManager::updateSurfaceStyle().
|
inline |
set the shadow color
Referenced by LotusStyleManager::updateShadowStyle().
|
inline |
set the surface color
Referenced by LotusChart::readFramesStyle(), Quattro9Graph::readShapeRec(), LotusStyleManager::updateSurfaceStyle(), and LotusStyleManager::updateSurfaceStyle().
|
friend |
a print operator
| bool WPSGraphicStyle::m_arrows[2] |
two bool to indicated if extremity has arrow or not
Referenced by addTo(), cmp(), operator<<, LotusGraph::readGraphic(), Quattro9Graph::readShapeRec(), LotusGraph::sendGraphics(), LotusGraph::sendZone(), and WPSGraphicStyle().
| WPSColor WPSGraphicStyle::m_backgroundColor |
the background color
Referenced by addFrameTo(), cmp(), operator<<, setBackgroundColor(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_backgroundOpacity |
true if the background has some color
Referenced by addFrameTo(), cmp(), hasBackgroundColor(), operator<<, setBackgroundColor(), and WPSGraphicStyle().
| std::vector<WPSBorder> WPSGraphicStyle::m_bordersList |
the borders WPSBorder::Pos (for a frame)
Referenced by addFrameTo(), borders(), cmp(), hasBorders(), hasSameBorders(), operator<<, resetBorders(), setBorders(), and WPSGraphicStyle().
| std::string WPSGraphicStyle::m_extra |
extra data
Referenced by operator<<, and WPSGraphicStyle().
| bool WPSGraphicStyle::m_fillRuleEvenOdd |
true if the fill rule is evenod
Referenced by addTo(), cmp(), operator<<, and WPSGraphicStyle().
| bool WPSGraphicStyle::m_flip[2] |
two bool to indicated we need to flip the shape or not
Referenced by cmp(), operator<<, and WPSGraphicStyle().
| librevenge::RVNGString WPSGraphicStyle::m_frameName |
the frame name
Referenced by addFrameTo(), cmp(), WKSContentListener::insertChart(), operator<<, and WPSGraphicStyle().
| librevenge::RVNGString WPSGraphicStyle::m_frameNextName |
the frame next name (if there is a link)
Referenced by cmp(), operator<<, and WPSGraphicStyle().
| float WPSGraphicStyle::m_gradientAngle |
the gradient angle
Referenced by addTo(), cmp(), operator<<, Quattro9Graph::readShapeRec(), LotusStyleManager::updateSurfaceStyle(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_gradientBorder |
the gradient border opacity
Referenced by addTo(), cmp(), operator<<, and WPSGraphicStyle().
| Vec2f WPSGraphicStyle::m_gradientPercentCenter |
the gradient center
Referenced by addTo(), cmp(), operator<<, Quattro9Graph::readShapeRec(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_gradientRadius |
the gradient radius
Referenced by addTo(), cmp(), operator<<, and WPSGraphicStyle().
| std::vector<GradientStop> WPSGraphicStyle::m_gradientStopList |
the list of gradient limits
Referenced by addTo(), cmp(), hasGradient(), operator<<, Quattro9Graph::readShapeRec(), LotusStyleManager::updateSurfaceStyle(), LotusStyleManager::updateSurfaceStyle(), and WPSGraphicStyle().
| GradientType WPSGraphicStyle::m_gradientType |
the gradient type
Referenced by addTo(), cmp(), hasGradient(), operator<<, Quattro9Graph::readShapeRec(), LotusStyleManager::updateSurfaceStyle(), LotusStyleManager::updateSurfaceStyle(), and WPSGraphicStyle().
| LineCap WPSGraphicStyle::m_lineCap |
the line cap
Referenced by addTo(), cmp(), operator<<, and WPSGraphicStyle().
| WPSColor WPSGraphicStyle::m_lineColor |
the line color
Referenced by addTo(), cmp(), operator<<, LotusChart::readFramesStyle(), LotusGraph::readGraphic(), Quattro9Graph::readShapeRec(), LotusStyleManager::updateGraphicStyle(), LotusStyleManager::updateLineStyle(), and WPSGraphicStyle().
| std::vector<float> WPSGraphicStyle::m_lineDashWidth |
the dash array: a sequence of (fullsize, emptysize)
Referenced by addTo(), cmp(), operator<<, LotusGraph::readGraphic(), Quattro9Graph::readShapeRec(), and WPSGraphicStyle().
| LineJoin WPSGraphicStyle::m_lineJoin |
the line join
Referenced by addTo(), cmp(), operator<<, Quattro9Graph::readShapeRec(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_lineOpacity |
the line opacity: 0=transparent
Referenced by addTo(), cmp(), hasLine(), operator<<, and WPSGraphicStyle().
| float WPSGraphicStyle::m_lineWidth |
the linewidth
Referenced by addTo(), cmp(), emptyStyle(), hasLine(), operator<<, LotusChart::readFramesStyle(), LotusGraph::readGraphic(), Quattro9Graph::readShapeRec(), Quattro9Graph::readTextboxStyle(), LotusStyleManager::updateGraphicStyle(), LotusStyleManager::updateLineStyle(), and WPSGraphicStyle().
| Pattern WPSGraphicStyle::m_pattern |
the pattern if it exists
Referenced by addTo(), cmp(), hasPattern(), operator<<, setPattern(), LotusStyleManager::updateSurfaceStyle(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_rotate |
the rotation
Referenced by cmp(), operator<<, and WPSGraphicStyle().
| WPSColor WPSGraphicStyle::m_shadowColor |
the shadow color
Referenced by addFrameTo(), addTo(), cmp(), operator<<, setShadowColor(), and WPSGraphicStyle().
| Vec2f WPSGraphicStyle::m_shadowOffset |
the shadow offset
Referenced by addFrameTo(), addTo(), cmp(), operator<<, LotusStyleManager::updateShadowStyle(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_shadowOpacity |
true if the shadow has some color
Referenced by addFrameTo(), addTo(), cmp(), hasShadow(), operator<<, setShadowColor(), and WPSGraphicStyle().
| WPSColor WPSGraphicStyle::m_surfaceColor |
the surface color
Referenced by addTo(), cmp(), operator<<, setSurfaceColor(), and WPSGraphicStyle().
| float WPSGraphicStyle::m_surfaceOpacity |
true if the surface has some color
Referenced by addTo(), cmp(), hasSurfaceColor(), operator<<, setSurfaceColor(), and WPSGraphicStyle().