LibreOffice Module xmloff (master) 1
Public Member Functions | List of all members
XMLPropertyHandler Class Referenceabstract

Abstract base-class for different XML-types. More...

#include <xmlprhdl.hxx>

Inheritance diagram for XMLPropertyHandler:
[legend]

Public Member Functions

virtual ~XMLPropertyHandler ()
 
virtual bool equals (const css::uno::Any &r1, const css::uno::Any &r2) const
 Compares two Any's in case of the given XML-data-type. More...
 
virtual bool importXML (const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const =0
 Imports the given value according to the XML-data-type corresponding to the derived class. More...
 
virtual bool exportXML (OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const =0
 Exports the given value according to the XML-data-type corresponding to the derived class. More...
 

Detailed Description

Abstract base-class for different XML-types.

Derivations of this class knows how to compare, im/export a special XML-type

Definition at line 35 of file xmlprhdl.hxx.

Constructor & Destructor Documentation

◆ ~XMLPropertyHandler()

XMLPropertyHandler::~XMLPropertyHandler ( )
virtual

Definition at line 23 of file xmlprhdl.cxx.

Member Function Documentation

◆ equals()

bool XMLPropertyHandler::equals ( const css::uno::Any &  r1,
const css::uno::Any &  r2 
) const
virtual

Compares two Any's in case of the given XML-data-type.

By default the Any-equal-operator is called.

Reimplemented in XMLAttributeContainerHandler, XMLClipPropertyHandler, XMLTextColumnsPropertyHandler, XMLNumRulePropHdl, XMLCharLanguageHdl, XMLCharScriptHdl, XMLCharCountryHdl, XMLCharRfcLanguageTagHdl, XMLTabStopPropHdl, XMLComplexColorHandler, and XMLPMPropHdl_PageStyleLayout.

Definition at line 28 of file xmlprhdl.cxx.

◆ exportXML()

virtual bool XMLPropertyHandler::exportXML ( OUString &  rStrExpValue,
const css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
pure virtual

Exports the given value according to the XML-data-type corresponding to the derived class.

Implemented in XMLComplexColorHandler, xmloff::ORotationAngleHandler, xmloff::OFontWidthHandler, xmloff::OControlBorderHandler, xmloff::OControlTextEmphasisHandler, XMLEnumPropertyHdl, XMLNamedBoolPropertyHdl, XMLConstantsPropertyHandler, XMLAttributeContainerHandler, XMLDurationPropertyHdl, XMLOpacityPropertyHdl, XMLTextAnimationStepPropertyHdl, XMLDateTimeFormatHdl, XMLWordWrapPropertyHdl, XMLBitmapLogicalSizePropertyHandler, XMLBitmapRepeatOffsetPropertyHandler, XMLClipPropertyHandler, XMLFillBitmapSizePropertyHandler, XMLIsPercentagePropertyHandler, XMLNumberWithAutoForVoidPropHdl, XMLPercentOrMeasurePropertyHandler, XMLRectangleMembersHdl, XMLRtlGutterPropertyHandler, XMLTextColumnsPropertyHandler, XMLAxisPositionPropertyHdl, XMLErrorBarStylePropertyHdl, XMLErrorIndicatorPropertyHdl, XMLSymbolTypePropertyHdl, XMLTextOrientationHdl, XMLNumRulePropHdl, XMLParaAdjustPropHdl, XMLLastLineAdjustPropHdl, XMLBackGraphicPositionPropHdl, XMLBorderWidthHdl, XMLBorderHdl, XMLFmtBreakBeforePropHdl, XMLFmtBreakAfterPropHdl, XMLCrossedOutTypePropHdl, XMLCrossedOutStylePropHdl, XMLCrossedOutWidthPropHdl, XMLCrossedOutTextPropHdl, XMLCharHeightHdl, XMLCharHeightPropHdl, XMLCharHeightDiffHdl, XMLCharLanguageHdl, XMLCharScriptHdl, XMLCharCountryHdl, XMLCharRfcLanguageTagHdl, XMLCaseMapPropHdl, XMLCaseMapVariantHdl, DrawAspectHdl, XMLDurationMS16PropHdl_Impl, XMLEscapementPropHdl, XMLEscapementHeightPropHdl, XMLFontFamilyNamePropHdl, XMLFontFamilyPropHdl, XMLFontEncodingPropHdl, XMLFontPitchPropHdl, XMLKerningPropHdl, XMLLineHeightHdl, XMLLineHeightAtLeastHdl, XMLLineSpacingHdl, XMLOpaquePropHdl, XMLPMPropHdl_PageStyleLayout, XMLPMPropHdl_NumFormat, XMLPMPropHdl_NumLetterSync, XMLPMPropHdl_PaperTrayNumber, XMLPMPropHdl_Print, XMLPMPropHdl_CenterHorizontal, XMLPMPropHdl_CenterVertical, XMLPosturePropHdl, XMLShadowPropHdl, XMLShadowedPropHdl, XMLTabStopPropHdl, XMLUnderlineTypePropHdl, XMLUnderlineStylePropHdl, XMLUnderlineWidthPropHdl, XMLFontWeightPropHdl, XMLNumberPropHdl, XMLNumberNonePropHdl, XMLMeasurePropHdl, XMLPercentPropHdl, XMLDoublePercentPropHdl, XML100thPercentPropHdl, XMLNegPercentPropHdl, XMLMeasurePxPropHdl, XMLBoolPropHdl, XMLBoolFalsePropHdl, XMLColorPropHdl, XMLHexPropHdl, XMLStringPropHdl, XMLStyleNamePropHdl, XMLDoublePropHdl, XMLNBoolPropHdl, XMLColorTransparentPropHdl, XMLIsTransparentPropHdl, XMLColorAutoPropHdl, XMLIsAutoColorPropHdl, XMLCompareOnlyPropHdl, XMLNumberWithoutZeroPropHdl, and XMLAnchorTypePropHdl.

Referenced by xmloff::AnimationsExporterImpl::convertValue(), SvXMLAutoStylePoolP::exportStyleAttributes(), and XMLPropertySetMapper::exportXML().

◆ importXML()

virtual bool XMLPropertyHandler::importXML ( const OUString &  rStrImpValue,
css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
pure virtual

Imports the given value according to the XML-data-type corresponding to the derived class.

Return values
trueif the value was successfully converted to Any
falseif the value was not recognised (warning will be printed)

Implemented in XMLComplexColorHandler, xmloff::ORotationAngleHandler, xmloff::OFontWidthHandler, xmloff::OControlBorderHandler, xmloff::OControlTextEmphasisHandler, XMLEnumPropertyHdl, XMLNamedBoolPropertyHdl, XMLConstantsPropertyHandler, XMLAttributeContainerHandler, XMLDurationPropertyHdl, XMLOpacityPropertyHdl, XMLTextAnimationStepPropertyHdl, XMLDateTimeFormatHdl, XMLWordWrapPropertyHdl, XMLBitmapLogicalSizePropertyHandler, XMLBitmapRepeatOffsetPropertyHandler, XMLClipPropertyHandler, XMLFillBitmapSizePropertyHandler, XMLIsPercentagePropertyHandler, XMLNumberWithAutoForVoidPropHdl, XMLPercentOrMeasurePropertyHandler, XMLRectangleMembersHdl, XMLRtlGutterPropertyHandler, XMLTextColumnsPropertyHandler, XMLAxisPositionPropertyHdl, XMLErrorIndicatorPropertyHdl, XMLSymbolTypePropertyHdl, XMLTextOrientationHdl, XMLNumRulePropHdl, XMLParaAdjustPropHdl, XMLLastLineAdjustPropHdl, XMLBackGraphicPositionPropHdl, XMLBorderWidthHdl, XMLBorderHdl, XMLFmtBreakBeforePropHdl, XMLFmtBreakAfterPropHdl, XMLCrossedOutTypePropHdl, XMLCrossedOutStylePropHdl, XMLCrossedOutWidthPropHdl, XMLCrossedOutTextPropHdl, XMLCharHeightHdl, XMLCharHeightPropHdl, XMLCharHeightDiffHdl, XMLCharLanguageHdl, XMLCharScriptHdl, XMLCharCountryHdl, XMLCharRfcLanguageTagHdl, XMLCaseMapPropHdl, XMLCaseMapVariantHdl, DrawAspectHdl, XMLDurationMS16PropHdl_Impl, XMLEscapementPropHdl, XMLEscapementHeightPropHdl, XMLFontFamilyNamePropHdl, XMLFontFamilyPropHdl, XMLFontEncodingPropHdl, XMLFontPitchPropHdl, XMLKerningPropHdl, XMLLineHeightHdl, XMLLineHeightAtLeastHdl, XMLLineSpacingHdl, XMLOpaquePropHdl, XMLPMPropHdl_PageStyleLayout, XMLPMPropHdl_NumFormat, XMLPMPropHdl_NumLetterSync, XMLPMPropHdl_PaperTrayNumber, XMLPMPropHdl_Print, XMLPMPropHdl_CenterHorizontal, XMLPMPropHdl_CenterVertical, XMLPosturePropHdl, XMLShadowPropHdl, XMLShadowedPropHdl, XMLTabStopPropHdl, XMLUnderlineTypePropHdl, XMLUnderlineStylePropHdl, XMLUnderlineWidthPropHdl, XMLFontWeightPropHdl, XMLNumberPropHdl, XMLNumberNonePropHdl, XMLMeasurePropHdl, XMLPercentPropHdl, XMLDoublePercentPropHdl, XML100thPercentPropHdl, XMLNegPercentPropHdl, XMLMeasurePxPropHdl, XMLBoolPropHdl, XMLBoolFalsePropHdl, XMLColorPropHdl, XMLHexPropHdl, XMLStringPropHdl, XMLDoublePropHdl, XMLNBoolPropHdl, XMLColorTransparentPropHdl, XMLIsTransparentPropHdl, XMLColorAutoPropHdl, XMLIsAutoColorPropHdl, XMLCompareOnlyPropHdl, XMLNumberWithoutZeroPropHdl, XMLAnchorTypePropHdl, and XMLBackGraphicPositionPropHdl.

Referenced by xmloff::AnimationsImportHelperImpl::convertValue(), and XMLPropertySetMapper::importXML().


The documentation for this class was generated from the following files: