LibreOffice Module xmloff (master) 1
|
PropertyHandler for the XML-data-type: More...
#include <backhdl.hxx>
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) |
PropertyHandler for the XML-data-type:
Definition at line 28 of file backhdl.hxx.
|
overridevirtual |
Definition at line 49 of file backhdl.cxx.
|
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.
|
overridevirtual |
Imports the given value according to the XML-data-type corresponding to the derived class.
true | if the value was successfully converted to Any |
false | if 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.
|
virtual |
TabStops will be imported/exported as XML-Elements. So the Import/Export-work must be done at another place.
Implements XMLPropertyHandler.
|
staticprivate |
Definition at line 248 of file backhdl.cxx.
References ePos, and SAL_WARN_IF.
Referenced by importXML().
|
staticprivate |