24#include <rtl/ustrbuf.hxx>
25#include <com/sun/star/style/BreakType.hpp>
26#include <com/sun/star/uno/Any.hxx>
55 style::BreakType eBreak;
59 eBreak = style::BreakType_NONE;
62 eBreak = style::BreakType_COLUMN_BEFORE;
65 eBreak = style::BreakType_PAGE_BEFORE;
76 style::BreakType eBreak;
78 if( !( rValue >>= eBreak ) )
81 if( !( rValue >>=
nValue ) )
84 eBreak =
static_cast<style::BreakType
>(
nValue);
90 case style::BreakType_COLUMN_BEFORE:
93 case style::BreakType_PAGE_BEFORE:
96 case style::BreakType_NONE:
105 rStrExpValue = aOut.makeStringAndClear();
124 style::BreakType eBreak;
128 eBreak = style::BreakType_NONE;
131 eBreak = style::BreakType_COLUMN_AFTER;
134 eBreak = style::BreakType_PAGE_AFTER;
145 style::BreakType eBreak;
147 if( !( rValue >>= eBreak ) )
150 if( !( rValue >>=
nValue ) )
153 eBreak =
static_cast<style::BreakType
>(
nValue);
156 sal_uInt16 nEnum = 0;
159 case style::BreakType_COLUMN_AFTER:
162 case style::BreakType_PAGE_AFTER:
165 case style::BreakType_NONE:
174 rStrExpValue = aOut.makeStringAndClear();
SvXMLEnumMapEntry< sal_uInt16 > const pXML_BreakTypes[]
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
convert string to enum using given enum map, if the enum is not found in the map, this method will re...
virtual ~XMLFmtBreakAfterPropHdl() 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.
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.
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.
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 ~XMLFmtBreakBeforePropHdl() override
Handling of tokens in XML: