summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-30 16:49:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-03 06:08:14 +0000
commitba3521f28831f41c92aa863ba6ba6da7c91c56f7 (patch)
tree23cd127507e7b6f0268de65716c8ed559874cd25 /include
parentbc4715ddac99ca104e1ba6b313f089cfe4039381 (diff)
add more dumpAsXml()
and make it format the output nicely, so I don't have to use 'xmllint --format' before I can read it. Change-Id: I065ee93193f3c6c7bab87212ab96021fb0d7c5ed Reviewed-on: https://gerrit.libreoffice.org/29407 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/outliner.hxx6
-rw-r--r--include/svl/itempool.hxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index a9e8e3bad686..0d53ab150ebf 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -148,7 +148,7 @@ private:
void SetText( const OUString& rText ) { aBulText = rText; aBulSize.Width() = -1; }
void Invalidate() { aBulSize.Width() = -1; }
void SetDepth( sal_Int16 nNewDepth ) { nDepth = nNewDepth; aBulSize.Width() = -1; }
- const OUString& GetText() const { return aBulText; }
+ const OUString& GetText() const { return aBulText; }
Paragraph( sal_Int16 nDepth );
Paragraph( const Paragraph& ) = delete;
@@ -166,6 +166,8 @@ private:
void SetFlag( ParaFlag nFlag ) { nFlags |= nFlag; }
void RemoveFlag( ParaFlag nFlag ) { nFlags &= ~nFlag; }
bool HasFlag( ParaFlag nFlag ) const { return bool(nFlags & nFlag); }
+public:
+ void dumpAsXml(struct _xmlTextWriter* pWriter) const;
};
struct ParaRange
@@ -679,6 +681,8 @@ public:
Outliner( SfxItemPool* pPool, OutlinerMode nOutlinerMode );
virtual ~Outliner() override;
+ void dumpAsXml(struct _xmlTextWriter* pWriter) const;
+
void Init( OutlinerMode nOutlinerMode );
OutlinerMode GetMode() const { return nOutlinerMode; }
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index c2e1e2a2f2dd..6c9327fc0303 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -206,6 +206,8 @@ public:
static const SfxItemPool* GetStoringPool();
+ void dumpAsXml(struct _xmlTextWriter* pWriter) const;
+
private:
const SfxItemPool& operator=(const SfxItemPool &) = delete;