summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2014-10-16 16:02:23 +0200
committerLuboš Luňák <l.lunak@collabora.com>2014-11-05 13:58:08 +0100
commit12637c634cfaebb4213f32cc83dcd0a2028c3d55 (patch)
treed455bc88518fdbac9f6f0a982e30fa285cb1f42d /sw/inc
parent988477e2cef162c28eb5e8e91a6c40497a18f19c (diff)
operator<< for SwPosition/SwPaM/etc. for use with SAL_DEBUG
Change-Id: I99ffa87afa6dbdbd20042a882af428d166546af3
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/index.hxx4
-rw-r--r--sw/inc/ndindex.hxx3
-rw-r--r--sw/inc/pam.hxx6
3 files changed, 13 insertions, 0 deletions
diff --git a/sw/inc/index.hxx b/sw/inc/index.hxx
index e3648533d27d..333086186116 100644
--- a/sw/inc/index.hxx
+++ b/sw/inc/index.hxx
@@ -23,6 +23,8 @@
#include <tools/rtti.hxx>
#include <swdllapi.h>
+#include <iostream>
+
class SwIndexReg;
struct SwPosition;
@@ -107,6 +109,8 @@ public:
void SetMark(const sw::mark::IMark* pMark);
};
+std::ostream& operator <<(std::ostream& s, const SwIndex& index);
+
class SwIndexReg
{
friend class SwIndex;
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index 028ce54db912..c8221c269c81 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_NDINDEX_HXX
#include <limits.h>
+#include <iostream>
#include <tools/solar.h>
@@ -92,6 +93,8 @@ public:
SwNode& GetNode() const { return *pNd; }
};
+std::ostream &operator <<(std::ostream& s, const SwNodeIndex& index);
+
// SwRange
class SW_DLLPUBLIC SwNodeRange
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index dd95d13492f7..86144536dbec 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -28,6 +28,8 @@
#include <ndindex.hxx>
#include "swdllapi.h"
+#include <iostream>
+
class SwFmt;
class SfxPoolItem;
class SfxItemSet;
@@ -74,6 +76,8 @@ struct SW_DLLPUBLIC SwPosition
bool operator !=(const SwPosition &) const;
};
+std::ostream &operator <<(std::ostream& s, const SwPosition& position);
+
// Result of comparing positions.
enum SwComparePosition {
POS_BEFORE, ///< Pos1 before Pos2.
@@ -301,6 +305,8 @@ public:
void InvalidatePaM();
};
+std::ostream &operator <<(std::ostream& s, const SwPaM& pam);
+
bool CheckNodesRange( const SwNodeIndex&, const SwNodeIndex&, bool bChkSection );
#endif // INCLUDED_SW_INC_PAM_HXX