summaryrefslogtreecommitdiff
path: root/sw/inc/pam.hxx
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/pam.hxx
parent988477e2cef162c28eb5e8e91a6c40497a18f19c (diff)
operator<< for SwPosition/SwPaM/etc. for use with SAL_DEBUG
Change-Id: I99ffa87afa6dbdbd20042a882af428d166546af3
Diffstat (limited to 'sw/inc/pam.hxx')
-rw-r--r--sw/inc/pam.hxx6
1 files changed, 6 insertions, 0 deletions
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