LibreOffice Module oox (master) 1
|
#include <lineproperties.hxx>
Public Types | |
typedef ::std::pair< sal_Int32, sal_Int32 > | DashStop |
typedef ::std::vector< DashStop > | DashStopVector |
Public Member Functions | |
void | assignUsed (const LineProperties &rSourceProps) |
Line joint type (OOXML token). More... | |
void | pushToPropMap (ShapePropertyMap &rPropMap, const GraphicHelper &rGraphicHelper, ::Color nPhClr=API_RGB_TRANSPARENT, sal_Int16 nPhClrTheme=-1) const |
Writes the properties to the passed property map. More... | |
css::drawing::LineStyle | getLineStyle () const |
Calculates the line style attribute from the internal state of the object. More... | |
css::drawing::LineCap | getLineCap () const |
Calculates the line cap attribute from the internal state of the object. More... | |
css::drawing::LineJoint | getLineJoint () const |
Calculates the line joint attribute from the internal state of the object. More... | |
sal_Int32 | getLineWidth () const |
Calculates the line width attribute from the internal state of the object. More... | |
Public Attributes | |
LineArrowProperties | maStartArrow |
LineArrowProperties | maEndArrow |
Start line arrow style. More... | |
FillProperties | maLineFill |
End line arrow style. More... | |
DashStopVector | maCustomDash |
Line fill (solid, gradient, ...). More... | |
std::optional< sal_Int32 > | moLineWidth |
User-defined line dash style. More... | |
std::optional< sal_Int32 > | moPresetDash |
Line width (EMUs). More... | |
std::optional< sal_Int32 > | moLineCompound |
Preset dash (OOXML token). More... | |
std::optional< sal_Int32 > | moLineCap |
Line compound type (OOXML token). More... | |
std::optional< sal_Int32 > | moLineJoint |
Line cap (OOXML token). More... | |
Definition at line 50 of file lineproperties.hxx.
typedef ::std::pair< sal_Int32, sal_Int32 > oox::drawingml::LineProperties::DashStop |
Definition at line 52 of file lineproperties.hxx.
typedef ::std::vector< DashStop > oox::drawingml::LineProperties::DashStopVector |
Definition at line 53 of file lineproperties.hxx.
void oox::drawingml::LineProperties::assignUsed | ( | const LineProperties & | rSourceProps | ) |
Line joint type (OOXML token).
Overwrites all members that are explicitly set in rSourceProps.
Definition at line 420 of file lineproperties.cxx.
References oox::assignIfUsed(), oox::drawingml::FillProperties::assignUsed(), oox::drawingml::LineArrowProperties::assignUsed(), maCustomDash, maEndArrow, maLineFill, maStartArrow, moLineCap, moLineCompound, moLineJoint, moLineWidth, and moPresetDash.
Referenced by oox::drawingml::table::applyBorder(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::Shape::getActualLineProperties(), and oox::drawingml::table::TableCell::pushToXCell().
drawing::LineCap oox::drawingml::LineProperties::getLineCap | ( | ) | const |
Calculates the line cap attribute from the internal state of the object.
Definition at line 544 of file lineproperties.cxx.
References moLineCap.
Referenced by oox::drawingml::Shape::createAndInsert().
drawing::LineJoint oox::drawingml::LineProperties::getLineJoint | ( | ) | const |
Calculates the line joint attribute from the internal state of the object.
Definition at line 552 of file lineproperties.cxx.
References moLineJoint.
Referenced by oox::drawingml::Shape::createAndInsert().
drawing::LineStyle oox::drawingml::LineProperties::getLineStyle | ( | ) | const |
Calculates the line style attribute from the internal state of the object.
Definition at line 533 of file lineproperties.cxx.
References maCustomDash, maLineFill, oox::drawingml::FillProperties::moFillType, and moPresetDash.
Referenced by oox::drawingml::Shape::createAndInsert().
sal_Int32 oox::drawingml::LineProperties::getLineWidth | ( | ) | const |
Calculates the line width attribute from the internal state of the object.
Definition at line 560 of file lineproperties.cxx.
References oox::drawingml::convertEmuToHmm(), and moLineWidth.
Referenced by oox::drawingml::Shape::createAndInsert(), and pushToPropMap().
void oox::drawingml::LineProperties::pushToPropMap | ( | ShapePropertyMap & | rPropMap, |
const GraphicHelper & | rGraphicHelper, | ||
::Color | nPhClr = API_RGB_TRANSPARENT , |
||
sal_Int16 | nPhClrTheme = -1 |
||
) | const |
Writes the properties to the passed property map.
Definition at line 434 of file lineproperties.cxx.
References model::ComplexColor::addTransformation(), model::convertToThemeColorType(), model::color::createXComplexColor(), oox::drawingml::FillProperties::getBestSolidColor(), oox::drawingml::Color::getColor(), getLineWidth(), oox::drawingml::Color::getLumMod(), oox::drawingml::Color::getLumOff(), oox::drawingml::Color::getSchemeColorIndex(), oox::drawingml::Color::getTintOrShade(), oox::drawingml::Color::getTransparency(), oox::drawingml::Color::hasTransparency(), oox::drawingml::Color::isUsed(), oox::drawingml::LineCap, oox::drawingml::LineColor, oox::drawingml::LineDash, oox::drawingml::LineJoint, oox::drawingml::LineStyle, oox::drawingml::LineTransparency, oox::drawingml::LineWidth, model::LumMod, model::LumOff, maCustomDash, maEndArrow, maLineFill, maStartArrow, oox::drawingml::FillProperties::moFillType, moLineCap, moLineJoint, moPresetDash, nLineWidth, oox::drawingml::ShapePropertyMap::setProperty(), model::ComplexColor::setSchemeColor(), model::Shade, and model::Tint.
Referenced by oox::drawingml::Shape::createAndInsert(), and oox::shape::WpsContext::onEndElement().
DashStopVector oox::drawingml::LineProperties::maCustomDash |
Line fill (solid, gradient, ...).
Definition at line 58 of file lineproperties.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), assignUsed(), getLineStyle(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().
LineArrowProperties oox::drawingml::LineProperties::maEndArrow |
Start line arrow style.
Definition at line 56 of file lineproperties.hxx.
Referenced by assignUsed(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().
FillProperties oox::drawingml::LineProperties::maLineFill |
End line arrow style.
Definition at line 57 of file lineproperties.hxx.
Referenced by oox::drawingml::table::applyBorder(), oox::drawingml::table::applyLineAttributes(), assignUsed(), oox::drawingml::chart::AxisConverter::convertFromModel(), oox::drawingml::Shape::createAndInsert(), oox::drawingml::Shape::getActualLineProperties(), getLineStyle(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().
LineArrowProperties oox::drawingml::LineProperties::maStartArrow |
Definition at line 55 of file lineproperties.hxx.
Referenced by assignUsed(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::LineProperties::moLineCap |
Line compound type (OOXML token).
Definition at line 62 of file lineproperties.hxx.
Referenced by assignUsed(), getLineCap(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::LineProperties::moLineCompound |
Preset dash (OOXML token).
Definition at line 61 of file lineproperties.hxx.
Referenced by assignUsed().
std::optional< sal_Int32 > oox::drawingml::LineProperties::moLineJoint |
Line cap (OOXML token).
Definition at line 63 of file lineproperties.hxx.
Referenced by assignUsed(), getLineJoint(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().
std::optional< sal_Int32 > oox::drawingml::LineProperties::moLineWidth |
User-defined line dash style.
Definition at line 59 of file lineproperties.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), assignUsed(), oox::drawingml::Shape::createAndInsert(), and getLineWidth().
std::optional< sal_Int32 > oox::drawingml::LineProperties::moPresetDash |
Line width (EMUs).
Definition at line 60 of file lineproperties.hxx.
Referenced by oox::drawingml::table::applyLineAttributes(), assignUsed(), getLineStyle(), oox::drawingml::LinePropertiesContext::onCreateContext(), and pushToPropMap().