LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SwSelPaintRects Class Referenceabstract

SwSelPaintRects is a base class of SwShellCursor, which stores the overlay for the cursor/selection: a list of rectangles to be painted as an overlay. More...

#include <viscrs.hxx>

Inheritance diagram for SwSelPaintRects:
[legend]
Collaboration diagram for SwSelPaintRects:
[legend]

Public Member Functions

 SwSelPaintRects (const SwCursorShell &rCSh)
 
virtual ~SwSelPaintRects ()
 
virtual void FillRects ()=0
 
virtual void FillStartEnd (SwRect &rStart, SwRect &rEnd) const =0
 Fill rStart and rEnd with a rectangle that represents the start and end for selection handles. More...
 
void swapContent (SwSelPaintRects &rSwap)
 
void Show (std::vector< OString > *pSelectionRectangles=nullptr)
 
void Hide ()
 
void Invalidate (const SwRect &rRect)
 
void SetShowTextInputFieldOverlay (const bool bShow)
 
void SetShowContentControlOverlay (const bool bShow)
 
const VclPtr< SwContentControlButton > & GetContentControlButton () const
 
const SwCursorShellGetShell () const
 
std::optional< OString > getLOKPayload (int nType, int nViewId) const
 

Static Public Member Functions

static void Get1PixelInLogic (const SwViewShell &rSh, tools::Long *pX=nullptr, tools::Long *pY=nullptr)
 

Private Member Functions

void HighlightInputField ()
 
void HighlightContentControl ()
 

Private Attributes

const SwCursorShellm_pCursorShell
 
bool m_bShowTextInputFieldOverlay
 
std::unique_ptr< sw::overlay::OverlayRangesOutlinem_pTextInputFieldOverlay
 
bool m_bShowContentControlOverlay
 
std::unique_ptr< sw::overlay::OverlayRangesOutlinem_pContentControlOverlay
 
VclPtr< SwContentControlButtonm_pContentControlButton
 

Static Private Attributes

static tools::Long s_nPixPtX = 0
 
static tools::Long s_nPixPtY = 0
 
static MapModes_pMapMode = nullptr
 

Friends

void InitCore ()
 
void FinitCore ()
 

Detailed Description

SwSelPaintRects is a base class of SwShellCursor, which stores the overlay for the cursor/selection: a list of rectangles to be painted as an overlay.

It is also capable of painting other overlays as needed (text input, content control).

Definition at line 79 of file viscrs.hxx.

Constructor & Destructor Documentation

◆ SwSelPaintRects()

SwSelPaintRects::SwSelPaintRects ( const SwCursorShell rCSh)

Definition at line 355 of file viscrs.cxx.

References if().

◆ ~SwSelPaintRects()

SwSelPaintRects::~SwSelPaintRects ( )
virtual

Member Function Documentation

◆ FillRects()

virtual void SwSelPaintRects::FillRects ( )
pure virtual

Implemented in SwShellCursor, and SwShellTableCursor.

Referenced by Show().

◆ FillStartEnd()

virtual void SwSelPaintRects::FillStartEnd ( SwRect rStart,
SwRect rEnd 
) const
pure virtual

Fill rStart and rEnd with a rectangle that represents the start and end for selection handles.

Implemented in SwShellCursor, and SwShellTableCursor.

Referenced by getLOKPayload(), and Show().

◆ Get1PixelInLogic()

void SwSelPaintRects::Get1PixelInLogic ( const SwViewShell rSh,
tools::Long pX = nullptr,
tools::Long pY = nullptr 
)
static

◆ GetContentControlButton()

const VclPtr< SwContentControlButton > & SwSelPaintRects::GetContentControlButton ( ) const

Definition at line 841 of file viscrs.cxx.

References m_pContentControlButton.

Referenced by SwEditWin::KeyInput().

◆ getLOKPayload()

std::optional< OString > SwSelPaintRects::getLOKPayload ( int  nType,
int  nViewId 
) const

◆ GetShell()

const SwCursorShell * SwSelPaintRects::GetShell ( ) const
inline

◆ Hide()

void SwSelPaintRects::Hide ( )

Definition at line 384 of file viscrs.cxx.

References m_pContentControlOverlay, and m_pTextInputFieldOverlay.

Referenced by ~SwSelPaintRects().

◆ HighlightContentControl()

void SwSelPaintRects::HighlightContentControl ( )
private

◆ HighlightInputField()

void SwSelPaintRects::HighlightInputField ( )
private

◆ Invalidate()

void SwSelPaintRects::Invalidate ( const SwRect rRect)

◆ SetShowContentControlOverlay()

void SwSelPaintRects::SetShowContentControlOverlay ( const bool  bShow)
inline

Definition at line 123 of file viscrs.hxx.

References m_bShowContentControlOverlay.

Referenced by SwCursorShell::HideCursor(), and SwCursorShell::ShowCursor().

◆ SetShowTextInputFieldOverlay()

void SwSelPaintRects::SetShowTextInputFieldOverlay ( const bool  bShow)
inline

Definition at line 118 of file viscrs.hxx.

References m_bShowTextInputFieldOverlay.

Referenced by SwCursorShell::HideCursor(), and SwCursorShell::ShowCursor().

◆ Show()

void SwSelPaintRects::Show ( std::vector< OString > *  pSelectionRectangles = nullptr)

◆ swapContent()

void SwSelPaintRects::swapContent ( SwSelPaintRects rSwap)

Friends And Related Function Documentation

◆ FinitCore

void FinitCore ( )
friend

Definition at line 668 of file init.cxx.

◆ InitCore

void InitCore ( )
friend

Definition at line 449 of file init.cxx.

Member Data Documentation

◆ m_bShowContentControlOverlay

bool SwSelPaintRects::m_bShowContentControlOverlay
private

Definition at line 95 of file viscrs.hxx.

Referenced by HighlightContentControl(), SetShowContentControlOverlay(), and swapContent().

◆ m_bShowTextInputFieldOverlay

bool SwSelPaintRects::m_bShowTextInputFieldOverlay
private

Definition at line 93 of file viscrs.hxx.

Referenced by HighlightInputField(), SetShowTextInputFieldOverlay(), and swapContent().

◆ m_pContentControlButton

VclPtr<SwContentControlButton> SwSelPaintRects::m_pContentControlButton
private

Definition at line 97 of file viscrs.hxx.

Referenced by GetContentControlButton(), HighlightContentControl(), and ~SwSelPaintRects().

◆ m_pContentControlOverlay

std::unique_ptr<sw::overlay::OverlayRangesOutline> SwSelPaintRects::m_pContentControlOverlay
private

Definition at line 96 of file viscrs.hxx.

Referenced by Hide(), HighlightContentControl(), and swapContent().

◆ m_pCursorShell

const SwCursorShell* SwSelPaintRects::m_pCursorShell
private

Definition at line 87 of file viscrs.hxx.

Referenced by GetShell(), and Show().

◆ m_pTextInputFieldOverlay

std::unique_ptr<sw::overlay::OverlayRangesOutline> SwSelPaintRects::m_pTextInputFieldOverlay
private

Definition at line 94 of file viscrs.hxx.

Referenced by Hide(), HighlightInputField(), and swapContent().

◆ s_nPixPtX

tools::Long SwSelPaintRects::s_nPixPtX = 0
staticprivate

Definition at line 84 of file viscrs.hxx.

Referenced by Get1PixelInLogic(), and Invalidate().

◆ s_nPixPtY

tools::Long SwSelPaintRects::s_nPixPtY = 0
staticprivate

Definition at line 84 of file viscrs.hxx.

Referenced by Get1PixelInLogic(), and Invalidate().

◆ s_pMapMode

MapMode * SwSelPaintRects::s_pMapMode = nullptr
staticprivate

Definition at line 85 of file viscrs.hxx.

Referenced by Get1PixelInLogic().


The documentation for this class was generated from the following files: