LibreOffice Module sw (master)
1
|
#include <viscrs.hxx>
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) |
const SwCursorShell * | GetShell () const |
Static Public Member Functions | |
static void | Get1PixelInLogic (const SwViewShell &rSh, tools::Long *pX=nullptr, tools::Long *pY=nullptr) |
Private Member Functions | |
void | HighlightInputField () |
Private Attributes | |
const SwCursorShell * | m_pCursorShell |
bool | m_bShowTextInputFieldOverlay |
std::unique_ptr< sw::overlay::OverlayRangesOutline > | m_pTextInputFieldOverlay |
Static Private Attributes | |
static tools::Long | s_nPixPtX = 0 |
static tools::Long | s_nPixPtY = 0 |
static MapMode * | s_pMapMode = nullptr |
Friends | |
void | InitCore () |
void | FinitCore () |
Definition at line 68 of file viscrs.hxx.
SwSelPaintRects::SwSelPaintRects | ( | const SwCursorShell & | rCSh | ) |
Definition at line 325 of file viscrs.cxx.
References if().
|
virtual |
Definition at line 334 of file viscrs.cxx.
References Hide().
|
pure virtual |
Implemented in SwShellTableCursor, and SwShellCursor.
Referenced by Show().
Fill rStart and rEnd with a rectangle that represents the start and end for selection handles.
Implemented in SwShellTableCursor, and SwShellCursor.
Referenced by Show().
|
static |
Definition at line 591 of file viscrs.cxx.
References OutputDevice::GetMapMode(), MapMode::GetMapUnit(), SwViewShell::GetOut(), MapMode::GetScaleX(), MapMode::GetScaleY(), SwViewShell::GetWin(), Size::Height(), OutputDevice::PixelToLogic(), pOut, s_nPixPtX, s_nPixPtY, s_pMapMode, and Size::Width().
Referenced by SwWrtShell::CalcAndSetScale(), and Invalidate().
|
inline |
Definition at line 108 of file viscrs.hxx.
References m_pCursorShell.
Referenced by SwShellCursor::Create(), SwShellCursor::FillRects(), SwShellTableCursor::FillRects(), SwShellCursor::FillStartEnd(), HighlightInputField(), Invalidate(), SwShellCursor::IsAtValidPos(), SwShellTableCursor::IsInside(), SwShellCursor::IsReadOnlyAvailable(), SwShellCursor::MaxReplaceArived(), SwShellCursor::SaveTableBoxContent(), Show(), SwShellCursor::Show(), and SwShellCursor::UpDown().
void SwSelPaintRects::Hide | ( | ) |
Definition at line 351 of file viscrs.cxx.
References m_pTextInputFieldOverlay.
Referenced by ~SwSelPaintRects().
|
private |
Definition at line 497 of file viscrs.cxx.
References Color::DecreaseLuminance(), SwTextAttr::End(), SwViewShell::GetDrawView(), SvtOptionsDrawinglayer::getHilightColor(), SdrPaintWindow::GetOverlayManager(), SdrPaintView::GetPaintWindow(), SwTextField::GetpTextNode(), GetShell(), SwTextAttr::GetStart(), SwCursorShell::GetTextFieldAtPos(), m_bShowTextInputFieldOverlay, m_pTextInputFieldOverlay, and Start.
Referenced by Show().
Definition at line 558 of file viscrs.cxx.
References SwRect::AddBottom(), SwRect::AddRight(), begin, SwRect::Bottom(), end, Get1PixelInLogic(), GetShell(), SwCursorShell::m_aOldRBPos, SwRect::Right(), s_nPixPtX, s_nPixPtY, and size.
|
inline |
Definition at line 103 of file viscrs.hxx.
void SwSelPaintRects::Show | ( | std::vector< OString > * | pSelectionRectangles = nullptr | ) |
Definition at line 388 of file viscrs.cxx.
References a, FillRects(), FillStartEnd(), SwViewShell::GetDrawView(), SvtOptionsDrawinglayer::getHilightColor(), SdrPaintWindow::GetOverlayManager(), SdrPaintView::GetPaintWindow(), SwViewShell::GetSfxViewShell(), GetShell(), SdrObjEditView::GetTextEditObject(), SwRect::HasArea(), HighlightInputField(), i, comphelper::LibreOfficeKit::isActive(), comphelper::string::join(), SfxViewShell::libreOfficeKitViewCallback(), m_pCursorShell, SfxLokHelper::notifyOtherViews(), SdrPaintView::PaintWindowCount(), size, SwRect::SVRect(), tools::Rectangle::toString(), and sdr::overlay::Transparent.
void SwSelPaintRects::swapContent | ( | SwSelPaintRects & | rSwap | ) |
Definition at line 339 of file viscrs.cxx.
References m_bShowTextInputFieldOverlay, and m_pTextInputFieldOverlay.
Referenced by SwCursorShell::CreateCursor().
|
private |
Definition at line 82 of file viscrs.hxx.
Referenced by HighlightInputField(), and swapContent().
|
private |
Definition at line 76 of file viscrs.hxx.
Referenced by GetShell(), and Show().
|
private |
Definition at line 83 of file viscrs.hxx.
Referenced by Hide(), HighlightInputField(), and swapContent().
|
staticprivate |
Definition at line 73 of file viscrs.hxx.
Referenced by Get1PixelInLogic(), and Invalidate().
|
staticprivate |
Definition at line 73 of file viscrs.hxx.
Referenced by Get1PixelInLogic(), and Invalidate().
|
staticprivate |
Definition at line 74 of file viscrs.hxx.
Referenced by FinitCore(), Get1PixelInLogic(), and InitCore().