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 | |
| virtual | ~MWAWGraphicStyle () |
| virtual destructor | |
| bool | hasLine () const |
| returns true if the border is defined | |
| void | setSurfaceColor (MWAWColor 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 (MWAWColor const &col, float opacity=1) |
| set the background color | |
| bool | hasBackgroundColor () const |
| returns true if the background is defined | |
| void | setShadowColor (MWAWColor 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< MWAWBorder > const & | borders () const |
| return the frame border: libmwaw::Left | ... | |
| void | resetBorders () |
| reset the border | |
| void | setBorders (int wh, MWAWBorder const &border) |
| sets the cell border: wh=libmwaw::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 (MWAWGraphicStyle const &a) const |
| compare two styles | |
Static Public Member Functions | |
| static MWAWGraphicStyle | 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 | |
| MWAWColor | m_lineColor |
| the line color | |
| bool | m_fillRuleEvenOdd |
| true if the fill rule is evenod | |
| MWAWColor | m_surfaceColor |
| the surface color | |
| float | m_surfaceOpacity |
| true if the surface has some color | |
| MWAWColor | m_shadowColor |
| the shadow color | |
| float | m_shadowOpacity |
| true if the shadow has some color | |
| MWAWVec2f | 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 | |
| MWAWVec2f | 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 | |
| MWAWColor | m_backgroundColor |
| the background color | |
| float | m_backgroundOpacity |
| true if the background has some color | |
| std::vector< MWAWBorder > | m_bordersList |
| the borders MWAWBorder::Pos (for a frame) | |
| std::string | m_frameName |
| the frame name | |
| std::string | 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, MWAWGraphicStyle const &st) |
| a print operator | |
a structure used to define a picture style
| MWAWGraphicStyle::MWAWGraphicStyle | ( | ) | [inline] |
constructor
| virtual MWAWGraphicStyle::~MWAWGraphicStyle | ( | ) | [inline, virtual] |
virtual destructor
| void MWAWGraphicStyle::addFrameTo | ( | librevenge::RVNGPropertyList & | pList | ) | const |
add all the frame parameters to propList: the background and the borders
Referenced by MWAWTextListener::openFrame(), and MWAWSpreadsheetListener::openFrame().
| void MWAWGraphicStyle::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 MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), MWAWTextListener::insertPicture(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), and MWAWSpreadsheetListener::insertPicture().
| std::vector<MWAWBorder> const& MWAWGraphicStyle::borders | ( | ) | const [inline] |
return the frame border: libmwaw::Left | ...
| int MWAWGraphicStyle::cmp | ( | MWAWGraphicStyle const & | a | ) | const |
compare two styles
| static MWAWGraphicStyle MWAWGraphicStyle::emptyStyle | ( | ) | [inline, static] |
returns an empty style.
Can be used to initialize a default frame style...
Referenced by MWAWPresentationListener::insertFooter(), MWAWGraphicListener::insertFooter(), MWAWPresentationListener::insertHeader(), MWAWGraphicListener::insertHeader(), MWAWPresentationListener::insertSlideNote(), MWAWPresentationListener::openGroup(), MWAWGraphicListener::openGroup(), MWAWPresentationListener::openTable(), MWAWGraphicListener::openTable(), BeagleWksDBParser::sendFrame(), BeagleWksSSParser::sendFrame(), BeagleWksBMParser::sendFrame(), BeagleWksParser::sendFrame(), BeagleWksDRParser::sendFrame(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), and SuperPaintParser::sendPictures().
| bool MWAWGraphicStyle::hasBackgroundColor | ( | ) | const [inline] |
returns true if the background is defined
| bool MWAWGraphicStyle::hasBorders | ( | ) | const [inline] |
return true if the frame has some border
Referenced by addFrameTo(), and operator<<().
| bool MWAWGraphicStyle::hasGradient | ( | bool | complex = false | ) | const [inline] |
returns true if the gradient is defined
Referenced by MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), addTo(), hasSurface(), operator<<(), ClarisWksGraph::sendGroupChild(), and GreatWksGraph::sendTextbox().
| bool MWAWGraphicStyle::hasLine | ( | ) | const [inline] |
returns true if the border is defined
Referenced by HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), MWAWGraphicShape::getBdBox(), RagTimeParser::send(), ClarisWksGraph::sendGroupChild(), RagTimeParser::sendPicture(), and ClarisWksTableInternal::TableCell::update().
| bool MWAWGraphicStyle::hasPattern | ( | ) | const [inline] |
returns true if the pattern is defined
Referenced by addTo(), hasSurface(), operator<<(), HanMacWrdKGraph::sendFrame(), HanMacWrdJGraph::sendFrame(), ClarisWksGraph::sendGroupChild(), and GreatWksGraph::sendTextbox().
| bool MWAWGraphicStyle::hasSameBorders | ( | ) | const [inline] |
return true if the frame has some border
Referenced by addFrameTo().
| bool MWAWGraphicStyle::hasShadow | ( | ) | const [inline] |
returns true if the shadow is defined
Referenced by addFrameTo(), addTo(), and operator<<().
| bool MWAWGraphicStyle::hasSurface | ( | ) | const [inline] |
returns true if the interior surface is defined
Referenced by addTo(), MWAWTextListener::insertPicture(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWSpreadsheetListener::insertPicture(), and MacDrawParser::readObject().
| bool MWAWGraphicStyle::hasSurfaceColor | ( | ) | const [inline] |
returns true if the surface is defined
Referenced by HanMacWrdJGraphInternal::FrameFormat::addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), ClarisDrawGraph::getSurfaceColor(), ClarisWksGraph::getSurfaceColor(), hasSurface(), operator<<(), ClarisWksDbaseContent::readRecordSS(), ClarisWksTable::readTableCells(), HanMacWrdJGraph::sendComment(), ClarisWksGraph::sendGroupChild(), and GreatWksGraph::sendTextbox().
| void MWAWGraphicStyle::resetBorders | ( | ) | [inline] |
reset the border
| void MWAWGraphicStyle::setBackgroundColor | ( | MWAWColor const & | col, |
| float | opacity = 1 |
||
| ) | [inline] |
set the background color
Referenced by FullWrtStruct::Border::addTo(), HanMacWrdJGraphInternal::FrameFormat::addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), MacWrtProStructuresInternal::Block::fillFrame(), MsWksGraphInternal::TextBox::fillFrame(), MsWksGraphInternal::TextBoxv4::fillFrame(), RagTimeParser::readDataZoneHeader(), ClarisWksTable::readTableCells(), HanMacWrdJGraph::sendComment(), ClarisWksGraph::sendGroupChild(), and GreatWksGraph::sendTextbox().
| void MWAWGraphicStyle::setBorders | ( | int | wh, |
| MWAWBorder const & | border | ||
| ) |
sets the cell border: wh=libmwaw::LeftBit|...
Referenced by MarinerWrtGraphInternal::Token::addPictBorder(), FullWrtStruct::Border::addTo(), HanMacWrdJGraphInternal::FrameFormat::addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), MacWrtProStructuresInternal::Block::fillFrame(), RagTimeParser::send(), MacDrawProParser::send(), HanMacWrdJGraph::sendComment(), BeagleWksDBParser::sendFrame(), BeagleWksSSParser::sendFrame(), BeagleWksBMParser::sendFrame(), BeagleWksParser::sendFrame(), BeagleWksDRParser::sendFrame(), ClarisDrawGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), ClarisDrawGraph::sendMainGroupChild(), and RagTimeParser::sendPicture().
| void MWAWGraphicStyle::setPattern | ( | Pattern const & | pat | ) | [inline] |
set the pattern
Referenced by SuperPaintParser::readShape(), GreatWksGraph::readStyle(), and MarinerWrtGraph::sendRule().
| void MWAWGraphicStyle::setShadowColor | ( | MWAWColor const & | col, |
| float | opacity = 1 |
||
| ) | [inline] |
set the shadow color
Referenced by FullWrtStruct::Border::addTo(), RagTimeParser::readDataZoneHeader(), ClarisDrawGraph::readShape(), MacDrawProParser::send(), ClarisDrawGraph::sendGroup(), and ClarisDrawGraph::sendMainGroupChild().
| void MWAWGraphicStyle::setSurfaceColor | ( | MWAWColor const & | col, |
| float | opacity = 1 |
||
| ) | [inline] |
set the surface color
Referenced by BeagleWksSSParser::readChart(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDraftParser::readLabel(), MacDrawParser::readObject(), MacDrawProParser::readObject(), MsWksGraph::readPictHeader(), SuperPaintParser::readShape(), BeagleWksDRParser::readStyle(), MacDraftParser::send(), MacDrawProParser::send(), ClarisDrawGraph::sendGroup(), ClarisDrawGraph::sendMainGroupChild(), BeagleWksDRParser::sendPictures(), ClarisDrawGraph::sendShape(), MWAWChart::Series::Series(), ClarisDrawStyleManager::updateGradient(), ClarisWksStyleManager::updateGradient(), and ClarisWksStyleManager::updateWallPaper().
| std::ostream& operator<< | ( | std::ostream & | o, |
| MWAWGraphicStyle const & | st | ||
| ) | [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(), HanMacWrdKGraphInternal::ShapeGraph::getStyle(), MsWksGraphInternal::BasicShape::getStyle(), MWAWGraphicStyle(), MsWksGraphInternal::BasicShape::needExtraBorderWidth(), operator<<(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDraftParser::readObject(), MacDrawParser::readObject(), MsWksGraph::readPictHeader(), BeagleWksDRParser::readShapeDefinitions(), GreatWksGraph::readStyle(), HanMacWrdJGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), HanMacWrdJGraph::sendGroupChild(), ClarisDrawGraph::sendShape(), ClarisWksGraph::sendShape(), HanMacWrdJGraph::sendShapeGraph(), and GreatWksGraphInternal::FrameShape::updateStyle().
the background color
Referenced by addFrameTo(), cmp(), operator<<(), and setBackgroundColor().
true if the background has some color
Referenced by addFrameTo(), cmp(), hasBackgroundColor(), operator<<(), ClarisWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), and setBackgroundColor().
| std::vector<MWAWBorder> MWAWGraphicStyle::m_bordersList |
the borders MWAWBorder::Pos (for a frame)
Referenced by addFrameTo(), borders(), cmp(), hasBorders(), hasSameBorders(), operator<<(), resetBorders(), and setBorders().
| std::string MWAWGraphicStyle::m_extra |
extra data
Referenced by operator<<(), HanMacWrdJGraph::readFrames(), MsWksGraph::readGradient(), ClarisWksStyleManager::readGraphStyles(), and GreatWksGraph::readStyle().
true if the fill rule is evenod
Referenced by addTo(), cmp(), operator<<(), and MsWksGraph::Style::Style().
| bool MWAWGraphicStyle::m_flip[2] |
two bool to indicated we need to flip the shape or not
Referenced by cmp(), GreatWksGraphInternal::FrameText::getStyle(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWPresentationListener::insertTextBox(), MWAWGraphicListener::insertTextBox(), MWAWGraphicStyle(), operator<<(), MacDrawParser::readObject(), MacDrawProParser::readObject(), BeagleWksDRParser::readShapeDefinitions(), MacDraftParserInternal::Shape::transform(), and MacDrawProParser::updateGeometryShape().
| std::string MWAWGraphicStyle::m_frameName |
| std::string MWAWGraphicStyle::m_frameNextName |
the frame next name (if there is a link)
Referenced by ClarisDrawGraphInternal::ZoneZone::addFrameName(), ClarisWksGraphInternal::ZoneZone::addFrameName(), HanMacWrdKGraphInternal::TextBox::addTo(), cmp(), MWAWTextListener::insertTextBox(), MWAWSpreadsheetListener::insertTextBox(), operator<<(), MsWksGraph::send(), and HanMacWrdJGraph::sendTextbox().
the gradient border opacity
Referenced by addTo(), cmp(), and operator<<().
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<<(), MsWksGraph::readGradient(), GreatWksGraph::readStyle(), ClarisDrawStyleManagerInternal::Gradient::update(), ClarisWksStyleManagerInternal::Gradient::update(), ClarisDrawStyleManager::updateGradient(), ClarisWksStyleManager::updateGradient(), and MacDrawProStyleManager::updateGradient().
the line cap
Referenced by addTo(), cmp(), and operator<<().
the line color
Referenced by HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), cmp(), operator<<(), BeagleWksSSParser::readChart(), RagTimeParser::readDataZoneHeader(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDrawParser::readObject(), MacDrawProParser::readObject(), MsWksGraph::readPictHeader(), SuperPaintParser::readShape(), BeagleWksDRParser::readStyle(), GreatWksGraph::readStyle(), ClarisWksTable::readTableCells(), RagTimeParser::send(), HanMacWrdJGraph::sendComment(), MWAWTable::sendExtraLines(), ClarisWksGraph::sendGroupChild(), RagTimeParser::sendPicture(), MarinerWrtGraph::sendRule(), and ClarisWksTableInternal::TableCell::update().
| std::vector<float> MWAWGraphicStyle::m_lineDashWidth |
the dash array: a sequence of (fullsize, emptysize)
Referenced by addTo(), cmp(), operator<<(), MacDrawProParser::readObject(), ClarisDrawGraph::readShape(), GreatWksGraph::readStyle(), and GreatWksGraphInternal::FrameShape::updateStyle().
the line join
Referenced by addTo(), cmp(), and operator<<().
the line opacity: 0=transparent
Referenced by addTo(), cmp(), hasLine(), operator<<(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), and GreatWksGraph::readStyle().
the linewidth
Referenced by HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), MWAWChart::Axis::Axis(), cmp(), emptyStyle(), HanMacWrdJGraphInternal::FrameFormat::FrameFormat(), MWAWGraphicShape::getBdBox(), GreatWksGraphInternal::FrameText::getStyle(), hasLine(), MsWksGraphInternal::BasicShape::needExtraBorderWidth(), operator<<(), BeagleWksSSParser::readChart(), RagTimeParser::readDataZoneHeader(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDrawParser::readObject(), MacDrawProParser::readObject(), MsWksGraph::readPictHeader(), SuperPaintParser::readShape(), BeagleWksDRParser::readStyle(), GreatWksGraph::readStyle(), ClarisWksTable::readTableCells(), MsWksGraph::send(), RagTimeParser::send(), MacDrawProParser::send(), MacDrawProParser::sendBitmap(), HanMacWrdJGraph::sendComment(), MWAWTable::sendExtraLines(), ClarisDrawGraph::sendGroup(), MsWksGraph::sendGroup(), ClarisWksGraph::sendGroupChild(), MsWksGraph::sendGroupChild(), ClarisDrawGraph::sendMainGroupChild(), RagTimeParser::sendPicture(), BeagleWksDRParser::sendPictures(), MarinerWrtGraph::sendRule(), ClarisDrawGraph::sendShape(), MWAWChart::Series::Series(), MWAWChart::TextZone::TextZone(), and ClarisWksTableInternal::TableCell::update().
the pattern if it exists
Referenced by addTo(), cmp(), hasPattern(), operator<<(), RagTimeParser::readDataZoneHeader(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDrawParser::readObject(), MacDrawProParser::readObject(), MsWksGraph::readPictHeader(), BeagleWksDRParser::readStyle(), MacDraftParser::send(), setPattern(), and ClarisWksStyleManager::updateWallPaper().
the rotation
Referenced by MWAWPresentationListener::_handleFrameParameters(), MWAWGraphicListener::_handleFrameParameters(), cmp(), MacDrawProParserInternal::Shape::getBdBox(), GreatWksGraphInternal::FrameText::getStyle(), MWAWPresentationListener::insertPicture(), MWAWGraphicListener::insertPicture(), MWAWPresentationListener::insertTextBox(), MWAWGraphicListener::insertTextBox(), operator<<(), RagTimeParser::readDataZoneHeader(), MacDrawParser::readObject(), MacDrawProParser::readRotationInObjectData(), BeagleWksDRParser::readStyle(), ClarisDrawGraph::sendGroup(), ClarisDrawGraph::sendMainGroupChild(), BeagleWksDRParser::sendPictures(), and MacDraftParserInternal::Shape::transform().
the shadow color
Referenced by addFrameTo(), addTo(), cmp(), operator<<(), and setShadowColor().
the shadow offset
Referenced by addFrameTo(), FullWrtStruct::Border::addTo(), addTo(), cmp(), operator<<(), RagTimeParser::readDataZoneHeader(), ClarisDrawGraph::readShape(), MacDrawProParser::send(), ClarisDrawGraph::sendGroup(), and ClarisDrawGraph::sendMainGroupChild().
true if the shadow has some color
Referenced by addFrameTo(), addTo(), cmp(), hasShadow(), operator<<(), and setShadowColor().
the surface color
Referenced by HanMacWrdJGraphInternal::FrameFormat::addTo(), addTo(), HanMacWrdKGraphInternal::TextBox::addTo(), cmp(), ClarisDrawGraph::getSurfaceColor(), ClarisWksGraph::getSurfaceColor(), operator<<(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MsWksGraph::readPictHeader(), ClarisWksDbaseContent::readRecordSS(), GreatWksGraph::readStyle(), ClarisWksTable::readTableCells(), HanMacWrdJGraph::sendComment(), ClarisDrawGraph::sendGroup(), MsWksTable::sendTable(), GreatWksGraph::sendTextbox(), setSurfaceColor(), and MsWksTableInternal::Table::Table().
true if the surface has some color
Referenced by addTo(), cmp(), hasSurfaceColor(), operator<<(), HanMacWrdKGraph::readFrames(), HanMacWrdJGraph::readFrames(), ClarisWksStyleManager::readGraphStyles(), ClarisDrawGraph::readGroupDef(), ClarisWksGraph::readGroupDef(), MacDraftParser::readObject(), GreatWksGraph::readStyle(), ClarisDrawGraph::sendGroup(), and setSurfaceColor().