LibreOffice Module sw (master) 1
|
#include <viscrs.hxx>
Public Member Functions | |
SwVisibleCursor (const SwCursorShell *pCShell) | |
~SwVisibleCursor () | |
void | Show () |
void | Hide () |
bool | IsVisible () const |
void | SetDragCursor (bool bFlag=true) |
void | SetPosAndShow (SfxViewShell const *pViewShell) |
const vcl::Cursor & | GetTextCursor () const |
std::optional< OString > | getLOKPayload (int nType, int nViewId) const |
Private Attributes | |
const SwCursorShell * | m_pCursorShell |
vcl::Cursor | m_aTextCursor |
sal_uInt16 | m_nPageLastTime |
For LibreOfficeKit only - remember what page we were at the last time. More... | |
SwRect | m_aLastLOKRect |
bool | m_bIsVisible |
bool | m_bIsDragCursor |
Friends | |
void | InitCore () |
void | FinitCore () |
Definition at line 39 of file viscrs.hxx.
SwVisibleCursor::SwVisibleCursor | ( | const SwCursorShell * | pCShell | ) |
Definition at line 78 of file viscrs.cxx.
References SwViewShell::GetWin(), vcl::Cursor::IsVisible(), m_aTextCursor, m_bIsDragCursor, m_bIsVisible, vcl::Window::SetCursor(), and vcl::Cursor::SetWidth().
SwVisibleCursor::~SwVisibleCursor | ( | ) |
Definition at line 88 of file viscrs.cxx.
References SwViewShell::GetWin(), vcl::Cursor::Hide(), vcl::Cursor::IsVisible(), m_aTextCursor, m_bIsVisible, m_pCursorShell, and vcl::Window::SetCursor().
Definition at line 275 of file viscrs.cxx.
References SwContentAtPos::aFnd, SwPosition::GetContentIndex(), SwEditShell::GetCurAttr(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), SwTextNode::GetGrammarCheck(), SfxItemSet::GetItem(), SfxItemSet::GetItemState(), SwViewShell::GetLayout(), SwRootFrame::GetModelPositionForViewPoint(), SwPosition::GetNode(), SwPaM::GetPoint(), SfxShell::GetPool(), SwCursorShell::GetSelText(), SwViewShell::GetSfxViewShell(), SwNode::GetTextNode(), SwFormatINetFormat::GetValue(), SwViewShell::GetViewOptions(), SwTextNode::GetWrong(), SwDocShell::GetWrtShell(), SwView::GetWrtShell(), SwView::GetWrtShellPtr(), InetAttr, SwWrongList::InWrongWord(), comphelper::LibreOfficeKit::isActive(), SwNode::IsInProtectSect(), SwViewOption::IsOnlineSpell(), SwCursorShell::IsSelection(), SwTextNode::IsSymbolAt(), m_aLastLOKRect, m_pCursorShell, SfxLokHelper::makePayloadJSON(), SfxLokHelper::makeVisCursorInvalidation(), nType, SwContentAtPos::pAttr, SwRect::Pos(), RES_TXTATR_INETFMT(), SetOnlyText, SwRect::SSize(), SwContentAtPos::sStr, and tools::Rectangle::toString().
Referenced by SwWrtShell::getLOKPayload().
const vcl::Cursor & SwVisibleCursor::GetTextCursor | ( | ) | const |
Definition at line 350 of file viscrs.cxx.
References m_aTextCursor.
void SwVisibleCursor::Hide | ( | ) |
Definition at line 108 of file viscrs.cxx.
References vcl::Cursor::Hide(), vcl::Cursor::IsVisible(), m_aTextCursor, and m_bIsVisible.
Referenced by SwCursorShell::HideCursor(), SwCursorShell::HideCursors(), SwCursorShell::Paint(), SwCursorShell::SetCursor(), SwCursorShell::SetVisibleCursor(), SwCursorShell::UnSetVisibleCursor(), SwCursorShell::UpdateCursor(), and SwCursorShell::VisPortChgd().
|
inline |
Definition at line 61 of file viscrs.hxx.
Referenced by SwCursorShell::HideCursors(), SwCursorShell::Paint(), SwCursorShell::SetVisibleCursor(), and SwCursorShell::VisPortChgd().
|
inline |
Definition at line 62 of file viscrs.hxx.
Referenced by SwCursorShell::SetVisibleCursor(), and SwCursorShell::UnSetVisibleCursor().
void SwVisibleCursor::SetPosAndShow | ( | SfxViewShell const * | pViewShell | ) |
Definition at line 136 of file viscrs.cxx.
References SwScriptInfo::CountDirChg(), SfxViewShell::Current(), CURSOR_SHADOW, SwCursorShell::GetCursor_(), SwCursor::GetCursorBidiLevel(), SwViewShell::GetDrawView(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwViewShell::GetOut(), SwPaM::GetPoint(), SwView::GetPostItMgr(), SwViewShell::GetSfxViewShell(), vcl::Cursor::GetStyle(), SwNode::GetTextNode(), SwViewShell::GetViewOptions(), SwViewShell::GetWin(), Point::getX(), Point::getY(), SwRect::Height(), comphelper::LibreOfficeKit::isActive(), SwCursorShell::IsCursorReadonly(), SwCursorShell::IsOverwriteCursor(), SwFrame::IsRightToLeft(), SwCursorShell::IsSelection(), SwViewOption::IsSelectionInReadonly(), SwNode::IsTextNode(), SwRect::Left(), SfxViewShell::libreOfficeKitViewCallback(), SwCursorShell::m_aCharRect, SwCursorShell::m_aCursorHeight, m_aLastLOKRect, m_aTextCursor, m_bIsDragCursor, m_nPageLastTime, m_pCursorShell, SfxLokHelper::notifyOtherViewsUpdatePerViewId(), SfxLokHelper::notifyUpdatePerViewId(), SwRect::Pos(), pOut, SdrPaintView::SetAnimationEnabled(), vcl::Cursor::SetDirection(), vcl::Cursor::SetOrientation(), vcl::Cursor::SetPos(), vcl::Cursor::SetSize(), vcl::Cursor::SetStyle(), vcl::Cursor::SetWindow(), vcl::Cursor::Show(), SwRect::SSize(), SwAlignRect(), SwCalcPixStatics(), Size::Width(), and SwRect::Width().
Referenced by SwCursorShell::NotifyCursor(), and Show().
void SwVisibleCursor::Show | ( | ) |
Definition at line 96 of file viscrs.cxx.
References comphelper::LibreOfficeKit::isActive(), SwCursorShell::m_aCharRect, m_bIsVisible, m_pCursorShell, SwRect::Overlaps(), SetPosAndShow(), and SwViewShell::VisArea().
Referenced by SwCursorShell::EndAction(), SwCursorShell::Paint(), SwCursorShell::SetVisibleCursor(), SwCursorShell::ShowCursors(), SwCursorShell::UpdateCursor(), and SwCursorShell::VisPortChgd().
|
private |
Definition at line 49 of file viscrs.hxx.
Referenced by getLOKPayload(), and SetPosAndShow().
|
private |
Definition at line 45 of file viscrs.hxx.
Referenced by GetTextCursor(), Hide(), SetPosAndShow(), SwVisibleCursor(), and ~SwVisibleCursor().
|
private |
Definition at line 52 of file viscrs.hxx.
Referenced by SetPosAndShow(), and SwVisibleCursor().
|
private |
Definition at line 51 of file viscrs.hxx.
Referenced by Hide(), Show(), SwVisibleCursor(), and ~SwVisibleCursor().
|
private |
For LibreOfficeKit only - remember what page we were at the last time.
Definition at line 48 of file viscrs.hxx.
Referenced by SetPosAndShow().
|
private |
Definition at line 44 of file viscrs.hxx.
Referenced by getLOKPayload(), SetPosAndShow(), Show(), and ~SwVisibleCursor().