LibreOffice Module sw (master) 1
|
#include <SidebarTxtControl.hxx>
Public Member Functions | |
SidebarTextControl (sw::annotation::SwAnnotationWin &rSidebarWin, SwView &rDocView, SwPostItMgr &rPostItMgr) | |
virtual EditView * | GetEditView () const override |
virtual EditEngine * | GetEditEngine () const override |
virtual void | EditViewScrollStateChange () override |
void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
void | SetCursorLogicPosition (const Point &rPosition, bool bPoint, bool bClearMark) |
virtual bool | KeyInput (const KeyEvent &rKeyEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
void | SetMapMode (const MapMode &rNewMapMode) |
DECL_LINK (OnlineSpellCallback, SpellCallbackInfo &, void) | |
void | DrawForPage (OutputDevice *pDev, const Point &rPos) |
Public Member Functions inherited from WeldEditView | |
WeldEditView () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual int | GetSurroundingText (OUString &rSurrounding) override |
virtual bool | DeleteSurroundingText (const Selection &rRange) override |
void | SetText (const OUString &rStr) |
OUString | GetText () const |
virtual FactoryFunction | GetUITestFactory () const override |
void | SetModifyHdl (const Link< LinkParamNone *, void > &rLink) |
virtual EditView * | GetEditView () const |
virtual EditEngine * | GetEditEngine () const |
bool | HasSelection () const |
void | Delete () |
void | Cut () |
void | Copy () |
void | Paste () |
virtual | ~WeldEditView () override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual bool | CanFocus () const |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual void | Resize () override |
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const override |
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () override |
bool | GetAcceptsTab () const |
void | SetAcceptsTab (bool bAcceptsTab) |
Protected Member Functions | |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual OUString | RequestHelp (tools::Rectangle &rRect) override |
Protected Member Functions inherited from WeldEditView | |
virtual void | makeEditEngine () |
void | InitAccessible () |
void | DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
virtual void | EditViewInvalidate (const tools::Rectangle &rRect) override |
virtual void | EditViewSelectionChange () override |
virtual OutputDevice & | EditViewOutputDevice () const override |
virtual Point | EditViewPointerPosPixel () const override |
virtual void | EditViewInputContext (const InputContext &rInputContext) override |
virtual void | EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override |
virtual weld::Widget * | EditViewPopupParent () const override |
Private Member Functions | |
void | MakeVisible () |
Private Attributes | |
sw::annotation::SwAnnotationWin & | mrSidebarWin |
SwView & | mrDocView |
SwPostItMgr & | mrPostItMgr |
bool | mbMouseDownGainingFocus |
Additional Inherited Members | |
Protected Attributes inherited from WeldEditView | |
bool | m_bAcceptsTab |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | m_xDropTarget |
std::unique_ptr< EditEngine > | m_xEditEngine |
std::unique_ptr< EditView > | m_xEditView |
rtl::Reference< WeldEditAccessible > | m_xAccessible |
Definition at line 32 of file SidebarTxtControl.hxx.
sw::sidebarwindows::SidebarTextControl::SidebarTextControl | ( | sw::annotation::SwAnnotationWin & | rSidebarWin, |
SwView & | rDocView, | ||
SwPostItMgr & | rPostItMgr | ||
) |
Definition at line 63 of file SidebarTxtControl.cxx.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 418 of file SidebarTxtControl.cxx.
References WeldEditView::Command(), SfxDispatcher::ExecutePopup(), EditView::ExecuteSpellPopup(), CommandEvent::GetCommand(), GetEditView(), Size::getHeight(), CommandEvent::GetMousePosPixel(), CommandEvent::GetWheelData(), Size::getWidth(), SwView::HandleWheelCommands(), CommandEvent::IsMouseEvent(), sw::annotation::SwAnnotationWin::IsReadOnlyOrProtected(), sw::annotation::SwAnnotationWin::IsScrollbarVisible(), EditView::IsWrongSpelledWordAtPos(), LINK, mrDocView, mrSidebarWin, and pData.
sw::sidebarwindows::SidebarTextControl::DECL_LINK | ( | OnlineSpellCallback | , |
SpellCallbackInfo & | , | ||
void | |||
) |
void sw::sidebarwindows::SidebarTextControl::DrawForPage | ( | OutputDevice * | pDev, |
const Point & | rPos | ||
) |
Definition at line 207 of file SidebarTxtControl.cxx.
References SwPostItHelper::DELETED, OutputDevice::DrawLine(), sw::annotation::SwAnnotationWin::GetChangeColor(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), sw::annotation::SwAnnotationWin::GetOutlinerView(), Size::Height(), vcl::LINECOLOR, Point::Move(), mrSidebarWin, OutputDevice::PixelToLogic(), OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetLineColor(), and Size::Width().
|
overridevirtual |
Definition at line 202 of file SidebarTxtControl.cxx.
References mrSidebarWin, and sw::annotation::SwAnnotationWin::SetScrollbar().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 81 of file SidebarTxtControl.cxx.
References EditView::GetEditEngine(), OutlinerView::GetEditView(), sw::annotation::SwAnnotationWin::GetOutlinerView(), and mrSidebarWin.
Referenced by SetDrawingArea().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 73 of file SidebarTxtControl.cxx.
References OutlinerView::GetEditView(), sw::annotation::SwAnnotationWin::GetOutlinerView(), and mrSidebarWin.
Referenced by Command(), KeyInput(), MouseButtonDown(), RequestHelp(), and SetDrawingArea().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 138 of file SidebarTxtControl.cxx.
References WeldEditView::GetFocus(), vcl::Window::IsMouseOver(), mrSidebarWin, and sw::annotation::SwAnnotationWin::SetActiveSidebarWin().
|
overridevirtual |
HACK: need to switch off processing of Undo/Redo in Outliner
Reimplemented from WeldEditView.
Definition at line 285 of file SidebarTxtControl.cxx.
References EditEngine::DoesKeyChangeText(), SwDoc::dumpAsXml(), SfxViewFrame::GetBindings(), vcl::KeyCode::GetCode(), SwDocShell::GetDoc(), SwView::GetDocShell(), GetEditView(), vcl::KeyCode::GetFullCode(), KeyEvent::GetKeyCode(), sw::annotation::SwAnnotationWin::GetPostItTextHeight(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), SwWrtShell::InfoReadOnlyDialog(), SfxBindings::InvalidateAll(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), sw::annotation::SwAnnotationWin::IsReadOnlyOrProtected(), vcl::KeyCode::IsShift(), KEY_ESCAPE, KEY_F12, KEY_F5, KEY_INSERT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_Y, KEY_Z, SfxViewShell::KeyInput(), MakeVisible(), mrDocView, mrSidebarWin, EditView::PostKeyEvent(), sw::annotation::SwAnnotationWin::ResizeIfNecessary(), sw::annotation::SwAnnotationWin::SwitchToFieldPos(), sw::annotation::SwAnnotationWin::SwitchToPostIt(), sw::annotation::SwAnnotationWin::ToggleInsMode(), and sw::annotation::SwAnnotationWin::UpdateData().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 146 of file SidebarTxtControl.cxx.
References vcl::Window::IsMouseOver(), sw::annotation::SwAnnotationWin::LockView(), WeldEditView::LoseFocus(), mrSidebarWin, and sw::annotation::SwAnnotationWin::UpdateData().
|
private |
Definition at line 279 of file SidebarTxtControl.cxx.
References SwPostItMgr::MakeVisible(), mrPostItMgr, and mrSidebarWin.
Referenced by KeyInput(), and MouseButtonUp().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 353 of file SidebarTxtControl.cxx.
References SvtSecurityOptions::CtrlClickHyperlink, SfxViewFrame::GetBindings(), GetEditView(), SvxFieldItem::GetField(), MouseEvent::GetModifier(), MouseEvent::GetPosPixel(), SvxURLField::GetTargetFrame(), SvxURLField::GetURL(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), GrabFocus, SfxBindings::InvalidateAll(), SvtSecurityOptions::IsOptionSet(), KEY_MOD1, LoadURL(), mbMouseDownGainingFocus, WeldEditView::MouseButtonDown(), mrDocView, NONE, and OutputDevice::PixelToLogic().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 390 of file SidebarTxtControl.cxx.
References MakeVisible(), mbMouseDownGainingFocus, and WeldEditView::MouseButtonUp().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 403 of file SidebarTxtControl.cxx.
References MouseEvent::IsEnterWindow(), and WeldEditView::MouseMove().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 239 of file SidebarTxtControl.cxx.
References sw::annotation::SwAnnotationWin::ColorDark(), sw::annotation::SwAnnotationWin::ColorLight(), SwPostItHelper::DELETED, WeldEditView::DoPaint(), OutputDevice::DrawGradient(), OutputDevice::DrawLine(), sw::proofreadingiterator::get(), OutputDevice::GetAntialiasing(), sw::annotation::SwAnnotationWin::GetChangeColor(), StyleSettings::GetHighContrastMode(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), Size::Height(), sw::annotation::SwAnnotationWin::IsMouseOverSidebarWin(), mrSidebarWin, OutputDevice::PixelToLogic(), OutputDevice::SetAntialiasing(), OutputDevice::SetLineColor(), and Size::Width().
|
overrideprotectedvirtual |
Definition at line 160 of file SidebarTxtControl.cxx.
References SwContentAtPos::aFnd, SwPostItHelper::DELETED, sw::annotation::SwAnnotationWin::GetAnchorPos(), GetAppLangDateTimeString(), SwRangeRedline::GetAuthorString(), SwCursorShell::GetContentAtPos(), GetEditView(), SvxFieldItem::GetField(), sw::annotation::SwAnnotationWin::GetLayoutStatus(), SwRangeRedline::GetTimeStamp(), SvxURLField::GetURL(), SfxHelp::GetURLHelpText(), SwView::GetWrtShell(), SwPostItHelper::INSERTED, mrDocView, mrSidebarWin, OutputDevice::PixelToLogic(), SwContentAtPos::pRedl, Redline, SwResId(), and tools::Rectangle::TopLeft().
void sw::sidebarwindows::SidebarTextControl::SetCursorLogicPosition | ( | const Point & | rPosition, |
bool | bPoint, | ||
bool | bClearMark | ||
) |
Definition at line 132 of file SidebarTxtControl.cxx.
References WeldEditView::EditViewOutputDevice(), WeldEditView::m_xEditView, and OutputDevice::PixelToLogic().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 89 of file SidebarTxtControl.cxx.
References weld::DrawingArea::get_ref_device(), GetEditEngine(), GetEditView(), SwViewShell::getIDocumentDeviceAccess(), EditEngine::GetPaperSize(), IDocumentDeviceAccess::getReferenceDevice(), Application::GetSettings(), SwPostItMgr::GetSidebarWidth(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), SwView::GetWrtShell(), Size::Height(), WeldEditView::InitAccessible(), mrDocView, mrPostItMgr, OutputDevice::PixelToLogic(), weld::DrawingArea::set_cursor(), weld::Widget::set_size_request(), OutputDevice::SetBackground(), EditView::SetBackgroundColor(), weld::CustomWidgetController::SetDrawingArea(), EditView::setEditViewCallbacks(), OutputDevice::SetMapMode(), EditView::SetOutputArea(), EditEngine::SetPaperSize(), EditEngine::SetRefDevice(), and Size::Width().
|
inline |
Definition at line 71 of file SidebarTxtControl.hxx.
References OutputDevice::SetMapMode().
|
private |
Definition at line 38 of file SidebarTxtControl.hxx.
Referenced by MouseButtonDown(), and MouseButtonUp().
|
private |
Definition at line 36 of file SidebarTxtControl.hxx.
Referenced by Command(), KeyInput(), MouseButtonDown(), RequestHelp(), and SetDrawingArea().
|
private |
Definition at line 37 of file SidebarTxtControl.hxx.
Referenced by MakeVisible(), and SetDrawingArea().
|
private |
Definition at line 35 of file SidebarTxtControl.hxx.
Referenced by Command(), DrawForPage(), EditViewScrollStateChange(), GetEditEngine(), GetEditView(), GetFocus(), KeyInput(), LoseFocus(), MakeVisible(), Paint(), and RequestHelp().