27#include <com/sun/star/beans/XPropertySet.hpp>
28#include <com/sun/star/beans/XPropertyState.hpp>
53 class IFormsExportContext;
71 const css::uno::Reference< css::beans::XPropertySet >
73 const css::uno::Reference< css::beans::XPropertySetInfo >
75 const css::uno::Reference< css::beans::XPropertyState >
90 const css::uno::Reference< css::beans::XPropertySet >& _rxProps);
101 css::uno::Any
const & value,
131 const sal_uInt16 _nNamespaceKey,
132 const OUString& _pAttributeName,
133 const OUString& _rPropertyName
149 const sal_uInt16 _nNamespaceKey,
150 const OUString& _pAttributeName,
151 const OUString& _rPropertyName,
172 const sal_uInt16 _nNamespaceKey,
173 const OUString& _pAttributeName,
174 const OUString& _rPropertyName,
175 const sal_Int16 _nDefault,
176 const bool force =
false);
192 const sal_uInt16 _nNamespaceKey,
193 const OUString& _pAttributeName,
194 const OUString& _rPropertyName,
195 const sal_Int32 _nDefault);
212 template<
typename EnumT>
214 const sal_uInt16 _nNamespaceKey,
215 const OUString& _pAttributeName,
216 const OUString& _rPropertyName,
218 const EnumT _nDefault,
219 const bool _bVoidDefault =
false)
223 static_cast<sal_Int16
>(_nDefault), _bVoidDefault);
226 const sal_uInt16 _nNamespaceKey,
227 const OUString& _pAttributeName,
228 const OUString& _rPropertyName,
230 const sal_uInt16 _nDefault,
231 const bool _bVoidDefault);
293 const sal_uInt16 _nAttributeNamespaceKey,
294 const OUString& _pAttributeName,
295 const OUString& _pPropertyName);
317 const sal_uInt16 _nAttributeNamespaceKey,
318 const OUString& _pAttributeName,
319 const OUString& _rPropertyName);
338 const css::uno::Any& _rValue);
357 void AddAttribute( sal_uInt16 _nPrefix,
const OUString& _rName,
const OUString& _rValue );
362 void AddAttribute( sal_uInt16 _nPrefix,
const OUString& _rName,
const OUString& _rValue )
383 const OUString& _rPropertyName,
384 const css::uno::Type* _pType);
397 #define DBG_CHECK_PROPERTY(name, type) \
398 dbg_implCheckProperty(name, &cppu::UnoType<type>::get())
400 #define DBG_CHECK_PROPERTY_NO_TYPE(name) \
401 dbg_implCheckProperty(name, nullptr)
403 #define DBG_CHECK_PROPERTY_ASCII_NO_TYPE( name ) \
404 dbg_implCheckProperty( OUString::createFromAscii( name ), nullptr )
406 #define DBG_CHECK_PROPERTY(name, type)
407 #define DBG_CHECK_PROPERTY_NO_TYPE(name)
408 #define DBG_CHECK_PROPERTY_ASCII_NO_TYPE( name )
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
virtual SvXMLExport & getGlobalContext()=0
provides export related tools for attribute handling
void exportStringSequenceAttribute(const sal_uInt16 _nAttributeNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName)
exports a property value, which is a string sequence, as attribute
void exportEnumPropertyAttribute(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const SvXMLEnumMapEntry< EnumT > *_pValueMap, const EnumT _nDefault, const bool _bVoidDefault=false)
add an attribute which is represented by an enum property to the export context
OPropertyExport(IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxProps)
constructs an object capable of handling attributes for export
void examinePersistence()
examines a property set given for all properties which's value are to made persistent
IFormsExportContext & m_rContext
void exportInt32PropertyAttribute(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const sal_Int32 _nDefault)
add an attribute which is represented by a sal_Int32 property to the export context
void exportedProperty(const OUString &_rPropertyName)
indicates that a property has been handled by a derived class, without using the helper methods of th...
bool shouldExportProperty(const OUString &i_propertyName) const
determines whether the given property is to be exported
void flagStyleProperties()
flag the style properties as 'already exported'
std::set< OUString > m_aRemainingProps
void exportInt16PropertyAttribute(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const sal_Int16 _nDefault, const bool force=false)
add an attribute which is represented by a sal_Int16 property to the export context
void exportImageDataAttribute()
add the form:image attribute to the export context.
const css::uno::Reference< css::beans::XPropertySet > m_xProps
const css::uno::Reference< css::beans::XPropertyState > m_xPropertyState
::xmloff::token::XMLTokenEnum implGetPropertyXMLType(const css::uno::Type &_rType)
void exportBooleanPropertyAttribute(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const BoolAttrFlags _nBooleanAttributeFlags)
add an attribute which is represented by a boolean property to the export context
void exportGenericPropertyAttribute(const sal_uInt16 _nAttributeNamespaceKey, const OUString &_pAttributeName, const OUString &_pPropertyName)
add an arbitrary attribute extracted from an arbitrary property to the export context
void exportEnumPropertyAttributeImpl(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const SvXMLEnumMapEntry< sal_uInt16 > *_pValueMap, const sal_uInt16 _nDefault, const bool _bVoidDefault)
void exportRemainingProperties()
OUString implConvertAny(const css::uno::Any &_rValue)
tries to convert an arbitrary <type scope="com.sun:star.uno">Any</type> into an string
void exportRelativeTargetLocation(const OUString &_sPropertyName, CCAFlags _nProperty, bool _bAddType)
void exportRemainingPropertiesSequence(css::uno::Any const &value, token::XMLTokenEnum eValueAttName)
void exportStringPropertyAttribute(const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName)
add an attribute which is represented by a string property to the export context
const css::uno::Reference< css::beans::XPropertySetInfo > m_xPropertyInfo
void dbg_implCheckProperty(const OUString &_rPropertyName, const css::uno::Type *_pType)
check a given property set for the existence and type correctness of a given property
void AddAttribute(sal_uInt16 _nPrefix, const OUString &_rName, const OUString &_rValue)
void exportTargetLocationAttribute(bool _bAddType)
add the form:href attribute to the export context.
void exportTargetFrameAttribute()
add the hlink:target-frame attribute to the export context.
XMLTokenEnum
The enumeration of all XML tokens.
constexpr OUStringLiteral PROPERTY_GRAPHIC
constexpr OUStringLiteral PROPERTY_TARGETURL