LibreOffice Module oox (master)
1
|
#include <fillproperties.hxx>
Public Member Functions | |
void | assignUsed (const FillProperties &rSourceProps) |
Properties for bitmap fills. More... | |
Color | getBestSolidColor () const |
Tries to resolve current settings to a solid color, e.g. More... | |
void | pushToPropMap (ShapePropertyMap &rPropMap, const GraphicHelper &rGraphicHelper, sal_Int32 nShapeRotation=0,::Color nPhClr=API_RGB_TRANSPARENT, sal_Int16 nPhClrTheme=-1, bool bFlipH=false, bool bFlipV=false, bool bIsCustomShape=false) const |
Writes the properties to the passed property map. More... | |
Public Attributes | |
OptValue< sal_Int32 > | moFillType |
Color | maFillColor |
Fill type (OOXML token). More... | |
GradientFillProperties | maGradientProps |
Solid fill color and transparence. More... | |
PatternFillProperties | maPatternProps |
Properties for gradient fills. More... | |
BlipFillProperties | maBlipProps |
Properties for pattern fills. More... | |
Definition at line 127 of file fillproperties.hxx.
void oox::drawingml::FillProperties::assignUsed | ( | const FillProperties & | rSourceProps | ) |
Properties for bitmap fills.
Overwrites all members that are explicitly set in rSourceProps.
Definition at line 339 of file fillproperties.cxx.
References oox::drawingml::Color::assignIfUsed(), oox::OptValue< Type >::assignIfUsed(), oox::drawingml::GradientFillProperties::assignUsed(), oox::drawingml::PatternFillProperties::assignUsed(), oox::drawingml::BlipFillProperties::assignUsed(), maBlipProps, maFillColor, maGradientProps, maPatternProps, and moFillType.
Referenced by oox::drawingml::table::applyTableStylePart(), oox::drawingml::LineProperties::assignUsed(), oox::drawingml::TextCharacterProperties::assignUsed(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::Shape::getActualFillProperties(), oox::drawingml::table::TableCell::pushToXCell(), and oox::drawingml::LayoutNode::setupShape().
Color oox::drawingml::FillProperties::getBestSolidColor | ( | ) | const |
Tries to resolve current settings to a solid color, e.g.
returns the start color of a gradient.
Definition at line 348 of file fillproperties.cxx.
References oox::OptValue< Type >::get(), oox::OptValue< Type >::has(), oox::drawingml::Color::isUsed(), maFillColor, maGradientProps, oox::drawingml::GradientFillProperties::maGradientStops, oox::drawingml::PatternFillProperties::maPattBgColor, maPatternProps, oox::drawingml::PatternFillProperties::maPattFgColor, and moFillType.
Referenced by oox::drawingml::table::applyLineAttributes(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::TextCharacterProperties::pushToPropMap(), oox::drawingml::TextParagraphProperties::pushToPropSet(), oox::drawingml::table::TableCell::pushToXCell(), and oox::drawingml::SimpleFillPropertiesContext::~SimpleFillPropertiesContext().
void oox::drawingml::FillProperties::pushToPropMap | ( | ShapePropertyMap & | rPropMap, |
const GraphicHelper & | rGraphicHelper, | ||
sal_Int32 | nShapeRotation = 0 , |
||
::Color | nPhClr = API_RGB_TRANSPARENT , |
||
sal_Int16 | nPhClrTheme = -1 , |
||
bool | bFlipH = false , |
||
bool | bFlipV = false , |
||
bool | bIsCustomShape = false |
||
) | const |
Writes the properties to the passed property map.
Definition at line 373 of file fillproperties.cxx.
References createHatch(), oox::drawingml::FillBackground, oox::drawingml::FillBitmap, oox::drawingml::FillBitmapMode, oox::drawingml::FillBitmapName, oox::drawingml::FillBitmapOffsetX, oox::drawingml::FillBitmapOffsetY, oox::drawingml::FillBitmapRectanglePoint, oox::drawingml::FillBitmapSizeX, oox::drawingml::FillBitmapSizeY, oox::drawingml::FillColor, oox::drawingml::FillGradient, oox::drawingml::FillHatch, oox::drawingml::FillStyle, oox::drawingml::FillTransparency, first, oox::OptValue< Type >::get(), oox::drawingml::Color::getColor(), oox::drawingml::Color::getLumMod(), oox::drawingml::Color::getLumOff(), oox::GraphicHelper::getOriginalSize(), oox::drawingml::Color::getSchemeColorIndex(), oox::drawingml::Color::getTintOrShade(), oox::drawingml::Color::getTransparency(), oox::drawingml::GradientTransparency, oox::OptValue< Type >::has(), oox::drawingml::Color::hasTransparency(), oox::drawingml::Color::isUsed(), maBlipProps, maFillColor, maGradientProps, oox::drawingml::GradientFillProperties::maGradientStops, oox::drawingml::PatternFillProperties::maPattBgColor, maPatternProps, oox::drawingml::PatternFillProperties::maPattFgColor, oox::drawingml::MAX_PERCENT, oox::drawingml::BlipFillProperties::moAlphaModFix, oox::drawingml::BlipFillProperties::moBitmapMode, oox::drawingml::BlipFillProperties::moColorEffect, oox::drawingml::BlipFillProperties::moFillRect, oox::drawingml::GradientFillProperties::moFillToRect, moFillType, oox::drawingml::GradientFillProperties::moGradientPath, oox::drawingml::PatternFillProperties::moPattPreset, oox::drawingml::GradientFillProperties::moRotateWithShape, oox::drawingml::GradientFillProperties::moShadeAngle, oox::drawingml::BlipFillProperties::moTileAlign, oox::drawingml::BlipFillProperties::moTileOffsetX, oox::drawingml::BlipFillProperties::moTileOffsetY, oox::drawingml::BlipFillProperties::moTileScaleX, oox::drawingml::BlipFillProperties::moTileScaleY, oox::drawingml::BlipFillProperties::mxFillGraphic, nBorder, nIndex, oox::drawingml::PER_DEGREE, oox::drawingml::PER_PERCENT, SAL_INFO, SAL_MAX_INT32, oox::drawingml::ShapePropertyMap::setProperty(), oox::drawingml::ShapePropertyMap::supportsProperty(), and XML_TOKEN_INVALID.
Referenced by oox::drawingml::Shape::createAndInsert(), and oox::drawingml::table::TableCell::pushToXCell().
BlipFillProperties oox::drawingml::FillProperties::maBlipProps |
Properties for pattern fills.
Definition at line 133 of file fillproperties.hxx.
Referenced by assignUsed(), oox::drawingml::FillPropertiesContext::createFillContext(), and pushToPropMap().
Color oox::drawingml::FillProperties::maFillColor |
Fill type (OOXML token).
Definition at line 130 of file fillproperties.hxx.
Referenced by oox::drawingml::table::applyBorder(), oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::Shape::createAndInsert(), getBestSolidColor(), oox::drawingml::TextRun::insertAt(), oox::drawingml::lcl_createPresetShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::table::TableCell::pushToXCell().
GradientFillProperties oox::drawingml::FillProperties::maGradientProps |
Solid fill color and transparence.
Definition at line 131 of file fillproperties.hxx.
Referenced by assignUsed(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::FillPropertiesContext::createFillContext(), getBestSolidColor(), and pushToPropMap().
PatternFillProperties oox::drawingml::FillProperties::maPatternProps |
Properties for gradient fills.
Definition at line 132 of file fillproperties.hxx.
Referenced by assignUsed(), oox::drawingml::FillPropertiesContext::createFillContext(), getBestSolidColor(), and pushToPropMap().
OptValue< sal_Int32 > oox::drawingml::FillProperties::moFillType |
Definition at line 129 of file fillproperties.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), oox::drawingml::table::applyTableStylePart(), assignUsed(), oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::FillPropertiesContext::createFillContext(), oox::drawingml::Shape::getActualFillProperties(), oox::drawingml::Shape::getActualLineProperties(), getBestSolidColor(), oox::drawingml::LineProperties::getLineStyle(), oox::drawingml::TextRun::insertAt(), oox::drawingml::TextParagraph::insertAt(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::chart::PlotAreaModel::PlotAreaModel(), oox::drawingml::LineProperties::pushToPropMap(), oox::drawingml::TextCharacterProperties::pushToPropMap(), pushToPropMap(), and oox::drawingml::table::TableCell::pushToXCell().