20 #ifndef INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX
28 #include <com/sun/star/beans/XPropertySet.hpp>
29 #include <com/sun/star/beans/XPropertyState.hpp>
54 class IFormsExportContext;
72 const css::uno::Reference< css::beans::XPropertySet >
74 const css::uno::Reference< css::beans::XPropertySetInfo >
76 const css::uno::Reference< css::beans::XPropertyState >
91 const css::uno::Reference< css::beans::XPropertySet >& _rxProps);
102 css::uno::Any
const & value,
119 { m_aRemainingProps.erase(_rPropertyName); }
132 const sal_uInt16 _nNamespaceKey,
133 const char* _pAttributeName,
134 const OUString& _rPropertyName
150 const sal_uInt16 _nNamespaceKey,
151 const char* _pAttributeName,
152 const OUString& _rPropertyName,
173 const sal_uInt16 _nNamespaceKey,
174 const char* _pAttributeName,
175 const OUString& _rPropertyName,
176 const sal_Int16 _nDefault,
177 const bool force =
false);
193 const sal_uInt16 _nNamespaceKey,
194 const char* _pAttributeName,
195 const OUString& _rPropertyName,
196 const sal_Int32 _nDefault);
213 template<
typename EnumT>
215 const sal_uInt16 _nNamespaceKey,
216 const char* _pAttributeName,
217 const OUString& _rPropertyName,
219 const EnumT _nDefault,
220 const bool _bVoidDefault =
false)
224 static_cast<sal_Int16>(_nDefault), _bVoidDefault);
227 const sal_uInt16 _nNamespaceKey,
228 const char* _pAttributeName,
229 const OUString& _rPropertyName,
231 const sal_uInt16 _nDefault,
232 const bool _bVoidDefault);
294 const sal_uInt16 _nAttributeNamespaceKey,
295 const char* _pAttributeName,
296 const char* _pPropertyName);
318 const sal_uInt16 _nAttributeNamespaceKey,
319 const char* _pAttributeName,
320 const OUString& _rPropertyName);
339 const css::uno::Any& _rValue);
358 void AddAttribute(sal_uInt16 _nPrefix,
const char* _pName,
const OUString& _rValue);
359 void AddAttribute( sal_uInt16 _nPrefix,
const OUString& _rName,
const OUString& _rValue );
364 void AddAttribute(sal_uInt16 _nPrefix,
const char* _pName,
const OUString& _rValue)
366 void AddAttribute( sal_uInt16 _nPrefix,
const OUString& _rName,
const OUString& _rValue )
387 const OUString& _rPropertyName,
388 const css::uno::Type* _pType);
401 #define DBG_CHECK_PROPERTY(name, type) \
402 dbg_implCheckProperty(name, &cppu::UnoType<type>::get())
404 #define DBG_CHECK_PROPERTY_NO_TYPE(name) \
405 dbg_implCheckProperty(name, nullptr)
407 #define DBG_CHECK_PROPERTY_ASCII_NO_TYPE( name ) \
408 dbg_implCheckProperty( OUString::createFromAscii( name ), nullptr )
410 #define DBG_CHECK_PROPERTY(name, type)
411 #define DBG_CHECK_PROPERTY_NO_TYPE(name)
412 #define DBG_CHECK_PROPERTY_ASCII_NO_TYPE( name )
417 #endif // INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX
const css::uno::Reference< css::beans::XPropertySetInfo > m_xPropertyInfo
void exportedProperty(const OUString &_rPropertyName)
indicates that a property has been handled by a derived class, without using the helper methods of th...
const css::uno::Reference< css::beans::XPropertyState > m_xPropertyState
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 exportEnumPropertyAttribute(const sal_uInt16 _nNamespaceKey, const char *_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
void exportRemainingProperties()
void exportEnumPropertyAttributeImpl(const sal_uInt16 _nNamespaceKey, const char *_pAttributeName, const OUString &_rPropertyName, const SvXMLEnumMapEntry< sal_uInt16 > *_pValueMap, const sal_uInt16 _nDefault, const bool _bVoidDefault)
provides export related tools for attribute handling
void exportRemainingPropertiesSequence(css::uno::Any const &value, token::XMLTokenEnum eValueAttName)
const css::uno::Reference< css::beans::XPropertySet > m_xProps
std::set< OUString > m_aRemainingProps
void AddAttribute(sal_uInt16 nPrefix, const char *pName, const OUString &rValue)
#define PROPERTY_TARGETURL
IFormsExportContext & m_rContext
bool shouldExportProperty(const OUString &i_propertyName) const
determines whether the given property is to be exported
XMLTokenEnum
The enumeration of all XML tokens.
void exportBooleanPropertyAttribute(const sal_uInt16 _nNamespaceKey, const char *_pAttributeName, const OUString &_rPropertyName, const BoolAttrFlags _nBooleanAttributeFlags)
add an attribute which is represented by a boolean property to the export context ...
void exportImageDataAttribute()
add the form:image attribute to the export context.
virtual SvXMLExport & getGlobalContext()=0
::xmloff::token::XMLTokenEnum implGetPropertyXMLType(const css::uno::Type &_rType)
void exportInt16PropertyAttribute(const sal_uInt16 _nNamespaceKey, const char *_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 exportInt32PropertyAttribute(const sal_uInt16 _nNamespaceKey, const char *_pAttributeName, const OUString &_rPropertyName, const sal_Int32 _nDefault)
add an attribute which is represented by a sal_Int32 property to the export context ...
void exportRelativeTargetLocation(const OUString &_sPropertyName, CCAFlags _nProperty, bool _bAddType)
Map an XMLTokenEnum to an enum value.
OUString implConvertAny(const css::uno::Any &_rValue)
tries to convert an arbitrary Any into an string ...
void flagStyleProperties()
flag the style properties as 'already exported'
void exportTargetFrameAttribute()
add the hlink:target-frame attribute to the export context.
void exportGenericPropertyAttribute(const sal_uInt16 _nAttributeNamespaceKey, const char *_pAttributeName, const char *_pPropertyName)
add an arbitrary attribute extracted from an arbitrary property to the export context ...
void AddAttribute(sal_uInt16 _nPrefix, const char *_pName, const OUString &_rValue)
void exportStringPropertyAttribute(const sal_uInt16 _nNamespaceKey, const char *_pAttributeName, const OUString &_rPropertyName)
add an attribute which is represented by a string property to the export context
void exportStringSequenceAttribute(const sal_uInt16 _nAttributeNamespaceKey, const char *_pAttributeName, const OUString &_rPropertyName)
exports a property value, which is a string sequence, as attribute
void examinePersistence()
examines a property set given for all properties which's value are to made persistent ...
OPropertyExport(IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxProps)
constructs an object capable of handling attributes for export
void exportTargetLocationAttribute(bool _bAddType)
add the form:href attribute to the export context.