svx/source/svdraw/svdpage.cxx | 9 +++++++++ vcl/source/filter/ipdf/pdfread.cxx | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-)
New commits: commit 9f7e6d10d863bb206ba3d671e34d2f019e2d2480 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Feb 3 15:28:11 2022 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Feb 4 07:13:45 2022 +0100 svx: show width and height of SdrPages in the xml dump Which is useful to see, as a 2 page Draw document has 2 normal pages and a master page (3 sizes), but in practice there can be only a single size, so it's useful to see what size is coming from where when they don't match. Change-Id: I505653029ae67ea0a57c8f8bb61cf475d77aaccb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129425 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 981381643430..536167b04e56 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -1841,6 +1841,15 @@ void SdrPage::dumpAsXml(xmlTextWriterPtr pWriter) const (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SdrPage")); SdrObjList::dumpAsXml(pWriter); + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("width")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%s", + BAD_CAST(OString::number(mnWidth).getStr())); + (void)xmlTextWriterEndElement(pWriter); + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("height")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%s", + BAD_CAST(OString::number(mnHeight).getStr())); + (void)xmlTextWriterEndElement(pWriter); + if (mpSdrPageProperties) { mpSdrPageProperties->dumpAsXml(pWriter); diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx index 0780e1c9baaa..595df4fac886 100644 --- a/vcl/source/filter/ipdf/pdfread.cxx +++ b/vcl/source/filter/ipdf/pdfread.cxx @@ -7,9 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <vcl/pdfread.hxx> + #include <vcl/outdev.hxx> #include <vcl/svapp.hxx> -#include <vcl/pdfread.hxx> #include <tools/UnitConversion.hxx>