|
LibreOffice Module svx (master) 1
|
#include <connctrl.hxx>
Public Member Functions | |
| SvxXConnectionPreview () | |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| virtual | ~SvxXConnectionPreview () override |
| virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
| virtual void | Resize () override |
| virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
| void | SetAttributes (const SfxItemSet &rInAttrs) |
| sal_uInt16 | GetLineDeltaCount () const |
| void | Construct () |
| void | SetView (const SdrView *pSdrView) |
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 | |
| SVX_DLLPRIVATE void | AdaptSize () |
| SVX_DLLPRIVATE void | SetMapMode (const MapMode &rNewMapMode) |
| SVX_DLLPRIVATE const MapMode & | GetMapMode () const |
Private Attributes | |
| MapMode | aNewMapMode |
| rtl::Reference< SdrEdgeObj > | pEdgeObj |
| rtl::Reference< SdrPage > | mxSdrPage |
| const SdrView * | pView |
Friends | |
| class | SvxConnectionPage |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
Definition at line 37 of file connctrl.hxx.
| SvxXConnectionPreview::SvxXConnectionPreview | ( | ) |
Definition at line 36 of file connctrl.cxx.
References SetMapMode().
|
overridevirtual |
Definition at line 50 of file connctrl.cxx.
|
private |
Definition at line 61 of file connctrl.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), SdrPaintView::GetFirstOutputDevice(), tools::Rectangle::GetHeight(), OutputDevice::GetMapMode(), GetMapMode(), MapMode::GetMapUnit(), MapMode::GetOrigin(), weld::CustomWidgetController::GetOutputSizePixel(), tools::Rectangle::GetWidth(), Size::Height(), tools::Rectangle::Left(), OutputDevice::LogicToLogic(), MOUSE_RIGHT, MouseButtonDown(), mxSdrPage, OutputDevice::PixelToLogic(), pView, Size::setHeight(), SetMapMode(), MapMode::SetMapUnit(), MapMode::SetOrigin(), MapMode::SetScaleX(), MapMode::SetScaleY(), Size::setWidth(), Point::setX(), Point::setY(), tools::Rectangle::Top(), and Size::Width().
Referenced by Construct(), and Resize().
| void SvxXConnectionPreview::Construct | ( | ) |
Definition at line 126 of file connctrl.cxx.
References AdaptSize(), SdrObject::Clone(), SdrObject::CloneSdrObject(), DBG_ASSERT, Default, Edge, SdrEdgeObj::GetConnectedNode(), SdrEdgeObj::GetConnection(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), SdrPaintView::getSdrModelFromSdrView(), i, mxSdrPage, nId, pEdgeObj, and pView.
| sal_uInt16 SvxXConnectionPreview::GetLineDeltaCount | ( | ) | const |
Definition at line 242 of file connctrl.cxx.
References SfxItemSet::Get(), SfxItemSet::GetItemState(), nCount, pEdgeObj, rSet, and SDRATTR_EDGELINEDELTACOUNT().
|
inlineprivate |
Definition at line 49 of file connctrl.hxx.
Referenced by AdaptSize(), MouseButtonDown(), and Paint().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 253 of file connctrl.cxx.
References Point::AdjustX(), Point::AdjustY(), Fraction, weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GetMapMode(), MapMode::GetOrigin(), weld::CustomWidgetController::GetOutputSizePixel(), MapMode::GetScaleX(), MapMode::GetScaleY(), Size::Height(), weld::CustomWidgetController::Invalidate(), MouseEvent::IsLeft(), MouseEvent::IsMod1(), MouseEvent::IsRight(), MouseEvent::IsShift(), OutputDevice::PixelToLogic(), SetMapMode(), MapMode::SetOrigin(), MapMode::SetScaleX(), MapMode::SetScaleY(), and Size::Width().
Referenced by AdaptSize().
|
overridevirtual |
Implements weld::CustomWidgetController.
Definition at line 194 of file connctrl.cxx.
References a, vcl::ALL, DBG_ASSERT, StyleSettings::GetFieldColor(), StyleSettings::GetHighContrastMode(), GetMapMode(), Application::GetSettings(), AllSettings::GetStyleSettings(), mxSdrPage, OUTPUT_DRAWMODE_COLOR, OUTPUT_DRAWMODE_CONTRAST, pObject, OutputDevice::Pop(), sdr::contact::ObjectContactOfObjListPainter::ProcessDisplay(), OutputDevice::Push(), sdr::contact::SdrObjectVector, OutputDevice::SetBackground(), OutputDevice::SetDrawMode(), and OutputDevice::SetMapMode().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 54 of file connctrl.cxx.
References AdaptSize(), and weld::CustomWidgetController::Invalidate().
| void SvxXConnectionPreview::SetAttributes | ( | const SfxItemSet & | rInAttrs | ) |
Definition at line 233 of file connctrl.cxx.
References weld::CustomWidgetController::Invalidate(), and pEdgeObj.
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 42 of file connctrl.cxx.
References weld::DrawingArea::get_ref_device(), Size::Height(), OutputDevice::LogicToPixel(), weld::Widget::set_size_request(), weld::CustomWidgetController::SetDrawingArea(), weld::CustomWidgetController::SetOutputSizePixel(), and Size::Width().
|
inlineprivate |
Definition at line 48 of file connctrl.hxx.
Referenced by AdaptSize(), MouseButtonDown(), and SvxXConnectionPreview().
|
inline |
Definition at line 63 of file connctrl.hxx.
References SvxConnectionPage::pView.
|
friend |
Definition at line 39 of file connctrl.hxx.
|
private |
Definition at line 42 of file connctrl.hxx.
|
private |
Definition at line 44 of file connctrl.hxx.
Referenced by AdaptSize(), Construct(), and Paint().
|
private |
Definition at line 43 of file connctrl.hxx.
Referenced by Construct(), GetLineDeltaCount(), and SetAttributes().
|
private |
Definition at line 45 of file connctrl.hxx.
Referenced by AdaptSize(), and Construct().