23#include <rtl/ustrbuf.hxx>
26#include <com/sun/star/text/XTextColumns.hpp>
27#include <com/sun/star/text/ColumnSeparatorStyle.hpp>
28#include <com/sun/star/text/TextColumn.hpp>
29#include <com/sun/star/style/VerticalAlignment.hpp>
30#include <com/sun/star/beans/XPropertySet.hpp>
63 Reference < XTextColumns > xColumns;
68 const Sequence < TextColumn > aColumns = xColumns->getColumns();
69 sal_Int32
nCount = aColumns.getLength();
71 OUStringBuffer sValue;
76 Reference < XPropertySet > xPropSet( xColumns, UNO_QUERY );
80 if ( *o3tl::doAccess<bool>(aAny) )
83 sal_Int32 nDistance = 0;
100 if( *o3tl::doAccess<bool>(aAny) )
104 sal_Int32 nWidth = 0;
109 sValue.makeStringAndClear() );
113 sal_Int32 nColor = 0;
117 sValue.makeStringAndClear() );
121 sal_Int32 nHeight = 0;
125 sValue.makeStringAndClear() );
129 sal_Int16 nStyle = css::text::ColumnSeparatorStyle::NONE;
135 case css::text::ColumnSeparatorStyle::NONE: eStr =
XML_NONE;
break;
136 case css::text::ColumnSeparatorStyle::SOLID: eStr =
XML_SOLID;
break;
137 case css::text::ColumnSeparatorStyle::DOTTED: eStr =
XML_DOTTED;
break;
138 case css::text::ColumnSeparatorStyle::DASHED: eStr =
XML_DASHED;
break;
147 VerticalAlignment eVertAlign;
154 case VerticalAlignment_MIDDLE: eStr =
XML_MIDDLE;
break;
155 case VerticalAlignment_BOTTOM: eStr =
XML_BOTTOM;
break;
171 for (
const auto& rColumn : aColumns)
175 OUString::number(rColumn.Width) +
"*" );
179 rColumn.LeftMargin );
181 sValue.makeStringAndClear() );
185 rColumn.RightMargin );
187 sValue.makeStringAndClear() );
constexpr OUStringLiteral gsSeparatorLineVerticalAlignment(u"SeparatorLineVerticalAlignment")
constexpr OUStringLiteral gsSeparatorLineStyle(u"SeparatorLineStyle")
constexpr OUStringLiteral gsIsAutomatic(u"IsAutomatic")
constexpr OUStringLiteral gsSeparatorLineWidth(u"SeparatorLineWidth")
constexpr OUStringLiteral gsSeparatorLineColor(u"SeparatorLineColor")
constexpr OUStringLiteral gsSeparatorLineIsOn(u"SeparatorLineIsOn")
constexpr OUStringLiteral gsSeparatorLineRelativeHeight(u"SeparatorLineRelativeHeight")
constexpr OUStringLiteral gsAutomaticDistance(u"AutomaticDistance")
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
const SvXMLUnitConverter & GetMM100UnitConverter() const
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
void exportXML(const css::uno::Any &rAny)
SvXMLExport & GetExport()
XMLTextColumnsExport(SvXMLExport &rExport)
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
std::unique_ptr< char[]> aBuffer
constexpr sal_uInt16 XML_NAMESPACE_STYLE
constexpr sal_uInt16 XML_NAMESPACE_FO