21#include <com/sun/star/style/TabStop.hpp>
22#include <com/sun/star/style/TabAlign.hpp>
23#include <rtl/ustrbuf.hxx>
24#include <osl/diagnose.h>
41 {
XML_CHAR, style::TabAlign_DECIMAL },
51 OUStringBuffer sBuffer;
56 sBuffer.makeStringAndClear() );
59 if( style::TabAlign_LEFT != pTabStop->Alignment )
64 sBuffer.makeStringAndClear() );
68 if( style::TabAlign_DECIMAL == pTabStop->Alignment &&
69 pTabStop->DecimalChar != 0 )
71 sBuffer.append( pTabStop->DecimalChar );
73 sBuffer.makeStringAndClear() );
77 if(
' ' != pTabStop->FillChar && 0 != pTabStop->FillChar )
83 sBuffer.append( pTabStop->FillChar );
85 sBuffer.makeStringAndClear() );
101 uno::Sequence< css::style::TabStop>
aSeq;
104 OSL_FAIL(
"SvxXMLTabStopExport needs a Sequence css::style::TabStop>" );
111 for(
const auto& rTab : std::as_const(
aSeq) )
113 if( style::TabAlign_DEFAULT != rTab.Alignment )
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
const SvXMLUnitConverter & GetMM100UnitConverter() const
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...
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
SvxXMLTabStopExport(SvXMLExport &rExport)
void Export(const css::uno::Any &rAny)
void exportTabStop(const css::style::TabStop *pTabStop)
Sequence< sal_Int8 > aSeq
Handling of tokens in XML:
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
constexpr sal_uInt16 XML_NAMESPACE_STYLE
SvXMLEnumMapEntry< style::TabAlign > const pXML_tabstop_style[]