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...
 
virtual bool importXML (const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const=0
 TabStops will be imported/exported as XML-Elements. So the Import/Export-work must be done at another place. 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...
 
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...
 

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 28 of file backhdl.hxx.

Constructor & Destructor Documentation

◆ ~XMLBackGraphicPositionPropHdl()

XMLBackGraphicPositionPropHdl::~XMLBackGraphicPositionPropHdl ( )
overridevirtual

Definition at line 49 of file backhdl.cxx.

Member Function Documentation

◆ exportXML()

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.

◆ importXML() [1/2]

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(), pXML_BrushHorizontalPos, pXML_BrushVerticalPos, and xmloff::token::XML_CENTER.

◆ importXML() [2/2]

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

TabStops will be imported/exported as XML-Elements. So the Import/Export-work must be done at another place.

Implements XMLPropertyHandler.

◆ MergeXMLHoriPos()

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

Definition at line 248 of file backhdl.cxx.

References ePos, and SAL_WARN_IF.

Referenced by importXML().

◆ MergeXMLVertPos()

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

Definition at line 214 of file backhdl.cxx.

References ePos.

Referenced by importXML().


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