diff options
Diffstat (limited to 'sw/inc/viscrs.hxx')
-rw-r--r-- | sw/inc/viscrs.hxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index 3d52b90f48e6..352f48adba4a 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -30,6 +30,7 @@ class SwCrsrShell; class SwShellCrsr; +class SwTxtInputFld; // -------- Ab hier Klassen / Methoden fuer den nicht Text-Cursor ------ @@ -76,6 +77,7 @@ public: // #i75172# predefines namespace sdr { namespace overlay { class OverlayObject; }} +namespace sw { namespace overlay { class OverlayRangesOutline; }} class SwSelPaintRects : public SwRects { @@ -89,7 +91,6 @@ class SwSelPaintRects : public SwRects const SwCrsrShell* pCShell; virtual void Paint( const Rectangle& rRect ); - virtual void FillRects() = 0; // #i75172# sdr::overlay::OverlayObject* mpCursorOverlay; @@ -98,10 +99,17 @@ class SwSelPaintRects : public SwRects sdr::overlay::OverlayObject* getCursorOverlay() const { return mpCursorOverlay; } void setCursorOverlay(sdr::overlay::OverlayObject* pNew) { mpCursorOverlay = pNew; } + bool mbShowTxtInputFldOverlay; + sw::overlay::OverlayRangesOutline* mpTxtInputFldOverlay; + + void HighlightInputFld(); + public: SwSelPaintRects( const SwCrsrShell& rCSh ); virtual ~SwSelPaintRects(); + 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); @@ -110,6 +118,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 @@ -124,8 +137,6 @@ class SwShellCrsr : public virtual SwCursor, public SwSelPaintRects Point aMkPt, aPtPt; const SwPosition* pPt; // fuer Zuordung vom GetPoint() zum aPtPt - virtual void FillRects(); // fuer Table- und normalen Crsr - using SwCursor::UpDown; public: @@ -135,6 +146,8 @@ public: SwShellCrsr( SwShellCrsr& ); virtual ~SwShellCrsr(); + virtual void FillRects(); // fuer Table- und normalen Crsr + void Show(); // Update und zeige alle Selektionen an void Hide(); // verstecke alle Selektionen void Invalidate( const SwRect& rRect ); @@ -182,7 +195,6 @@ class SwShellTableCrsr : public virtual SwShellCrsr, public virtual SwTableCurso // TabellenBoxen. D.h., wird aus dem einen Array an einer Position // etwas geloescht, dann muss es auch im anderen erfolgen!! - public: SwShellTableCrsr( const SwCrsrShell& rCrsrSh, const SwPosition& rPos ); SwShellTableCrsr( const SwCrsrShell& rCrsrSh, |