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>
29 #include <svx/strings.hrc>
41 , mbIsFirstProperty(true)
82 uno::Reference<container::XNamed> xStyle(aValue, uno::UNO_QUERY);
89 catch (
const css::beans::UnknownPropertyException&)
103 uno::Reference<beans::XPropertyState> xState(
mxShape, uno::UNO_QUERY);
105 || xState->getPropertyState(sPropertyName) == beans::PropertyState_DEFAULT_VALUE)
159 catch (
const css::beans::UnknownPropertyException&)
179 catch (
const css::beans::UnknownPropertyException&)
void AddInteger(const OUString &sPropertyName)
Add a property value formatted as integer to the description string.
OUStringBuffer msDescription
The description string that is build.
uno::Reference< drawing::XShape > const mxShape
void AddColor(const OUString &sPropertyName)
Add a property value formatted as color to the description string.
OUString SvxResId(TranslateId aId)
css::uno::Reference< css::beans::XPropertySet > mxSet
Reference to the shape's property set.
OUString operator()(void)
Returns the description string and then resets it.
bool mbIsFirstProperty
This flag is used to determine whether to insert a separator e.g.
css::uno::Reference< css::drawing::XShape > mxShape
Reference to the shape from which the properties are extracted.
void AppendString(std::u16string_view sString)
Append the given string as is to the current description.
OUString lookUpColorName(tools::Long color)
This is a color name lookup targeted to be used by the accessibility
DescriptionGenerator
DescriptionGenerator(const css::uno::Reference< css::drawing::XShape > &xShape)
Creates a new description generator with an empty 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...
void AddProperty(const OUString &sPropertyName, PropertyType aType)
Add the given property name and its associated value to the description string.