sw doc model xml dump: restore lost spzFrameFormatTable section
This was lost in commit b12ff94a77
(introduce sw::FrameFormats<>, 2023-04-11). It used to be handy that you
can search for spzFrameFormatTable in a doc model xml dump to quickly
see how many fly/draw formats the document has, so restore it.
Change-Id: Ia5d83e2f71f589208a7ad5718d5705b17520db5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151433
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
This commit is contained in:
parent
7e68e49667
commit
d1999f23ca
3 changed files with 10 additions and 5 deletions
|
@ -11,7 +11,10 @@
|
|||
|
||||
$(eval $(call gb_CppunitTest_CppunitTest,sw_macros_test))
|
||||
|
||||
$(eval $(call gb_CppunitTest_use_external,sw_macros_test,boost_headers))
|
||||
$(eval $(call gb_CppunitTest_use_externals,sw_macros_test,\
|
||||
boost_headers \
|
||||
libxml2 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_macros_test))
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ $(eval $(call gb_Library_set_precompiled_header,swui,sw/inc/pch/precompiled_swui
|
|||
$(eval $(call gb_Library_use_externals,swui,\
|
||||
boost_headers \
|
||||
icu_headers \
|
||||
libxml2 \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_use_custom_headers,swui,\
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include <boost/multi_index/ordered_index.hpp>
|
||||
#include <boost/multi_index/random_access_index.hpp>
|
||||
#include <boost/multi_index/tag.hpp>
|
||||
#include <libxml/xmlstring.h>
|
||||
#include <libxml/xmlwriter.h>
|
||||
|
||||
class SwFrameFormat;
|
||||
class SwTableFormat;
|
||||
|
@ -154,13 +156,12 @@ public:
|
|||
const_iterator begin() const { return GetByPos().begin(); }
|
||||
const_iterator end() const { return GetByPos().end(); }
|
||||
|
||||
void dumpAsXml(xmlTextWriterPtr pWriter, const char*) const
|
||||
void dumpAsXml(xmlTextWriterPtr pWriter, const char* pName) const
|
||||
{
|
||||
// TODO
|
||||
//(void)xmlTextWriterStartElement(pWriter, BAD_CAST(pName));
|
||||
(void)xmlTextWriterStartElement(pWriter, BAD_CAST(pName));
|
||||
for (const auto pFormat : GetByPos())
|
||||
pFormat->dumpAsXml(pWriter);
|
||||
//(void)xmlTextWriterEndElement(pWriter);
|
||||
(void)xmlTextWriterEndElement(pWriter);
|
||||
};
|
||||
|
||||
virtual size_t GetFormatCount() const override { return m_vContainer.size(); }
|
||||
|
|
Loading…
Reference in a new issue