LibreOffice Module xmloff (master)  1
Public Member Functions | Static Private Member Functions | List of all members
XMLBackGraphicPositionPropHdl Class Reference

PropertyHandler for the XML-data-type: More...

#include <backhdl.hxx>

Inheritance diagram for XMLBackGraphicPositionPropHdl:
[legend]
Collaboration diagram for XMLBackGraphicPositionPropHdl:
[legend]

Public Member Functions

virtual ~XMLBackGraphicPositionPropHdl () override
 
virtual bool importXML (const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
 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 override
 Exports the given value according to the XML-data-type corresponding to the derived class. More...
 
- Public Member Functions inherited from XMLPropertyHandler
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...
 

Static Private Member Functions

static void MergeXMLHoriPos (css::style::GraphicLocation &ePos, css::style::GraphicLocation eHori)
 
static void MergeXMLVertPos (css::style::GraphicLocation &ePos, css::style::GraphicLocation eVert)
 

Detailed Description

PropertyHandler for the XML-data-type:

Definition at line 29 of file backhdl.hxx.

Constructor & Destructor Documentation

XMLBackGraphicPositionPropHdl::~XMLBackGraphicPositionPropHdl ( )
overridevirtual

Definition at line 49 of file backhdl.cxx.

Member Function Documentation

bool XMLBackGraphicPositionPropHdl::exportXML ( OUString &  rStrExpValue,
const css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
overridevirtual

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

Implements XMLPropertyHandler.

Definition at line 139 of file backhdl.cxx.

References xmloff::token::GetXMLToken(), nValue, xmloff::token::XML_BOTTOM, xmloff::token::XML_CENTER, xmloff::token::XML_LEFT, xmloff::token::XML_RIGHT, and xmloff::token::XML_TOP.

bool XMLBackGraphicPositionPropHdl::importXML ( const OUString &  rStrImpValue,
css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
overridevirtual

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)

Implements XMLPropertyHandler.

Definition at line 54 of file backhdl.cxx.

References SvXMLUnitConverter::convertEnum(), sax::Converter::convertPercent(), ePos, SvXMLTokenEnumerator::getNextToken(), xmloff::token::IsXMLToken(), MergeXMLHoriPos(), MergeXMLVertPos(), and xmloff::token::XML_CENTER.

void XMLBackGraphicPositionPropHdl::MergeXMLHoriPos ( css::style::GraphicLocation &  ePos,
css::style::GraphicLocation  eHori 
)
staticprivate

Definition at line 248 of file backhdl.cxx.

References SAL_WARN_IF.

Referenced by importXML().

void XMLBackGraphicPositionPropHdl::MergeXMLVertPos ( css::style::GraphicLocation &  ePos,
css::style::GraphicLocation  eVert 
)
staticprivate

Definition at line 214 of file backhdl.cxx.

Referenced by importXML().


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