23#include <rtl/ustrbuf.hxx>
25#include <com/sun/star/uno/Any.hxx>
26#include <com/sun/star/chart/ChartAxisPosition.hpp>
38 : m_bCrossingValue( bCrossingValue )
53 rValue <<= css::chart::ChartAxisPosition_START;
61 rValue <<= css::chart::ChartAxisPosition_END;
69 rValue <<= css::chart::ChartAxisPosition_ZERO;
77 rValue <<= css::chart::ChartAxisPosition_VALUE;
96 OUStringBuffer sValueBuffer;
99 if(rStrExpValue.isEmpty())
104 rStrExpValue = sValueBuffer.makeStringAndClear();
110 css::chart::ChartAxisPosition ePosition( css::chart::ChartAxisPosition_ZERO );
111 rValue >>= ePosition;
114 case css::chart::ChartAxisPosition_START:
118 case css::chart::ChartAxisPosition_END:
122 case css::chart::ChartAxisPosition_ZERO:
124 rStrExpValue = sValueBuffer.makeStringAndClear();
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
XMLAxisPositionPropertyHdl(bool bCrossingValue)
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.
virtual ~XMLAxisPositionPropertyHdl() override
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.
static void convertDouble(OUStringBuffer &rBuffer, double fNumber, bool bWriteUnits, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
Handling of tokens in XML:
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken