LibreOffice Module chart2 (master) 1
Static Public Member Functions | List of all members
chart::PropertyMapper Class Reference

PropertyMapper provides easy mapping of the property names of various objects in the chart model, to the property names of the destination shape objects (those whose service names begin with com.sun.star.drawing.). More...

#include <PropertyMapper.hxx>

Static Public Member Functions

static void setMappedProperties (const css::uno::Reference< css::beans::XPropertySet > &xTarget, const css::uno::Reference< css::beans::XPropertySet > &xSource, const tPropertyNameMap &rMap)
 
static void setMappedProperties (SvxShape &xTarget, const css::uno::Reference< css::beans::XPropertySet > &xSource, const tPropertyNameMap &rMap)
 
static void getValueMap (tPropertyNameValueMap &rValueMap, const tPropertyNameMap &rNameMap, const css::uno::Reference< css::beans::XPropertySet > &xSourceProp)
 Fetch property values from the source object and map it to the destination container. More...
 
static void getMultiPropertyListsFromValueMap (tNameSequence &rNames, tAnySequence &rValues, const tPropertyNameValueMap &rValueMap)
 
static css::uno::Any * getValuePointer (tAnySequence &rPropValues, const tNameSequence &rPropNames, std::u16string_view rPropName)
 
static css::uno::Any * getValuePointerForLimitedSpace (tAnySequence &rPropValues, const tNameSequence &rPropNames, bool bLimitedHeight)
 
static void setMultiProperties (const tNameSequence &rNames, const tAnySequence &rValues, SvxShape &xTarget)
 
static const tPropertyNameMapgetPropertyNameMapForCharacterProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForParagraphProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForFillProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForLineProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForFillAndLineProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForTextShapeProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForFilledSeriesProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForLineSeriesProperties ()
 
static const tPropertyNameMapgetPropertyNameMapForTextLabelProperties ()
 
static void getTextLabelMultiPropertyLists (const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, tNameSequence &rPropNames, tAnySequence &rPropValues, bool bName=true, sal_Int32 nLimitedSpace=-1, bool bLimitedHeight=false, bool bSupportsLabelBorder=true)
 
static void getPreparedTextShapePropertyLists (const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, tNameSequence &rPropNames, tAnySequence &rPropValues)
 adds line-, fill- and character properties and sets some suitable defaults for auto-grow properties More...
 

Detailed Description

PropertyMapper provides easy mapping of the property names of various objects in the chart model, to the property names of the destination shape objects (those whose service names begin with com.sun.star.drawing.).

Definition at line 45 of file PropertyMapper.hxx.

Member Function Documentation

◆ getMultiPropertyListsFromValueMap()

void chart::PropertyMapper::getMultiPropertyListsFromValueMap ( tNameSequence rNames,
tAnySequence rValues,
const tPropertyNameValueMap rValueMap 
)
static

◆ getPreparedTextShapePropertyLists()

void chart::PropertyMapper::getPreparedTextShapePropertyLists ( const css::uno::Reference< css::beans::XPropertySet > &  xSourceProp,
tNameSequence rPropNames,
tAnySequence rPropValues 
)
static

adds line-, fill- and character properties and sets some suitable defaults for auto-grow properties

Definition at line 528 of file PropertyMapper.cxx.

References getMultiPropertyListsFromValueMap(), getPropertyNameMapForTextShapeProperties(), and getValueMap().

Referenced by chart::VSeriesPlotter::createRegressionCurveEquationShapes().

◆ getPropertyNameMapForCharacterProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForCharacterProperties ( )
static

Definition at line 264 of file PropertyMapper.cxx.

Referenced by getTextLabelMultiPropertyLists().

◆ getPropertyNameMapForFillAndLineProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForFillAndLineProperties ( )
static

Definition at line 382 of file PropertyMapper.cxx.

◆ getPropertyNameMapForFilledSeriesProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForFilledSeriesProperties ( )
static

Definition at line 445 of file PropertyMapper.cxx.

Referenced by chart::PieChart::createDataPoint().

◆ getPropertyNameMapForFillProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForFillProperties ( )
static

Definition at line 333 of file PropertyMapper.cxx.

◆ getPropertyNameMapForLineProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForLineProperties ( )
static

◆ getPropertyNameMapForLineSeriesProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForLineSeriesProperties ( )
static

Definition at line 408 of file PropertyMapper.cxx.

◆ getPropertyNameMapForParagraphProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForParagraphProperties ( )
static

Definition at line 319 of file PropertyMapper.cxx.

◆ getPropertyNameMapForTextLabelProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForTextLabelProperties ( )
static

Definition at line 438 of file PropertyMapper.cxx.

References aMap.

Referenced by getTextLabelMultiPropertyLists().

◆ getPropertyNameMapForTextShapeProperties()

const tPropertyNameMap & chart::PropertyMapper::getPropertyNameMapForTextShapeProperties ( )
static

Definition at line 401 of file PropertyMapper.cxx.

Referenced by getPreparedTextShapePropertyLists().

◆ getTextLabelMultiPropertyLists()

void chart::PropertyMapper::getTextLabelMultiPropertyLists ( const css::uno::Reference< css::beans::XPropertySet > &  xSourceProp,
tNameSequence rPropNames,
tAnySequence rPropValues,
bool  bName = true,
sal_Int32  nLimitedSpace = -1,
bool  bLimitedHeight = false,
bool  bSupportsLabelBorder = true 
)
static

◆ getValueMap()

void chart::PropertyMapper::getValueMap ( tPropertyNameValueMap rValueMap,
const tPropertyNameMap rNameMap,
const css::uno::Reference< css::beans::XPropertySet > &  xSourceProp 
)
static

Fetch property values from the source object and map it to the destination container.

Only those properties that are explicitly set will be inserted into the destination container.

Parameters
rValueMapdestination container
rNameMapproperty name mapping rule
xSourcePropsource object from which the property values are pulled.

Definition at line 164 of file PropertyMapper.cxx.

References uno::Any::hasValue(), i, n, rTarget, and TOOLS_WARN_EXCEPTION.

Referenced by getPreparedTextShapePropertyLists(), and getTextLabelMultiPropertyLists().

◆ getValuePointer()

uno::Any * chart::PropertyMapper::getValuePointer ( tAnySequence rPropValues,
const tNameSequence rPropNames,
std::u16string_view  rPropName 
)
static

◆ getValuePointerForLimitedSpace()

uno::Any * chart::PropertyMapper::getValuePointerForLimitedSpace ( tAnySequence rPropValues,
const tNameSequence rPropNames,
bool  bLimitedHeight 
)
static

Definition at line 256 of file PropertyMapper.cxx.

References getValuePointer().

◆ setMappedProperties() [1/2]

static void chart::PropertyMapper::setMappedProperties ( const css::uno::Reference< css::beans::XPropertySet > &  xTarget,
const css::uno::Reference< css::beans::XPropertySet > &  xSource,
const tPropertyNameMap rMap 
)
static

◆ setMappedProperties() [2/2]

static void chart::PropertyMapper::setMappedProperties ( SvxShape xTarget,
const css::uno::Reference< css::beans::XPropertySet > &  xSource,
const tPropertyNameMap rMap 
)
static

◆ setMultiProperties()

void chart::PropertyMapper::setMultiProperties ( const tNameSequence rNames,
const tAnySequence rValues,
SvxShape xTarget 
)
static

Definition at line 478 of file PropertyMapper.cxx.

References TOOLS_WARN_EXCEPTION, and xTarget.

Referenced by chart::lcl_ResizeTextShapeToFitAvailableSpace().


The documentation for this class was generated from the following files: