21#include <config_feature_desktop.h>
66 std::optional<OString> getLOKPayload(
int nType,
int nViewId)
const;
71namespace sw::overlay {
class OverlayRangesOutline; }
89#if HAVE_FEATURE_DESKTOP || defined(ANDROID)
90 std::unique_ptr<sdr::overlay::OverlayObject> m_pCursorOverlay;
114 void Show(std::vector<OString>* pSelectionRectangles =
nullptr);
133 std::optional<OString>
getLOKPayload(
int nType,
int nViewId)
const;
157 virtual void FillRects()
override;
159 virtual void FillStartEnd(
SwRect& rStart,
SwRect& rEnd)
const override;
163 void Invalidate(
const SwRect& rRect );
174 virtual void SetMark()
override;
178 virtual short MaxReplaceArived()
override;
179 virtual void SaveTableBoxContent(
const SwPosition* pPos )
override;
181 bool UpDown(
bool bUp, sal_uInt16 nCnt );
184 virtual bool IsAtValidPos(
bool bPoint =
true )
const override;
186 virtual bool IsReadOnlyAvailable()
const override;
218 virtual void SetMark()
override;
225 virtual bool IsAtValidPos(
bool bPoint =
true )
const override;
This button is shown when the cursor is inside a content control with drop-down capability.
bool UpDown(bool bUp, sal_uInt16 nCnt, Point const *pPt, tools::Long nUpDownX, SwRootFrame &rLayout)
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
const SwPosition * End() const
const SwPosition * GetPoint() const
const SwPosition * Start() const
Of course Writer needs its own rectangles.
SwSelPaintRects is a base class of SwShellCursor, which stores the overlay for the cursor/selection: ...
const SwCursorShell * GetShell() const
void Show(std::vector< OString > *pSelectionRectangles=nullptr)
void SetShowContentControlOverlay(const bool bShow)
void Invalidate(const SwRect &rRect)
std::unique_ptr< sw::overlay::OverlayRangesOutline > m_pTextInputFieldOverlay
void swapContent(SwSelPaintRects &rSwap)
const VclPtr< SwContentControlButton > & GetContentControlButton() const
SwSelPaintRects(const SwCursorShell &rCSh)
std::optional< OString > getLOKPayload(int nType, int nViewId) const
virtual void FillRects()=0
VclPtr< SwContentControlButton > m_pContentControlButton
bool m_bShowTextInputFieldOverlay
static MapMode * s_pMapMode
void HighlightInputField()
std::unique_ptr< sw::overlay::OverlayRangesOutline > m_pContentControlOverlay
void SetShowTextInputFieldOverlay(const bool bShow)
static void Get1PixelInLogic(const SwViewShell &rSh, tools::Long *pX=nullptr, tools::Long *pY=nullptr)
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.
const SwCursorShell * m_pCursorShell
void HighlightContentControl()
bool m_bShowContentControlOverlay
static tools::Long s_nPixPtX
virtual ~SwSelPaintRects()
static tools::Long s_nPixPtY
Represents the current text cursor of one opened edit window.
const SwShellCursor * GetPrev() const
const Point & GetEndPos() const
const SwShellCursor * GetNext() const
const SwPosition * m_pInitialPoint
const Point & GetSttPos() const
SwShellCursor * GetNext()
const Point & GetPtPos() const
SwShellCursor * GetPrev()
const Point & GetMkPos() const
SwShellTableCursor(const SwCursorShell &rCursorSh, const SwPosition &rPos)
virtual void FillRects() override
SwRect m_aEnd
Right edge of the selection end (bottom right cell).
SwRect m_aStart
Left edge of the selection start (top left cell).
virtual SwCursor * Create(SwPaM *pRing=nullptr) const override
virtual void SetMark() override
Unless this is called, the getter method of Mark will return Point.
virtual ~SwShellTableCursor() override
SwShellTableCursor * GetNext()
virtual bool IsAtValidPos(bool bPoint=true) const override
Return <true> if cursor can be set to this position.
bool Contains(const Point &rPt) const
const SwShellTableCursor * GetNext() const
virtual void SaveTableBoxContent(const SwPosition *pPos) override
const SwShellTableCursor * GetPrev() const
virtual void FillStartEnd(SwRect &rStart, SwRect &rEnd) const override
SwShellTableCursor * GetPrev()
virtual short MaxReplaceArived() override
vcl::Cursor m_aTextCursor
void SetDragCursor(bool bFlag=true)
const SwCursorShell * m_pCursorShell
sal_uInt16 m_nPageLastTime
For LibreOfficeKit only - remember what page we were at the last time.
void Create(SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
Marks a position in the document model.
std::vector< SwRect > SwRects