20#include <com/sun/star/util/MeasureUnit.hpp>
23#include <rtl/ustring.hxx>
24#include <rtl/ustrbuf.hxx>
50 sal_uInt32 m_nAbsWidth;
52 static void AddAttribute( sal_uInt16 nPrefix,
enum XMLTokenEnum eLName,
53 const OUString& rValue,
59 SwXMLTableItemMapper_Impl(
74 inline void SetAbsWidth( sal_uInt32 nAbs );
79SwXMLTableItemMapper_Impl::SwXMLTableItemMapper_Impl(
83 m_aBrushItemExport( rExp ),
84 m_nAbsWidth( USHRT_MAX )
88void SwXMLTableItemMapper_Impl::AddAttribute( sal_uInt16 nPrefix,
90 const OUString& rValue,
99void SwXMLTableItemMapper_Impl::handleSpecialItem(
116 bool bHasTextChangesOnly = pItem->GetValue();
117 if ( !bHasTextChangesOnly )
120 sal_uInt16 nMemberId =
124 rItem, sValue, nMemberId, rUnitConverter ) )
127 sValue, rNamespaceMap, rAttrList );
141 bool bExport =
false;
142 sal_uInt16 nMemberId =
148 text::HoriOrientation::LEFT_AND_WIDTH == eHoriOrient;
156 rItem, sValue, nMemberId, rUnitConverter ) )
159 rNamespaceMap, rAttrList );
167 sal_uInt16 nMemberId =
174 OUStringBuffer sBuffer;
177 sBuffer.makeStringAndClear(),
178 rNamespaceMap, rAttrList );
185 rItem, sValue, nMemberId, rUnitConverter ) )
188 sValue, rNamespaceMap, rAttrList );
200void SwXMLTableItemMapper_Impl::handleElementItem(
208 const_cast<SwXMLTableItemMapper_Impl *
>(
this)->m_aBrushItemExport.exportXML(
215inline void SwXMLTableItemMapper_Impl::SetAbsWidth( sal_uInt32 nAbs )
242 ->SetAbsWidth( nAbsWidth );
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
static bool QueryXMLValue(const SfxPoolItem &rItem, OUString &rValue, sal_uInt16 nMemberId, const SvXMLUnitConverter &rUnitConverter)
virtual void handleElementItem(const SvXMLItemMapEntry &rEntry, const SfxPoolItem &rItem) const
this method is called for every item that has the MID_SW_FLAG_ELEMENT_EXPORT flag set
virtual void handleSpecialItem(comphelper::AttributeList &rAttrList, const SvXMLItemMapEntry &rEntry, const SfxPoolItem &rItem, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const SfxItemSet *pSet) const
this method is called for every item that has the MID_SW_FLAG_SPECIAL_ITEM_EXPORT flag set
SvtSaveOptions::ODFSaneDefaultVersion getSaneDefaultVersion() const
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext() const
const SvXMLUnitConverter & GetMM100UnitConverter() const
this class manages an array of SvXMLItemMapEntry.
OUString GetQNameByKey(sal_uInt16 nKey, const OUString &rLocalName, bool bCache=true) const
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
SvXMLItemMapEntriesRef m_xTableCellItemMap
SvXMLItemMapEntriesRef m_xTableItemMap
void ExportTableFormat(const SwFrameFormat &rFormat, sal_uInt32 nAbsWidth)
void ExportFormat(const SwFormat &rFormat, enum ::xmloff::token::XMLTokenEnum eClass, ::std::optional< OUString > const oStyleName)
SvXMLItemMapEntriesRef m_xTableRowItemMap
std::unique_ptr< SvXMLUnitConverter > m_pTwipUnitConverter
std::unique_ptr< SvXMLExportItemMapper > m_pTableItemMapper
void AddAttribute(const OUString &sName, const OUString &sValue)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(104)
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
enum::xmloff::token::XMLTokenEnum const eLocalName
#define MID_FRMSIZE_REL_WIDTH
#define MID_FRMSIZE_WIDTH
const o3tl::span< SvXMLItemMapEntry const > aXMLTableCellItemMap(aTableCellItemMap)
const o3tl::span< SvXMLItemMapEntry const > aXMLTableItemMap(aTableItemMap)
const o3tl::span< SvXMLItemMapEntry const > aXMLTableRowItemMap(aTableRowItemMap)