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 ( )
virtual

Definition at line 23 of file xmlprhdl.cxx.

Member Function Documentation

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 XMLCharRfcLanguageTagHdl, XMLCharCountryHdl, XMLCharScriptHdl, XMLNumRulePropHdl, XMLClipPropertyHandler, XMLCharLanguageHdl, XMLPMPropHdl_PageStyleLayout, XMLTabStopPropHdl, XMLAttributeContainerHandler, and XMLTextColumnsPropertyHandler.

Definition at line 28 of file xmlprhdl.cxx.

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

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

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

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


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