diff options
author | jp <jp@openoffice.org> | 2000-11-15 14:23:45 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-11-15 14:23:45 +0000 |
commit | 6ce304a329af6547866e869c5062d62b84984747 (patch) | |
tree | 938c68c648e2283bb03d8a11c35ce62443f89fb5 | |
parent | 6cc4a943b2ebc590e4f6e0ef3aed0895d404f030 (diff) |
remove GetPosInputData
-rw-r--r-- | sw/inc/extinput.hxx | 9 | ||||
-rw-r--r-- | sw/source/core/doc/extinput.cxx | 42 |
2 files changed, 5 insertions, 46 deletions
diff --git a/sw/inc/extinput.hxx b/sw/inc/extinput.hxx index 4f79b7a64e5c..483e02aaa81f 100644 --- a/sw/inc/extinput.hxx +++ b/sw/inc/extinput.hxx @@ -2,9 +2,9 @@ * * $RCSfile: extinput.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:14:25 $ + * last change: $Author: jp $ $Date: 2000-11-15 15:23:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,7 +70,6 @@ #endif class CommandExtTextInputData; -class CommandExtTextInputPosData; class Font; class SwExtTextInput : public SwPaM @@ -82,11 +81,9 @@ public: virtual ~SwExtTextInput(); void SetInputData( const CommandExtTextInputData& rData ); - Rectangle* GetPosInputData( const CommandExtTextInputPosData& rFill, - const Point* pLayPos = 0 ) const; void InvalidateRange(); void SetFontForPos( USHORT nPos, Font& rFont ); - const SvUShorts& GetAttrs() const { return aAttrs; } + const SvUShorts& GetAttrs() const { return aAttrs; } BOOL IsInsText() const { return bInsText; } void SetInsText( BOOL bFlag ) { bInsText = bFlag; } }; diff --git a/sw/source/core/doc/extinput.cxx b/sw/source/core/doc/extinput.cxx index 79dd3f5a058c..6d1fc84276c5 100644 --- a/sw/source/core/doc/extinput.cxx +++ b/sw/source/core/doc/extinput.cxx @@ -2,9 +2,9 @@ * * $RCSfile: extinput.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-19 00:08:15 $ + * last change: $Author: jp $ $Date: 2000-11-15 15:23:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,44 +154,6 @@ void SwExtTextInput::SetInputData( const CommandExtTextInputData& rData ) } } -Rectangle* SwExtTextInput::GetPosInputData( - const CommandExtTextInputPosData& rFill, - const Point* pLayPos ) const -{ - Rectangle* pRet = 0; - SwTxtNode* pTNd = GetPoint()->nNode.GetNode().GetTxtNode(); - if( pTNd ) - { - Point aPt; - if( pLayPos ) - aPt = *pLayPos; - - const SwCntntFrm* pFrm = pTNd->GetFrm( &aPt, 0, FALSE ); - if( pFrm ) - { - xub_StrLen nEndCnt = GetPoint()->nContent.GetIndex(), - nSttCnt = GetMark()->nContent.GetIndex(); - if( nEndCnt < nSttCnt ) - { - xub_StrLen n = nEndCnt; nEndCnt = nSttCnt; nSttCnt = n; - } - - xub_StrLen nLen = rFill.GetChars(); - pRet = new Rectangle[ nLen ]; - - SwPosition aPos( *GetPoint() ); - SwRect aRect; - for( xub_StrLen n = rFill.GetFirstPos(); n < nLen; ++n ) - { - aPos.nContent = nSttCnt + n; - pFrm->GetCharRect( aRect, aPos ); - pRet[ n ] = aRect.SVRect(); - } - } - } - return pRet; -} - void SwExtTextInput::SetFontForPos( USHORT nPos, Font& rFont ) { } |