21#include <com/sun/star/beans/PropertyState.hpp>
22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/beans/XPropertyState.hpp>
24#include <com/sun/star/container/XNamed.hpp>
25#include <com/sun/star/drawing/XShape.hpp>
30#include <svx/strings.hrc>
42 , mbIsFirstProperty(true)
83 uno::Reference<container::XNamed> xStyle(aValue, uno::UNO_QUERY);
90 catch (
const css::beans::UnknownPropertyException&)
104 uno::Reference<beans::XPropertyState> xState(
mxShape, uno::UNO_QUERY);
106 || xState->getPropertyState(sPropertyName) == beans::PropertyState_DEFAULT_VALUE)
160 catch (
const css::beans::UnknownPropertyException&)
180 catch (
const css::beans::UnknownPropertyException&)
void AddProperty(const OUString &sPropertyName, PropertyType aType)
Add the given property name and its associated value to the description string.
void AddInteger(const OUString &sPropertyName)
Add a property value formatted as integer to the description string.
void Initialize(std::u16string_view sPrefix)
Initialize the description with the given prefix followed by the shape style in parentheses and a col...
OUStringBuffer msDescription
The description string that is build.
css::uno::Reference< css::drawing::XShape > mxShape
Reference to the shape from which the properties are extracted.
void AddColor(const OUString &sPropertyName)
Add a property value formatted as color to the description string.
css::uno::Reference< css::beans::XPropertySet > mxSet
Reference to the shape's property set.
bool mbIsFirstProperty
This flag is used to determine whether to insert a separator e.g.
OUString operator()(void)
Returns the description string and then resets it.
DescriptionGenerator(css::uno::Reference< css::drawing::XShape > xShape)
Creates a new description generator with an empty description string.
void AppendString(std::u16string_view sString)
Append the given string as is to the current description.
OUString SvxResId(TranslateId aId)
OUString lookUpColorName(tools::Long color)
This is a color name lookup targeted to be used by the accessibility <type>DescriptionGenerator</type...
uno::Reference< drawing::XShape > const mxShape