diff options
Diffstat (limited to 'sw/inc/viscrs.hxx')
-rw-r--r-- | sw/inc/viscrs.hxx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index 194efe4ee55a..b4010b991660 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -28,6 +28,7 @@ class SwCrsrShell; class SwShellCrsr; +class SwTxtInputFld; // From here classes/methods for non-text cursor. @@ -59,6 +60,7 @@ public: // From here classes/methods for selections. namespace sdr { namespace overlay { class OverlayObject; }} +namespace sw { namespace overlay { class OverlayRangesOutline; }} class SwSelPaintRects : public SwRects { @@ -71,7 +73,6 @@ class SwSelPaintRects : public SwRects const SwCrsrShell* pCShell; virtual void Paint( const Rectangle& rRect ); - virtual void FillRects() = 0; #if HAVE_FEATURE_DESKTOP sdr::overlay::OverlayObject* mpCursorOverlay; @@ -81,11 +82,18 @@ class SwSelPaintRects : public SwRects void setCursorOverlay(sdr::overlay::OverlayObject* pNew) { mpCursorOverlay = pNew; } #endif + bool mbShowTxtInputFldOverlay; + sw::overlay::OverlayRangesOutline* mpTxtInputFldOverlay; + + void HighlightInputFld(); + public: SwSelPaintRects( const SwCrsrShell& rCSh ); virtual ~SwSelPaintRects(); - // in SwCrsrShell::CreateCrsr() the content of SwSelPaintRects is exchanged. To + virtual void FillRects() = 0; + + // #i75172# in SwCrsrShell::CreateCrsr() the content of SwSelPaintRects is exchanged. To // make a complete swap access to mpCursorOverlay is needed there void swapContent(SwSelPaintRects& rSwap); @@ -93,6 +101,11 @@ public: void Hide(); void Invalidate( const SwRect& rRect ); + inline void SetShowTxtInputFldOverlay( const bool bShow ) + { + mbShowTxtInputFldOverlay = bShow; + } + const SwCrsrShell* GetShell() const { return pCShell; } // check current MapMode of the shell and set possibly the static members. // Optional set the parameters pX, pY @@ -107,8 +120,6 @@ class SwShellCrsr : public virtual SwCursor, public SwSelPaintRects Point aMkPt, aPtPt; const SwPosition* pPt; // For assignment of GetPoint() to aPtPt. - virtual void FillRects(); // For Table- und normal cursors. - using SwCursor::UpDown; public: @@ -118,6 +129,8 @@ public: SwShellCrsr( SwShellCrsr& ); virtual ~SwShellCrsr(); + virtual void FillRects(); // For Table- und normal cursors. + void Show(); // Update and display all selections. void Hide(); // Hide all selections. void Invalidate( const SwRect& rRect ); |