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, const css::awt::Size &rSize={}, 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 | |
std::optional< sal_Int32 > | moFillType |
Color | maFillColor |
Fill type (OOXML token). More... | |
std::optional< bool > | moUseBgFill |
Solid fill color and transparence. More... | |
GradientFillProperties | maGradientProps |
Whether the background is used as fill type. More... | |
PatternFillProperties | maPatternProps |
Properties for gradient fills. More... | |
BlipFillProperties | maBlipProps |
Properties for pattern fills. More... | |
Definition at line 129 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 368 of file fillproperties.cxx.
References oox::drawingml::Color::assignIfUsed(), oox::assignIfUsed(), oox::drawingml::BlipFillProperties::assignUsed(), oox::drawingml::GradientFillProperties::assignUsed(), oox::drawingml::PatternFillProperties::assignUsed(), maBlipProps, maFillColor, maGradientProps, maPatternProps, moFillType, and moUseBgFill.
Referenced by oox::drawingml::table::applyTableStylePart(), oox::drawingml::LineProperties::assignUsed(), oox::drawingml::TextCharacterProperties::assignUsed(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::Shape::getActualFillProperties(), and oox::drawingml::table::TableCell::pushToXCell().
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 378 of file fillproperties.cxx.
References 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::TextCharacterProperties::pushToPropMap(), oox::drawingml::LineProperties::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 , |
||
const css::awt::Size & | rSize = {} , |
||
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 403 of file fillproperties.cxx.
References model::convertToThemeColorType(), createHatch(), model::color::createXComplexColor(), 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, FillStyle, oox::drawingml::FillStyle, oox::drawingml::FillTransparency, oox::drawingml::FillUseSlideBackground, basegfx::BGradient::getAsGradient2(), oox::drawingml::Color::getColor(), oox::drawingml::Color::getComplexColor(), basegfx::BGradient::GetGradientStyle(), oox::GraphicHelper::getOriginalSize(), oox::drawingml::Color::getTransparency(), basegfx::BGradient::GetXOffset(), basegfx::BGradient::GetYOffset(), oox::drawingml::GradientTransparency, 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, moUseBgFill, oox::drawingml::BlipFillProperties::mxFillGraphic, oox::drawingml::PER_DEGREE, oox::drawingml::PER_PERCENT, PROP_FillComplexColor, PROP_GraphicCrop, basegfx::BColorStops::reverseColorStops(), SAL_MAX_INT32, basegfx::BGradient::SetAngle(), basegfx::BGradient::SetColorStops(), basegfx::BGradient::SetGradientStyle(), oox::drawingml::ShapePropertyMap::setProperty(), model::ComplexColor::setSchemeColor(), basegfx::BGradient::SetXOffset(), basegfx::BGradient::SetYOffset(), oox::drawingml::ShapePropertyMap::supportsProperty(), basegfx::BGradient::tryToRecreateBorder(), and XML_TOKEN_INVALID.
Referenced by oox::drawingml::Shape::createAndInsert(), oox::drawingml::lcl_copyCharPropsToShape(), oox::shape::WpsContext::onEndElement(), and oox::drawingml::table::TableCell::pushToXCell().
BlipFillProperties oox::drawingml::FillProperties::maBlipProps |
Properties for pattern fills.
Definition at line 136 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 132 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_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), pushToPropMap(), and oox::drawingml::table::TableCell::pushToXCell().
GradientFillProperties oox::drawingml::FillProperties::maGradientProps |
Whether the background is used as fill type.
Definition at line 134 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 135 of file fillproperties.hxx.
Referenced by assignUsed(), oox::drawingml::FillPropertiesContext::createFillContext(), getBestSolidColor(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::FillProperties::moFillType |
Definition at line 131 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::lcl_copyCharPropsToShape(), oox::drawingml::TextCharacterPropertiesContext::onCreateContext(), oox::drawingml::chart::PlotAreaModel::PlotAreaModel(), oox::drawingml::TextCharacterProperties::pushToPropMap(), oox::drawingml::LineProperties::pushToPropMap(), pushToPropMap(), and oox::drawingml::table::TableCell::pushToXCell().
std::optional< bool > oox::drawingml::FillProperties::moUseBgFill |
Solid fill color and transparence.
Definition at line 133 of file fillproperties.hxx.
Referenced by assignUsed(), and pushToPropMap().