summaryrefslogtreecommitdiff
path: root/sw/inc/ndhints.hxx
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2011-01-17 15:06:54 +0100
committerCarsten Driesner <cd@openoffice.org>2011-01-17 15:06:54 +0100
commit7f33ed417b2e29e5470724ea76967f64699a2662 (patch)
treeabfa1432c5ffffe4c7502d4ddcaee918c584c69c /sw/inc/ndhints.hxx
parent80731dbfcb48a2ffec30a4b2abe1ba8ada8f0169 (diff)
removetooltypes01: #i112600# Remove tools types from sw
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r--sw/inc/ndhints.hxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx
index c1d210464eb3..f24dce137463 100644
--- a/sw/inc/ndhints.hxx
+++ b/sw/inc/ndhints.hxx
@@ -88,31 +88,31 @@ protected:
//FIXME: why are the non-const methods public?
public:
void Insert( const SwTxtAttr *pHt );
- void DeleteAtPos( const USHORT nPosInStart );
+ void DeleteAtPos( const sal_uInt16 nPosInStart );
bool Resort();
- SwTxtAttr * Cut( const USHORT nPosInStart );
+ SwTxtAttr * Cut( const sal_uInt16 nPosInStart );
- inline const SwTxtAttr * GetStart( const USHORT nPos ) const
+ inline const SwTxtAttr * GetStart( const sal_uInt16 nPos ) const
{ return m_HintStarts[nPos]; }
- inline const SwTxtAttr * GetEnd ( const USHORT nPos ) const
+ inline const SwTxtAttr * GetEnd ( const sal_uInt16 nPos ) const
{ return m_HintEnds [nPos]; }
- inline SwTxtAttr * GetStart( const USHORT nPos )
+ inline SwTxtAttr * GetStart( const sal_uInt16 nPos )
{ return m_HintStarts[nPos]; }
- inline SwTxtAttr * GetEnd ( const USHORT nPos )
+ inline SwTxtAttr * GetEnd ( const sal_uInt16 nPos )
{ return m_HintEnds [nPos]; }
- inline USHORT GetEndCount() const { return m_HintEnds .Count(); }
- inline USHORT GetStartCount() const { return m_HintStarts.Count(); }
+ inline sal_uInt16 GetEndCount() const { return m_HintEnds .Count(); }
+ inline sal_uInt16 GetStartCount() const { return m_HintStarts.Count(); }
- inline USHORT GetStartOf( const SwTxtAttr *pHt ) const;
- inline USHORT GetPos( const SwTxtAttr *pHt ) const
+ inline sal_uInt16 GetStartOf( const SwTxtAttr *pHt ) const;
+ inline sal_uInt16 GetPos( const SwTxtAttr *pHt ) const
{ return m_HintStarts.GetPos( pHt ); }
- inline SwTxtAttr * GetTextHint( const USHORT nIdx )
+ inline SwTxtAttr * GetTextHint( const sal_uInt16 nIdx )
{ return GetStart(nIdx); }
- inline const SwTxtAttr * operator[]( const USHORT nIdx ) const
+ inline const SwTxtAttr * operator[]( const sal_uInt16 nIdx ) const
{ return m_HintStarts[nIdx]; }
- inline USHORT Count() const { return m_HintStarts.Count(); }
+ inline sal_uInt16 Count() const { return m_HintStarts.Count(); }
#ifdef DBG_UTIL
bool Check() const;
@@ -147,7 +147,7 @@ private:
// Because the TextNode also guarantees removal of the Character for
// attributes without an end.
friend class SwTxtNode;
- void DeleteAtPos( const USHORT nPos );
+ void DeleteAtPos( const sal_uInt16 nPos );
// Delete the given Hint. The Hint must actually be in the array!
void Delete( SwTxtAttr* pTxtHt );
@@ -202,9 +202,9 @@ SvStream &operator<<(SvStream &aS, const SwpHints &rHints); //$ ostream
* Inline Implementations
*************************************************************************/
-inline USHORT SwpHintsArray::GetStartOf( const SwTxtAttr *pHt ) const
+inline sal_uInt16 SwpHintsArray::GetStartOf( const SwTxtAttr *pHt ) const
{
- USHORT nPos;
+ sal_uInt16 nPos;
if ( !m_HintStarts.Seek_Entry( pHt, &nPos ) )
{
nPos = USHRT_MAX;
@@ -212,7 +212,7 @@ inline USHORT SwpHintsArray::GetStartOf( const SwTxtAttr *pHt ) const
return nPos;
}
-inline SwTxtAttr *SwpHintsArray::Cut( const USHORT nPosInStart )
+inline SwTxtAttr *SwpHintsArray::Cut( const sal_uInt16 nPosInStart )
{
SwTxtAttr *pHt = GetTextHint(nPosInStart);
DeleteAtPos( nPosInStart );