diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-05-03 15:06:58 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-08 21:51:20 +0200 |
commit | 2136dc24a16c14138a0cf00b701cc468f4c76d2d (patch) | |
tree | 9f5b38185b682a4f8f3e51d78c44a6bee223fcd8 /sw/source/core/text/porrst.hxx | |
parent | 9a9f2bab54e9f124c19b525061fafb6d48e471a0 (diff) |
sw_redlinehide: convert headers to TextFrameIndex
Only convert the interfaces now, convert the implementations later.
Change-Id: I8a84f239d59a5fe21c62615d9ff8e2defa07badc
Diffstat (limited to 'sw/source/core/text/porrst.hxx')
-rw-r--r-- | sw/source/core/text/porrst.hxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx index ec42b3dab541..cadd8f871b43 100644 --- a/sw/source/core/text/porrst.hxx +++ b/sw/source/core/text/porrst.hxx @@ -42,7 +42,7 @@ public: virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; virtual sal_uInt16 GetViewWidth( const SwTextSizeInfo &rInf ) const override; - virtual sal_Int32 GetCursorOfst( const sal_uInt16 nOfst ) const override; + virtual TextFrameIndex GetCursorOfst(sal_uInt16 nOfst) const override; // Accessibility: pass information about this portion to the PortionHandler virtual void HandlePortion( SwPortionHandler& rPH ) const override; @@ -94,7 +94,11 @@ class SwHangingPortion : public SwTextPortion sal_uInt16 nInnerWidth; public: explicit SwHangingPortion( SwPosSize aSize ) : nInnerWidth( aSize.Width() ) - { SetWhichPor( POR_HNG ); SetLen( 1 ); Height( aSize.Height() ); } + { + SetWhichPor( POR_HNG ); + SetLen(TextFrameIndex(1)); + Height( aSize.Height() ); + } sal_uInt16 GetInnerWidth() const { return nInnerWidth; } }; @@ -103,8 +107,10 @@ public: class SwHiddenTextPortion : public SwLinePortion { public: - explicit SwHiddenTextPortion( sal_Int32 nLen ) - { SetWhichPor( POR_HIDDEN_TXT ); SetLen( nLen ); } + explicit SwHiddenTextPortion(TextFrameIndex const nLen) + { + SetWhichPor( POR_HIDDEN_TXT ); SetLen( nLen ); + } virtual void Paint( const SwTextPaintInfo &rInf ) const override; virtual bool Format( SwTextFormatInfo &rInf ) override; @@ -123,7 +129,7 @@ public: explicit SwControlCharPortion( sal_Unicode cChar ) : mnViewWidth( 0 ), mnHalfCharWidth( 0 ), mcChar( cChar ) { - SetWhichPor( POR_CONTROLCHAR ); SetLen( 1 ); + SetWhichPor( POR_CONTROLCHAR ); SetLen( TextFrameIndex(1) ); } virtual void Paint( const SwTextPaintInfo &rInf ) const override; |