summaryrefslogtreecommitdiff
path: root/sw/inc/txatbase.hxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-11-12 00:46:22 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-11-14 09:23:19 +0100
commitebeff3f074dd94dce4ce6cc55abd0495103684bd (patch)
tree4ba353f7ad94480fccfed3e78e305b80c0e5627b /sw/inc/txatbase.hxx
parentcd470c64f9b09bb94262c606cfc36c8d923ffc54 (diff)
xub_StrLen to sal_Int32 in SwIndex and some related
Change-Id: I66735635a88844c30a7fa1c886d2c1df34008f4f
Diffstat (limited to 'sw/inc/txatbase.hxx')
-rw-r--r--sw/inc/txatbase.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/txatbase.hxx b/sw/inc/txatbase.hxx
index a5836b5d9570..234110a3d615 100644
--- a/sw/inc/txatbase.hxx
+++ b/sw/inc/txatbase.hxx
@@ -44,7 +44,7 @@ class SwTxtAttr : private boost::noncopyable
{
private:
SfxPoolItem * const m_pAttr;
- xub_StrLen m_nStart;
+ sal_Int32 m_nStart;
bool m_bDontExpand : 1;
bool m_bLockExpandFlag : 1;
@@ -59,7 +59,7 @@ private:
bool m_bFormatIgnoreEnd : 1; ///< text formatting should ignore end
protected:
- SwTxtAttr( SfxPoolItem& rAttr, xub_StrLen nStart );
+ SwTxtAttr( SfxPoolItem& rAttr, sal_Int32 nStart );
virtual ~SwTxtAttr();
void SetLockExpandFlag( bool bFlag ) { m_bLockExpandFlag = bFlag; }
@@ -76,14 +76,14 @@ public:
static void Destroy( SwTxtAttr * pToDestroy, SfxItemPool& rPool );
/// start position
- xub_StrLen* GetStart() { return & m_nStart; }
- const xub_StrLen* GetStart() const { return & m_nStart; }
+ sal_Int32* GetStart() { return & m_nStart; }
+ const sal_Int32* GetStart() const { return & m_nStart; }
/// end position
- virtual xub_StrLen* GetEnd();
- inline const xub_StrLen* GetEnd() const;
+ virtual sal_Int32* GetEnd();
+ inline const sal_Int32* GetEnd() const;
/// end (if available), else start
- inline const xub_StrLen* GetAnyEnd() const;
+ inline const sal_Int32* GetAnyEnd() const;
inline void SetDontExpand( bool bDontExpand );
bool DontExpand() const { return m_bDontExpand; }
@@ -123,26 +123,26 @@ public:
class SwTxtAttrEnd : public SwTxtAttr
{
protected:
- xub_StrLen m_nEnd;
+ sal_Int32 m_nEnd;
public:
- SwTxtAttrEnd( SfxPoolItem& rAttr, xub_StrLen nStart, xub_StrLen nEnd );
+ SwTxtAttrEnd( SfxPoolItem& rAttr, sal_Int32 nStart, sal_Int32 nEnd );
using SwTxtAttr::GetEnd;
- virtual xub_StrLen* GetEnd();
+ virtual sal_Int32* GetEnd();
};
// --------------- Inline Implementations ------------------------
-inline const xub_StrLen* SwTxtAttr::GetEnd() const
+inline const sal_Int32* SwTxtAttr::GetEnd() const
{
return const_cast<SwTxtAttr * >(this)->GetEnd();
}
-inline const xub_StrLen* SwTxtAttr::GetAnyEnd() const
+inline const sal_Int32* SwTxtAttr::GetAnyEnd() const
{
- const xub_StrLen* pEnd = GetEnd();
+ const sal_Int32* pEnd = GetEnd();
return pEnd ? pEnd : GetStart();
}