LibreOffice Module oox (master) 1
|
#include <customshapeproperties.hxx>
Public Member Functions | |
CustomShapeProperties () | |
void | pushToPropSet (const css::uno::Reference< css::beans::XPropertySet > &xPropSet, const css::awt::Size &aSize) |
sal_Int32 | getShapePresetType () const |
css::uno::Sequence< sal_Int8 > const & | getShapePresetTypeName () const |
void | setShapePresetType (sal_Int32 nShapePresetType) |
bool | getShapeTypeOverride () const |
void | setShapeTypeOverride (bool bShapeTypeOverride) |
std::vector< CustomShapeGuide > & | getAdjustmentGuideList () |
std::vector< CustomShapeGuide > & | getGuideList () |
std::vector< AdjustHandle > & | getAdjustHandleList () |
std::vector< ConnectionSite > & | getConnectionSiteList () |
std::optional< GeomRect > & | getTextRect () |
std::vector< Path2D > & | getPath2DList () |
std::vector< css::drawing::EnhancedCustomShapeSegment > & | getSegments () |
void | setMirroredX (bool bMirroredX) |
void | setMirroredY (bool bMirroredY) |
void | setTextPreRotateAngle (sal_Int32 nAngle) |
void | setTextCameraZRotateAngle (sal_Int32 nAngle) |
void | setTextAreaRotateAngle (sal_Int32 nAngle) |
sal_Int32 | getArcNum () |
sal_Int32 | countArcTo () |
bool | representsDefaultShape () const |
Returns whether or not the current CustomShapeProperties represent a default shape preset that is rectangular. More... | |
Static Public Member Functions | |
static sal_Int32 | SetCustomShapeGuideValue (std::vector< CustomShapeGuide > &rGuideList, const CustomShapeGuide &rGuide) |
static sal_Int32 | GetCustomShapeGuideValue (const std::vector< CustomShapeGuide > &rGuideList, std::u16string_view rFormulaName) |
Private Types | |
typedef std::unordered_map< sal_Int32, PropertyMap > | PresetDataMap |
Static Private Member Functions | |
static void | initializePresetDataMap () |
Private Attributes | |
sal_Int32 | mnShapePresetType |
bool | mbShapeTypeOverride |
std::vector< CustomShapeGuide > | maAdjustmentGuideList |
std::vector< CustomShapeGuide > | maGuideList |
std::vector< AdjustHandle > | maAdjustHandleList |
std::vector< ConnectionSite > | maConnectionSiteList |
std::optional< GeomRect > | maTextRect |
std::vector< Path2D > | maPath2DList |
std::vector< css::drawing::EnhancedCustomShapeSegment > | maSegments |
bool | mbMirroredX |
bool | mbMirroredY |
sal_Int32 | mnTextPreRotateAngle |
sal_Int32 | mnTextCameraZRotateAngle |
std::optional< sal_Int32 > | moTextAreaRotateAngle |
sal_Int32 | mnArcNum |
Static Private Attributes | |
static PresetDataMap | maPresetDataMap |
Definition at line 95 of file customshapeproperties.hxx.
|
private |
Definition at line 153 of file customshapeproperties.hxx.
oox::drawingml::CustomShapeProperties::CustomShapeProperties | ( | ) |
Definition at line 46 of file customshapeproperties.cxx.
|
inline |
Definition at line 126 of file customshapeproperties.hxx.
References mnArcNum.
Referenced by pushToPropSet().
|
inline |
Definition at line 111 of file customshapeproperties.hxx.
References maAdjustHandleList.
Referenced by oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
inline |
Definition at line 109 of file customshapeproperties.hxx.
References maAdjustmentGuideList.
Referenced by oox::drawingml::GetAdjCoordinate(), oox::drawingml::CustomShapeGeometryContext::onCreateContext(), oox::drawingml::PresetShapeGeometryContext::onCreateContext(), and oox::drawingml::PresetTextShapeContext::onCreateContext().
|
inline |
Definition at line 125 of file customshapeproperties.hxx.
References mnArcNum.
|
inline |
Definition at line 112 of file customshapeproperties.hxx.
References maConnectionSiteList.
Referenced by oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
static |
Definition at line 77 of file customshapeproperties.cxx.
References maName, and nIndex.
Referenced by oox::drawingml::GetAdjCoordinate(), and pushToPropSet().
|
inline |
Definition at line 110 of file customshapeproperties.hxx.
References maGuideList.
Referenced by oox::drawingml::GetAdjCoordinate(), and oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
inline |
Definition at line 114 of file customshapeproperties.hxx.
References maPath2DList.
Referenced by oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
inline |
Definition at line 115 of file customshapeproperties.hxx.
References maSegments.
Referenced by oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
inline |
Definition at line 103 of file customshapeproperties.hxx.
References mnShapePresetType.
Referenced by representsDefaultShape().
uno::Sequence< sal_Int8 > const & oox::drawingml::CustomShapeProperties::getShapePresetTypeName | ( | ) | const |
Definition at line 57 of file customshapeproperties.cxx.
References oox::TokenMap::getUtf8TokenName(), mnShapePresetType, and oox::StaticTokenMap().
|
inline |
Definition at line 106 of file customshapeproperties.hxx.
References mbShapeTypeOverride.
|
inline |
Definition at line 113 of file customshapeproperties.hxx.
References maTextRect.
Referenced by oox::drawingml::CustomShapeGeometryContext::onCreateContext().
|
staticprivate |
Definition at line 823 of file customshapepresetdata.cxx.
References aName, comphelper::containerToSequence(), ERRCODE_NONE, SvStream::GetError(), oox::TokenMap::getTokenFromUnicode(), maPresetDataMap, SvStream::ReadLine(), SAL_WARN, oox::PropertyMap::setProperty(), and o3tl::starts_with().
Referenced by pushToPropSet().
void oox::drawingml::CustomShapeProperties::pushToPropSet | ( | const css::uno::Reference< css::beans::XPropertySet > & | xPropSet, |
const css::awt::Size & | aSize | ||
) |
Definition at line 101 of file customshapeproperties.cxx.
References Any, aSeq, comphelper::containerToSequence(), countArcTo(), oox::PropertyMap::dumpCode(), oox::PropertyMap::dumpData(), GetCustomShapeGuideValue(), namespaces::i, initializePresetDataMap(), maAdjustHandleList, maAdjustmentGuideList, maGuideList, oox::PropertyMap::makePropertySet(), oox::PropertyMap::makePropertyValueSequence(), maPath2DList, maPresetDataMap, maSegments, maTextRect, mbMirroredX, mbMirroredY, mnShapePresetType, mnTextCameraZRotateAngle, mnTextPreRotateAngle, moTextAreaRotateAngle, nIndex, pos, SAL_INFO, oox::PropertySet::setProperty(), oox::PropertyMap::setProperty(), o3tl::toInt32(), and u.
bool oox::drawingml::CustomShapeProperties::representsDefaultShape | ( | ) | const |
Returns whether or not the current CustomShapeProperties represent a default shape preset that is rectangular.
Definition at line 92 of file customshapeproperties.cxx.
References getShapePresetType(), and maPath2DList.
|
static |
Definition at line 62 of file customshapeproperties.cxx.
References oox::drawingml::CustomShapeGuide::maName, maName, and nIndex.
Referenced by oox::drawingml::GetAdjCoordinate().
|
inline |
Definition at line 116 of file customshapeproperties.hxx.
References mbMirroredX.
|
inline |
Definition at line 117 of file customshapeproperties.hxx.
References mbMirroredY.
|
inline |
Definition at line 105 of file customshapeproperties.hxx.
References mnShapePresetType.
Referenced by oox::drawingml::PresetShapeGeometryContext::PresetShapeGeometryContext(), and oox::drawingml::PresetTextShapeContext::PresetTextShapeContext().
|
inline |
Definition at line 107 of file customshapeproperties.hxx.
References mbShapeTypeOverride.
|
inline |
Definition at line 120 of file customshapeproperties.hxx.
References moTextAreaRotateAngle.
|
inline |
Definition at line 119 of file customshapeproperties.hxx.
References mnTextCameraZRotateAngle.
|
inline |
Definition at line 118 of file customshapeproperties.hxx.
References mnTextPreRotateAngle.
|
private |
Definition at line 140 of file customshapeproperties.hxx.
Referenced by getAdjustHandleList(), and pushToPropSet().
|
private |
Definition at line 138 of file customshapeproperties.hxx.
Referenced by getAdjustmentGuideList(), and pushToPropSet().
|
private |
Definition at line 141 of file customshapeproperties.hxx.
Referenced by getConnectionSiteList().
|
private |
Definition at line 139 of file customshapeproperties.hxx.
Referenced by getGuideList(), and pushToPropSet().
|
private |
Definition at line 143 of file customshapeproperties.hxx.
Referenced by getPath2DList(), pushToPropSet(), and representsDefaultShape().
|
staticprivate |
Definition at line 155 of file customshapeproperties.hxx.
Referenced by initializePresetDataMap(), and pushToPropSet().
|
private |
Definition at line 146 of file customshapeproperties.hxx.
Referenced by getSegments(), and pushToPropSet().
|
private |
Definition at line 142 of file customshapeproperties.hxx.
Referenced by getTextRect(), and pushToPropSet().
|
private |
Definition at line 147 of file customshapeproperties.hxx.
Referenced by pushToPropSet(), and setMirroredX().
|
private |
Definition at line 148 of file customshapeproperties.hxx.
Referenced by pushToPropSet(), and setMirroredY().
|
private |
Definition at line 137 of file customshapeproperties.hxx.
Referenced by getShapeTypeOverride(), and setShapeTypeOverride().
|
private |
Definition at line 158 of file customshapeproperties.hxx.
Referenced by countArcTo(), and getArcNum().
|
private |
Definition at line 136 of file customshapeproperties.hxx.
Referenced by getShapePresetType(), getShapePresetTypeName(), pushToPropSet(), and setShapePresetType().
|
private |
Definition at line 150 of file customshapeproperties.hxx.
Referenced by pushToPropSet(), and setTextCameraZRotateAngle().
|
private |
Definition at line 149 of file customshapeproperties.hxx.
Referenced by pushToPropSet(), and setTextPreRotateAngle().
|
private |
Definition at line 151 of file customshapeproperties.hxx.
Referenced by pushToPropSet(), and setTextAreaRotateAngle().