LibreOffice Module sw (master) 1
|
#include <unotools.hxx>
Public Member Functions | |
SwOneExampleFrame (sal_uInt32 nStyleFlags, const Link< SwOneExampleFrame &, void > *pInitializedLink, const OUString *pURL=nullptr) | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual | ~SwOneExampleFrame () override |
css::uno::Reference< css::frame::XModel > & | GetModel () |
css::uno::Reference< css::text::XTextCursor > & | GetTextCursor () |
void | ClearDocument () |
bool | IsInitialized () const |
bool | CreatePopup (const Point &rPt) |
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 |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (TimeoutHdl, Timer *, void) | |
void | PopupHdl (std::u16string_view rId) |
SAL_DLLPRIVATE void | CreateControl () |
SAL_DLLPRIVATE void | DisposeControl () |
Private Attributes | |
ScopedVclPtr< VirtualDevice > | m_xVirDev |
css::uno::Reference< css::frame::XModel > | m_xModel |
css::uno::Reference< css::frame::XController > | m_xController |
css::uno::Reference< css::text::XTextCursor > | m_xCursor |
Idle | m_aLoadedIdle |
Link< SwOneExampleFrame &, void > | m_aInitializedLink |
OUString | m_sArgumentURL |
SwView * | m_pModuleView |
sal_uInt32 | m_nStyleFlags |
bool | m_bIsInitialized |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
static bool | IsUpdateMode () |
Definition at line 43 of file unotools.hxx.
SwOneExampleFrame::SwOneExampleFrame | ( | sal_uInt32 | nStyleFlags, |
const Link< SwOneExampleFrame &, void > * | pInitializedLink, | ||
const OUString * | pURL = nullptr |
||
) |
Definition at line 90 of file unotools.cxx.
References LINK, m_aInitializedLink, m_aLoadedIdle, m_sArgumentURL, Timer::SetInvokeHandler(), and Task::SetPriority().
|
overridevirtual |
Definition at line 171 of file unotools.cxx.
References DisposeControl().
void SwOneExampleFrame::ClearDocument | ( | ) |
Definition at line 427 of file unotools.cxx.
References SwDoc::ClearDoc(), SwCursorShell::ClearMark(), SwCursorShell::ClearUpCursors(), SwEditShell::EndAllAction(), ExampleFrame, SwDoc::GetEditShell(), Task::IsActive(), SwCursorShell::KillPams(), SwViewShell::LockPaint(), m_aLoadedIdle, m_xCursor, Idle::Start(), SwEditShell::StartAllAction(), and SwViewShell::UnlockPaint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 119 of file unotools.cxx.
References CreatePopup(), CommandEvent::GetCommand(), CommandEvent::GetMousePosPixel(), and m_xController.
|
private |
Definition at line 176 of file unotools.cxx.
References args, cFactory, comphelper::InitPropertySequence(), m_aLoadedIdle, m_sArgumentURL, m_xModel, and Idle::Start().
Referenced by SetDrawingArea().
bool SwOneExampleFrame::CreatePopup | ( | const Point & | rPt | ) |
Definition at line 458 of file unotools.cxx.
References Application::CreateBuilder(), EX_SHOW_ONLINE_LAYOUT, unicode::formatPercent(), weld::CustomWidgetController::GetDrawingArea(), Application::GetSettings(), m_nStyleFlags, m_xController, PopupHdl(), and UNO_NAME_ZOOM_VALUE.
Referenced by Command().
|
private |
|
private |
Definition at line 197 of file unotools.cxx.
References m_aLoadedIdle, m_xController, m_xCursor, m_xModel, and Task::Stop().
Referenced by ~SwOneExampleFrame().
|
inline |
Definition at line 76 of file unotools.hxx.
References m_xModel.
|
inline |
Definition at line 77 of file unotools.hxx.
|
inline |
Definition at line 81 of file unotools.hxx.
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 136 of file unotools.cxx.
References vcl::ALL, ASPECT_CONTENT, SfxObjectShell::DoDraw(), OutputDevice::DrawOutDev(), VclPtr< class reference_type >::get(), SwDoc::GetDocShell(), tools::Rectangle::GetHeight(), weld::CustomWidgetController::GetOutputSizePixel(), tools::Rectangle::GetSize(), tools::Rectangle::GetWidth(), m_xController, m_xCursor, m_xVirDev, SwDocShell::SetVisArea(), SW_MOD, tools::Rectangle::TopLeft(), and UNO_NAME_ZOOM_VALUE.
|
private |
Definition at line 488 of file unotools.cxx.
References weld::CustomWidgetController::Invalidate(), m_xController, o3tl::starts_with(), o3tl::toInt32(), u, UNO_NAME_ZOOM_TYPE, and UNO_NAME_ZOOM_VALUE.
Referenced by CreatePopup().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 109 of file unotools.cxx.
References VclPtr< class reference_type >::Create(), CreateControl(), Size::Height(), m_xVirDev, weld::Widget::set_size_request(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
private |
Definition at line 51 of file unotools.hxx.
Referenced by SwOneExampleFrame().
|
private |
Definition at line 50 of file unotools.hxx.
Referenced by ClearDocument(), CreateControl(), DisposeControl(), and SwOneExampleFrame().
|
private |
Definition at line 59 of file unotools.hxx.
|
private |
Definition at line 57 of file unotools.hxx.
Referenced by CreatePopup().
|
private |
Definition at line 55 of file unotools.hxx.
|
private |
Definition at line 53 of file unotools.hxx.
Referenced by CreateControl(), and SwOneExampleFrame().
|
private |
Definition at line 47 of file unotools.hxx.
Referenced by Command(), CreatePopup(), DisposeControl(), Paint(), and PopupHdl().
|
private |
Definition at line 48 of file unotools.hxx.
Referenced by ClearDocument(), DisposeControl(), and Paint().
|
private |
Definition at line 46 of file unotools.hxx.
Referenced by CreateControl(), and DisposeControl().
|
private |
Definition at line 45 of file unotools.hxx.
Referenced by Paint(), and SetDrawingArea().