26#include <com/sun/star/uno/Reference.hxx>
27#include <rtl/ustrbuf.hxx>
116 css::uno::Reference<css::drawing::XShape>
mxShape;
119 css::uno::Reference<css::beans::XPropertySet>
mxSet;
131 void AddColor(
const OUString& sPropertyName);
135 void AddInteger(
const OUString& sPropertyName);
This class creates description strings for shapes.
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.
class SAL_NO_VTABLE XPropertySet