Kaydet (Commit) e8d4b4ff authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: remove TextView::Foo

üst a5d227a0
...@@ -156,7 +156,6 @@ public: ...@@ -156,7 +156,6 @@ public:
void Redo(); void Redo();
sal_Bool Read( SvStream& rInput ); sal_Bool Read( SvStream& rInput );
sal_Bool Write( SvStream& rOutput );
void SetStartDocPos( const Point& rPos ); void SetStartDocPos( const Point& rPos );
const Point& GetStartDocPos() const; const Point& GetStartDocPos() const;
...@@ -168,7 +167,6 @@ public: ...@@ -168,7 +167,6 @@ public:
sal_Bool IsInsertMode() const; sal_Bool IsInsertMode() const;
void SetAutoIndentMode( sal_Bool bAutoIndent ); void SetAutoIndentMode( sal_Bool bAutoIndent );
sal_Bool IsAutoIndentMode() const;
void SetReadOnly( sal_Bool bReadOnly ); void SetReadOnly( sal_Bool bReadOnly );
sal_Bool IsReadOnly() const; sal_Bool IsReadOnly() const;
...@@ -180,10 +178,6 @@ public: ...@@ -180,10 +178,6 @@ public:
sal_Bool IsSelectionAtPoint( const Point& rPointPixel ); sal_Bool IsSelectionAtPoint( const Point& rPointPixel );
void SetPaintSelection( sal_Bool bPaint); void SetPaintSelection( sal_Bool bPaint);
sal_Bool IsPaintSelection() const;
void SetHighlightSelection( sal_Bool bSelectByHighlight );
sal_Bool IsHighlightSelection() const;
void EraseVirtualDevice(); void EraseVirtualDevice();
...@@ -204,10 +198,6 @@ public: ...@@ -204,10 +198,6 @@ public:
TextPaM CursorStartOfDoc(); TextPaM CursorStartOfDoc();
TextPaM CursorEndOfDoc(); TextPaM CursorEndOfDoc();
// Old, remove!
TextPaM CursorLeft( const TextPaM& rPaM, sal_Bool bWordMode = sal_False );
TextPaM CursorRight( const TextPaM& rPaM, sal_Bool bWordMode = sal_False );
/** /**
Drag and Drop, deleting and selection regards all text that has an attribute Drag and Drop, deleting and selection regards all text that has an attribute
TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically
......
...@@ -1427,22 +1427,6 @@ void TextView::InsertText( const XubString& rStr, sal_Bool bSelect ) ...@@ -1427,22 +1427,6 @@ void TextView::InsertText( const XubString& rStr, sal_Bool bSelect )
} }
*/ */
// OLD
TextPaM TextView::CursorLeft( const TextPaM& rPaM, sal_Bool bWordMode )
{
return bWordMode ? CursorWordLeft( rPaM ) : CursorLeft( rPaM, (sal_uInt16)i18n::CharacterIteratorMode::SKIPCELL );
// Remove (sal_uInt16) typecasts in this file when removing this method!
}
// OLD
TextPaM TextView::CursorRight( const TextPaM& rPaM, sal_Bool bWordMode )
{
return bWordMode ? CursorWordRight( rPaM ) : CursorRight( rPaM, (sal_uInt16)i18n::CharacterIteratorMode::SKIPCELL );
// Remove (sal_uInt16) typecasts in this file when removing this method!
}
TextPaM TextView::CursorLeft( const TextPaM& rPaM, sal_uInt16 nCharacterIteratorMode ) TextPaM TextView::CursorLeft( const TextPaM& rPaM, sal_uInt16 nCharacterIteratorMode )
{ {
TextPaM aPaM( rPaM ); TextPaM aPaM( rPaM );
...@@ -2006,15 +1990,6 @@ void TextView::SetPaintSelection( sal_Bool bPaint ) ...@@ -2006,15 +1990,6 @@ void TextView::SetPaintSelection( sal_Bool bPaint )
} }
} }
void TextView::SetHighlightSelection( sal_Bool bSelectByHighlight )
{
if ( bSelectByHighlight != mpImpl->mbHighlightSelection )
{
// Falls umschalten zwischendurch moeglich...
mpImpl->mbHighlightSelection = bSelectByHighlight;
}
}
sal_Bool TextView::Read( SvStream& rInput ) sal_Bool TextView::Read( SvStream& rInput )
{ {
sal_Bool bDone = mpImpl->mpTextEngine->Read( rInput, &mpImpl->maSelection ); sal_Bool bDone = mpImpl->mpTextEngine->Read( rInput, &mpImpl->maSelection );
...@@ -2022,11 +1997,6 @@ sal_Bool TextView::Read( SvStream& rInput ) ...@@ -2022,11 +1997,6 @@ sal_Bool TextView::Read( SvStream& rInput )
return bDone; return bDone;
} }
sal_Bool TextView::Write( SvStream& rOutput )
{
return mpImpl->mpTextEngine->Read( rOutput, &mpImpl->maSelection );
}
bool TextView::ImplTruncateNewText( rtl::OUString& rNewText ) const bool TextView::ImplTruncateNewText( rtl::OUString& rNewText ) const
{ {
bool bTruncated = false; bool bTruncated = false;
...@@ -2439,18 +2409,12 @@ const Point& TextView::GetStartDocPos() const ...@@ -2439,18 +2409,12 @@ const Point& TextView::GetStartDocPos() const
{ return mpImpl->maStartDocPos; } { return mpImpl->maStartDocPos; }
void TextView::SetAutoIndentMode( sal_Bool bAutoIndent ) void TextView::SetAutoIndentMode( sal_Bool bAutoIndent )
{ mpImpl->mbAutoIndent = bAutoIndent; } { mpImpl->mbAutoIndent = bAutoIndent; }
sal_Bool TextView::IsAutoIndentMode() const
{ return mpImpl->mbAutoIndent; }
sal_Bool TextView::IsReadOnly() const sal_Bool TextView::IsReadOnly() const
{ return mpImpl->mbReadOnly; } { return mpImpl->mbReadOnly; }
void TextView::SetAutoScroll( sal_Bool bAutoScroll ) void TextView::SetAutoScroll( sal_Bool bAutoScroll )
{ mpImpl->mbAutoScroll = bAutoScroll; } { mpImpl->mbAutoScroll = bAutoScroll; }
sal_Bool TextView::IsAutoScroll() const sal_Bool TextView::IsAutoScroll() const
{ return mpImpl->mbAutoScroll; } { return mpImpl->mbAutoScroll; }
sal_Bool TextView::IsPaintSelection() const
{ return mpImpl->mbPaintSelection; }
sal_Bool TextView::IsHighlightSelection() const
{ return mpImpl->mbHighlightSelection; }
sal_Bool TextView::HasSelection() const sal_Bool TextView::HasSelection() const
{ return mpImpl->maSelection.HasRange(); } { return mpImpl->maSelection.HasRange(); }
sal_Bool TextView::IsInsertMode() const sal_Bool TextView::IsInsertMode() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment