summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-06-08 21:56:55 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-06-08 21:59:18 +0200
commit43941d9a5313fcd7fe39a61bd2eace64f7743486 (patch)
tree058abd67432fd69df63825d85ee1539469d764b7 /sw/inc
parentbe8d06266fab13f200bae2aa1f0e953e517232cb (diff)
sal_Bool to bool and some cleanup
Change-Id: I4b20be1a3558e6b48a224e37e7f50944bb6bd237
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/pam.hxx24
1 files changed, 13 insertions, 11 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index 29fb08225817..54c20b1d8d2c 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -139,7 +139,7 @@ typedef SwMoveFnCollection* SwMoveFn;
SW_DLLPUBLIC extern SwMoveFn fnMoveForward; ///< SwPam::Move()/Find() default argument.
SW_DLLPUBLIC extern SwMoveFn fnMoveBackward;
-typedef sal_Bool (*SwGoInDoc)( SwPaM& rPam, SwMoveFn fnMove );
+typedef bool (*SwGoInDoc)( SwPaM& rPam, SwMoveFn fnMove );
SW_DLLPUBLIC extern SwGoInDoc fnGoDoc;
extern SwGoInDoc fnGoSection;
SW_DLLPUBLIC extern SwGoInDoc fnGoNode;
@@ -182,8 +182,8 @@ public:
SwPaM& operator=( const SwPaM & );
/// Movement of cursor.
- sal_Bool Move( SwMoveFn fnMove = fnMoveForward,
- SwGoInDoc fnGo = fnGoCntnt );
+ bool Move( SwMoveFn fnMove = fnMoveForward,
+ SwGoInDoc fnGo = fnGoCntnt );
/// Search.
bool Find( const com::sun::star::util::SearchOptions& rSearchOpt,
@@ -271,10 +271,10 @@ public:
/**
Normalizes PaM, i.e. sort point and mark.
- @param bPointFirst sal_True: If the point is behind the mark then swap.
- sal_False: If the mark is behind the point then swap.
+ @param bPointFirst true: If the point is behind the mark then swap.
+ false: If the mark is behind the point then swap.
*/
- SwPaM & Normalize(sal_Bool bPointFirst = sal_True);
+ SwPaM & Normalize(bool bPointFirst = true);
/// @return the document (SwDoc) at which the PaM is registered
SwDoc* GetDoc() const { return m_pPoint->nNode.GetNode().GetDoc(); }
@@ -285,14 +285,16 @@ public:
{ return bOne ? m_Bound1 : m_Bound2; }
/// Get number of page which contains cursor.
- sal_uInt16 GetPageNum( sal_Bool bAtPoint = sal_True, const Point* pLayPos = 0 );
+ sal_uInt16 GetPageNum( bool bAtPoint = true, const Point* pLayPos = 0 );
/** Is in something protected (readonly) or selection contains
something protected. */
bool HasReadonlySel( bool bFormView, bool bAnnotationMode = false ) const;
- sal_Bool ContainsPosition(const SwPosition & rPos)
- { return *Start() <= rPos && rPos <= *End(); }
+ bool ContainsPosition(const SwPosition & rPos)
+ {
+ return *Start() <= rPos && rPos <= *End();
+ }
DECL_FIXEDMEMPOOL_NEWDEL(SwPaM);
@@ -301,8 +303,8 @@ public:
};
-sal_Bool CheckNodesRange( const SwNodeIndex&, const SwNodeIndex&, sal_Bool );
-sal_Bool GoInCntnt( SwPaM & rPam, SwMoveFn fnMove );
+bool CheckNodesRange( const SwNodeIndex&, const SwNodeIndex&, bool bChkSection );
+bool GoInCntnt( SwPaM & rPam, SwMoveFn fnMove );
#endif // _PAM_HXX