MsWksGraph::Style Struct Referencefinal

Internal: the graphic style of MsWksGraph. More...

#include <MsWksGraph.hxx>

Inheritance diagram for MsWksGraph::Style:
MWAWGraphicStyle

Public Member Functions

 Style ()
 constructor More...
 
 Style (Style const &)=default
 
Styleoperator= (Style const &)=default
 
Styleoperator= (Style &&)=default
 
 ~Style () final
 destructor More...
 
- Public Member Functions inherited from MWAWGraphicStyle
 MWAWGraphicStyle ()
 constructor More...
 
 MWAWGraphicStyle (MWAWGraphicStyle const &)=default
 
MWAWGraphicStyleoperator= (MWAWGraphicStyle const &)=default
 
MWAWGraphicStyleoperator= (MWAWGraphicStyle &&)=default
 
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, float opacity=1)
 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 setBackgroundColor (MWAWColor const &col, float opacity=1)
 set the background color More...
 
bool hasBackgroundColor () const
 returns true if the background 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...
 
bool hasBorders () const
 return true if the frame has some border More...
 
bool hasSameBorders () const
 return true if the frame has some border More...
 
std::vector< MWAWBorder > const & borders () const
 return the frame border: libmwaw::Left | ... More...
 
void resetBorders ()
 reset the border More...
 
void setBorders (int wh, MWAWBorder const &border)
 sets the cell border: wh=libmwaw::LeftBit|... More...
 
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 More...
 
void addFrameTo (librevenge::RVNGPropertyList &pList) const
 add all the frame parameters to propList: the background and the borders More...
 
int cmp (MWAWGraphicStyle const &a) const
 compare two styles More...
 

Public Attributes

MWAWColor m_baseLineColor
 the line color More...
 
MWAWColor m_baseSurfaceColor
 the 2D surface color More...
 
- Public Attributes inherited from MWAWGraphicStyle
std::vector< float > m_lineDashWidth
 the dash array: a sequence of (fullsize, emptysize) More...
 
float m_lineWidth
 the linewidth 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...
 
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...
 
MWAWVec2f m_shadowOffset
 the shadow offset More...
 
Pattern m_pattern
 the pattern if it exists More...
 
Gradient m_gradient
 the gradient More...
 
MWAWColor m_backgroundColor
 the background color More...
 
float m_backgroundOpacity
 true if the background has some color More...
 
float m_rotate
 the rotation More...
 
std::vector< MWAWBorderm_bordersList
 the borders MWAWBorder::Pos (for a frame) More...
 
std::string m_frameName
 the frame name More...
 
std::string m_frameNextName
 the frame next name (if there is a link) More...
 
Arrow m_arrows [2]
 the two arrows corresponding to start and end extremity More...
 
bool m_flip [2]
 two bool to indicated we need to flip the shape or not More...
 
bool m_fillRuleEvenOdd
 true if the fill rule is evenod More...
 
bool m_doNotPrint
 a bool to know if the shape must not be printed More...
 
std::string m_extra
 extra data More...
 

Friends

std::ostream & operator<< (std::ostream &o, Style const &st)
 operator<< More...
 

Additional Inherited Members

- Public Types inherited from MWAWGraphicStyle
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...
 
- Static Public Member Functions inherited from MWAWGraphicStyle
static MWAWGraphicStyle emptyStyle ()
 returns an empty style. More...
 

Detailed Description

Internal: the graphic style of MsWksGraph.

Constructor & Destructor Documentation

◆ Style() [1/2]

MsWksGraph::Style::Style ( )
inline

constructor

◆ Style() [2/2]

MsWksGraph::Style::Style ( Style const &  )
default

◆ ~Style()

MsWksGraph::Style::~Style ( )
final

destructor

Member Function Documentation

◆ operator=() [1/2]

Style& MsWksGraph::Style::operator= ( Style &&  )
default

◆ operator=() [2/2]

Style& MsWksGraph::Style::operator= ( Style const &  )
default

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
Style const &  st 
)
friend

operator<<

Member Data Documentation

◆ m_baseLineColor

MWAWColor MsWksGraph::Style::m_baseLineColor

the line color

Referenced by MsWksGraph::readGradient(), and MsWksGraph::readPictHeader().

◆ m_baseSurfaceColor


The documentation for this struct was generated from the following files:

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