LibreOffice Module xmloff (master) 1
Typedefs | Functions | Variables
ximpcustomshape.cxx File Reference
#include "ximpcustomshape.hxx"
#include <o3tl/any.hxx>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustring.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <xmloff/xmltoken.hxx>
#include <EnhancedCustomShapeToken.hxx>
#include <xmloff/xmlimp.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmluconv.hxx>
#include <xmloff/xmlement.hxx>
#include <xexptran.hxx>
#include <com/sun/star/drawing/Direction3D.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextFrame.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegmentCommand.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeTextPathMode.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeMetalType.hpp>
#include <com/sun/star/drawing/ProjectionMode.hpp>
#include <com/sun/star/drawing/Position3D.hpp>
#include <sax/tools/converter.hxx>
#include <comphelper/sequence.hxx>
#include <o3tl/string_view.hxx>
#include <memory>
#include <string_view>
#include <unordered_map>
Include dependency graph for ximpcustomshape.cxx:

Go to the source code of this file.

Typedefs

typedef std::unordered_map< OUString, sal_Int32 > EquationHashMap
 

Functions

static void GetBool (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetInt32 (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetDouble (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetString (std::vector< css::beans::PropertyValue > &rDest, const OUString &rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
template<typename EnumT >
static void GetEnum (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp, const SvXMLEnumMapEntry< EnumT > &rMap)
 
static void GetDoublePercentage (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetB3DVector (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static bool GetEquationName (std::u16string_view rEquation, const sal_Int32 nStart, OUString &rEquationName)
 
static bool GetNextParameter (css::drawing::EnhancedCustomShapeParameter &rParameter, sal_Int32 &nIndex, std::u16string_view rParaString)
 
static void GetPosition3D (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp, const SvXMLUnitConverter &rUnitConverter)
 
static void GetDoubleSequence (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetSizeSequence (std::vector< css::beans::PropertyValue > &rDest, std::string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetEnhancedParameter (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetEnhancedParameterPair (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static sal_Int32 GetEnhancedParameterPairSequence (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetEnhancedRectangleSequence (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue, const EnhancedCustomShapeTokenEnum eDestProp)
 
static void GetEnhancedPath (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue, std::u16string_view rType)
 
static void GetAdjustmentValues (std::vector< css::beans::PropertyValue > &rDest, std::u16string_view rValue)
 
static void SdXMLCustomShapePropertyMerge (std::vector< css::beans::PropertyValue > &rPropVec, const std::vector< beans::PropertyValues > &rElement, const OUString &rElementName)
 
static void SdXMLCustomShapePropertyMerge (std::vector< css::beans::PropertyValue > &rPropVec, const std::vector< OUString > &rElement, const OUString &rElementName)
 
static void SdXMLCustomShapePropertyMerge (std::vector< css::beans::PropertyValue > &rPropVec, const std::vector< css::beans::PropertyValue > &rElement, const OUString &rElementName)
 
static void CheckAndResolveEquationParameter (css::drawing::EnhancedCustomShapeParameter &rPara, EquationHashMap *pH)
 

Variables

const SvXMLEnumMapEntry< sal_uInt16 > aXML_GluePointEnumMap []
 

Typedef Documentation

◆ EquationHashMap

typedef std::unordered_map< OUString, sal_Int32 > EquationHashMap

Definition at line 1201 of file ximpcustomshape.cxx.

Function Documentation

◆ CheckAndResolveEquationParameter()

static void CheckAndResolveEquationParameter ( css::drawing::EnhancedCustomShapeParameter &  rPara,
EquationHashMap pH 
)
static

Definition at line 1205 of file ximpcustomshape.cxx.

References nIndex.

Referenced by XMLEnhancedCustomShapeContext::endFastElement().

◆ GetAdjustmentValues()

static void GetAdjustmentValues ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue 
)
static

◆ GetB3DVector()

static void GetB3DVector ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetBool()

static void GetBool ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetDouble()

static void GetDouble ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetDoublePercentage()

static void GetDoublePercentage ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetDoubleSequence()

static void GetDoubleSequence ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetEnhancedParameter()

static void GetEnhancedParameter ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetEnhancedParameterPair()

static void GetEnhancedParameterPair ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetEnhancedParameterPairSequence()

static sal_Int32 GetEnhancedParameterPairSequence ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetEnhancedPath()

static void GetEnhancedPath ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue,
std::u16string_view  rType 
)
static

◆ GetEnhancedRectangleSequence()

static void GetEnhancedRectangleSequence ( std::vector< css::beans::PropertyValue > &  rDest,
std::u16string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetEnum()

template<typename EnumT >
static void GetEnum ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp,
const SvXMLEnumMapEntry< EnumT > &  rMap 
)
static

◆ GetEquationName()

static bool GetEquationName ( std::u16string_view  rEquation,
const sal_Int32  nStart,
OUString &  rEquationName 
)
static

Definition at line 174 of file ximpcustomshape.cxx.

References nIndex.

Referenced by XMLEnhancedCustomShapeContext::endFastElement(), and GetNextParameter().

◆ GetInt32()

static void GetInt32 ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetNextParameter()

static bool GetNextParameter ( css::drawing::EnhancedCustomShapeParameter &  rParameter,
sal_Int32 &  nIndex,
std::u16string_view  rParaString 
)
static

◆ GetPosition3D()

static void GetPosition3D ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp,
const SvXMLUnitConverter rUnitConverter 
)
static

◆ GetSizeSequence()

static void GetSizeSequence ( std::vector< css::beans::PropertyValue > &  rDest,
std::string_view  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ GetString()

static void GetString ( std::vector< css::beans::PropertyValue > &  rDest,
const OUString &  rValue,
const EnhancedCustomShapeTokenEnum  eDestProp 
)
static

◆ SdXMLCustomShapePropertyMerge() [1/3]

static void SdXMLCustomShapePropertyMerge ( std::vector< css::beans::PropertyValue > &  rPropVec,
const std::vector< beans::PropertyValues > &  rElement,
const OUString &  rElementName 
)
static

◆ SdXMLCustomShapePropertyMerge() [2/3]

static void SdXMLCustomShapePropertyMerge ( std::vector< css::beans::PropertyValue > &  rPropVec,
const std::vector< css::beans::PropertyValue > &  rElement,
const OUString &  rElementName 
)
static

Definition at line 1188 of file ximpcustomshape.cxx.

References comphelper::containerToSequence().

◆ SdXMLCustomShapePropertyMerge() [3/3]

static void SdXMLCustomShapePropertyMerge ( std::vector< css::beans::PropertyValue > &  rPropVec,
const std::vector< OUString > &  rElement,
const OUString &  rElementName 
)
static

Definition at line 1175 of file ximpcustomshape.cxx.

References comphelper::containerToSequence().

Variable Documentation

◆ aXML_GluePointEnumMap

const SvXMLEnumMapEntry<sal_uInt16> aXML_GluePointEnumMap[]
Initial value:
=
{
{ XML_NONE, 0 },
{ XML_SEGMENTS, 1 },
{ XML_NONE, 2 },
{ XML_RECTANGLE, 3 },
}

Definition at line 68 of file ximpcustomshape.cxx.

Referenced by XMLEnhancedCustomShapeContext::startFastElement().