LibreOffice Module svx (master) 1
|
#include <weldeditview.hxx>
Public Member Functions | |
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) |
Public Member Functions inherited from weld::CustomWidgetController | |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
virtual void | Resize () |
virtual bool | MouseButtonDown (const MouseEvent &) |
virtual bool | MouseMove (const MouseEvent &) |
virtual bool | MouseButtonUp (const MouseEvent &) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual void | StyleUpdated () |
virtual bool | Command (const CommandEvent &) |
virtual bool | KeyInput (const KeyEvent &) |
virtual tools::Rectangle | GetFocusRect () |
virtual FactoryFunction | GetUITestFactory () const |
virtual OUString | RequestHelp (tools::Rectangle &) |
virtual OUString | GetHelpText () const |
Size const & | GetOutputSizePixel () const |
void | SetOutputSizePixel (const Size &rSize) |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
weld::DrawingArea * | GetDrawingArea () const |
void | Invalidate () |
void | Invalidate (const tools::Rectangle &rRect) |
virtual void | Show () |
virtual void | Hide () |
void | SetCursor (void *pData) |
void | GrabFocus () |
bool | HasFocus () const |
bool | HasChildFocus () const |
bool | IsVisible () const |
bool | IsReallyVisible () const |
bool | IsEnabled () const |
void | Enable () const |
void | Disable () const |
bool | IsActive () const |
int | GetTextHeight () const |
int | GetTextWidth (const OUString &rText) const |
OUString | GetAccessibleName () const |
OUString | GetAccessibleDescription () const |
void | CaptureMouse () |
bool | IsMouseCaptured () const |
Point | GetPointerPosPixel () const |
void | EnableRTL (bool bEnable) |
bool | IsRTLEnabled () const |
void | ReleaseMouse () |
void | SetPointer (PointerStyle ePointerStyle) |
void | SetHelpId (const OUString &rHelpId) |
void | SetAccessibleName (const OUString &rName) |
void | SetInputContext (const InputContext &rInputContext) |
void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
virtual int | GetSurroundingText (OUString &) |
virtual bool | DeleteSurroundingText (const Selection &) |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
virtual bool | StartDrag () |
void | set_size_request (int nWidth, int nHeight) |
void | queue_resize () |
CustomWidgetController () | |
virtual | ~CustomWidgetController () |
CustomWidgetController (CustomWidgetController const &)=default | |
CustomWidgetController (CustomWidgetController &&)=default | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Public Member Functions inherited from EditViewCallbacks | |
virtual | ~EditViewCallbacks () |
virtual void | EditViewInvalidate (const tools::Rectangle &rRect)=0 |
virtual void | EditViewSelectionChange ()=0 |
virtual OutputDevice & | EditViewOutputDevice () const=0 |
virtual weld::Widget * | EditViewPopupParent () const |
virtual Point | EditViewPointerPosPixel () const=0 |
virtual void | EditViewInputContext (const InputContext &rInputContext)=0 |
virtual void | EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth)=0 |
virtual void | EditViewScrollStateChange () |
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const=0 |
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
Protected Member Functions | |
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 |
Protected Attributes | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 22 of file weldeditview.hxx.
WeldEditView::WeldEditView | ( | ) |
Definition at line 103 of file weldeditview.cxx.
|
overridevirtual |
Definition at line 855 of file weldeditview.cxx.
References m_xAccessible.
|
virtual |
Definition at line 1658 of file weldeditview.cxx.
Referenced by MouseButtonDown().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 307 of file weldeditview.cxx.
References EditView::Command(), and GetEditView().
void WeldEditView::Copy | ( | ) |
Definition at line 91 of file weldeditview.cxx.
References GetEditView().
|
overrideprotectedvirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 846 of file weldeditview.cxx.
References m_xAccessible.
void WeldEditView::Cut | ( | ) |
Definition at line 85 of file weldeditview.cxx.
References GetEditView().
void WeldEditView::Delete | ( | ) |
Definition at line 79 of file weldeditview.cxx.
References GetEditView().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1612 of file weldeditview.cxx.
References EditView::DeleteSurroundingText(), and GetEditView().
|
protected |
Definition at line 167 of file weldeditview.cxx.
References vcl::ALL, vcl::unotools::b2DRectangleFromRectangle(), drawinglayer::processor2d::createProcessor2DFromOutputDevice(), vcl::Cursor::DrawToDevice(), GetEditView(), SvtOptionsDrawinglayer::getHilightColor(), sdr::overlay::OverlaySelection::getOverlayObjectPrimitive2DSequence(), OutputDevice::GetViewTransformation(), weld::CustomWidgetController::HasFocus(), Size::Height(), comphelper::LibreOfficeKit::isActive(), LONG_MAX, OutputDevice::PixelToLogic(), OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetClipRegion(), drawinglayer::geometry::ViewInformation2D::setViewport(), drawinglayer::geometry::ViewInformation2D::setViewTransformation(), sdr::overlay::Transparent, Size::Width(), and xProcessor.
Referenced by Paint().
|
inlineoverrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 104 of file weldeditview.hxx.
References EditViewCallbacks::EditViewOutputDevice(), OutputDevice::LogicToPixel(), weld::CustomWidgetController::SetCursorRect(), and Width.
|
inlineoverrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 99 of file weldeditview.hxx.
References weld::CustomWidgetController::SetInputContext().
|
inlineoverrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 88 of file weldeditview.hxx.
References weld::CustomWidgetController::Invalidate().
|
inlineoverrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 92 of file weldeditview.hxx.
References weld::DrawingArea::get_ref_device(), and weld::CustomWidgetController::GetDrawingArea().
|
overrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 315 of file weldeditview.cxx.
References weld::DrawingArea::get_pointer_position(), and weld::CustomWidgetController::GetDrawingArea().
|
inlineoverrideprotectedvirtual |
Reimplemented from EditViewCallbacks.
Definition at line 111 of file weldeditview.hxx.
References weld::CustomWidgetController::GetDrawingArea().
|
inlineoverrideprotectedvirtual |
Implements EditViewCallbacks.
Definition at line 90 of file weldeditview.hxx.
References weld::CustomWidgetController::Invalidate().
|
inline |
Definition at line 81 of file weldeditview.hxx.
Referenced by KeyInput().
|
overridevirtual |
Implements EditViewCallbacks.
Definition at line 1667 of file weldeditview.cxx.
References weld::CustomWidgetController::GetClipboard().
|
overridevirtual |
Reimplemented from EditViewCallbacks.
Definition at line 1660 of file weldeditview.cxx.
References weld::CustomWidgetController::GetDropTarget(), and m_xDropTarget.
|
virtual |
Definition at line 71 of file weldeditview.cxx.
References m_xEditEngine.
Referenced by GetText(), InitAccessible(), KeyInput(), Resize(), SetModifyHdl(), and SetText().
|
virtual |
Definition at line 69 of file weldeditview.cxx.
References m_xEditView.
Referenced by Command(), Copy(), Cut(), Delete(), DeleteSurroundingText(), DoPaint(), GetFocus(), GetSurroundingText(), HasSelection(), InitAccessible(), KeyInput(), MouseButtonDown(), MouseButtonUp(), MouseMove(), Paste(), and Resize().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1620 of file weldeditview.cxx.
References GetEditView(), weld::CustomWidgetController::GetFocus(), weld::CustomWidgetController::Invalidate(), m_xAccessible, accessibility::AccessibleTextHelper::SetFocus(), and EditView::ShowCursor().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1603 of file weldeditview.cxx.
References GetEditView(), EditView::GetSurroundingText(), EditView::GetSurroundingTextSelection(), and Selection::Min().
OUString WeldEditView::GetText | ( | ) | const |
Definition at line 62 of file weldeditview.cxx.
References GetEditEngine(), and EditEngine::GetText().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1703 of file weldeditview.cxx.
bool WeldEditView::HasSelection | ( | ) | const |
Definition at line 73 of file weldeditview.cxx.
References GetEditView(), and EditView::HasSelection().
|
protected |
Definition at line 1596 of file weldeditview.cxx.
References GetEditEngine(), GetEditView(), and m_xAccessible.
Referenced by SetDrawingArea().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 274 of file weldeditview.cxx.
References GetAcceptsTab(), vcl::KeyCode::GetCode(), GetEditEngine(), GetEditView(), KeyEvent::GetKeyCode(), EditEngine::GetParagraphCount(), EditEngine::GetTextLen(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), KEY_A, KEY_TAB, EditView::PostKeyEvent(), and EditView::SetSelection().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1642 of file weldeditview.cxx.
References weld::CustomWidgetController::Invalidate(), weld::CustomWidgetController::LoseFocus(), m_xAccessible, and accessibility::AccessibleTextHelper::SetFocus().
|
protectedvirtual |
Reimplemented in svx::ClassificationEditView.
Definition at line 109 of file weldeditview.cxx.
References EditEngine::CreatePool(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetFontHeight(), Application::GetSettings(), m_xEditEngine, and PITCH_DONTKNOW.
Referenced by SetDrawingArea().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 254 of file weldeditview.cxx.
References CanFocus(), weld::CustomWidgetController::CaptureMouse(), GetEditView(), weld::CustomWidgetController::GrabFocus(), weld::CustomWidgetController::HasFocus(), weld::CustomWidgetController::IsMouseCaptured(), and EditView::MouseButtonDown().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 266 of file weldeditview.cxx.
References GetEditView(), weld::CustomWidgetController::IsMouseCaptured(), EditView::MouseButtonUp(), and weld::CustomWidgetController::ReleaseMouse().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 248 of file weldeditview.cxx.
References GetEditView(), and EditView::MouseMove().
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 162 of file weldeditview.cxx.
References DoPaint().
void WeldEditView::Paste | ( | ) |
Definition at line 97 of file weldeditview.cxx.
References GetEditView().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 135 of file weldeditview.cxx.
References EditViewCallbacks::EditViewScrollStateChange(), weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GetEditEngine(), GetEditView(), weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), OutputDevice::PixelToLogic(), weld::CustomWidgetController::Resize(), EditEngine::SetPaperSize(), tools::Rectangle::SetSize(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
|
inline |
Definition at line 83 of file weldeditview.hxx.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 1549 of file weldeditview.cxx.
References weld::CustomWidgetController::EnableRTL(), weld::DrawingArea::get_ref_device(), weld::Widget::get_size_request(), Application::GetSettings(), AllSettings::GetStyleSettings(), StyleSettings::GetWindowColor(), Size::Height(), InitAccessible(), m_xEditEngine, m_xEditView, makeEditEngine(), OutputDevice::PixelToLogic(), weld::DrawingArea::set_cursor(), weld::Widget::set_size_request(), OutputDevice::SetBackground(), weld::CustomWidgetController::SetDrawingArea(), Size::setHeight(), OutputDevice::SetMapMode(), weld::CustomWidgetController::SetOutputSizePixel(), Size::setWidth(), and Size::Width().
void WeldEditView::SetModifyHdl | ( | const Link< LinkParamNone *, void > & | rLink | ) |
Definition at line 64 of file weldeditview.cxx.
References GetEditEngine(), and EditEngine::SetModifyHdl().
void WeldEditView::SetText | ( | const OUString & | rStr | ) |
Definition at line 60 of file weldeditview.cxx.
References GetEditEngine(), and EditEngine::SetText().
|
protected |
Definition at line 51 of file weldeditview.hxx.
|
protected |
Definition at line 56 of file weldeditview.hxx.
Referenced by CreateAccessible(), GetFocus(), InitAccessible(), LoseFocus(), and ~WeldEditView().
|
protected |
Definition at line 53 of file weldeditview.hxx.
Referenced by GetDropTarget().
|
protected |
Definition at line 54 of file weldeditview.hxx.
Referenced by svx::ClassificationEditView::getEditEngine(), GetEditEngine(), svx::ClassificationEditView::InvertSelectionWeight(), makeEditEngine(), svx::ClassificationEditView::makeEditEngine(), and SetDrawingArea().
|
protected |
Definition at line 55 of file weldeditview.hxx.
Referenced by svx::ClassificationEditView::getEditView(), GetEditView(), svx::ClassificationEditView::InsertField(), svx::ClassificationEditView::InvertSelectionWeight(), and SetDrawingArea().