LibreOffice Module svx (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
GraphCtrl Class Reference

#include <graphctl.hxx>

Inheritance diagram for GraphCtrl:
[legend]
Collaboration diagram for GraphCtrl:
[legend]

Public Member Functions

 GraphCtrl (weld::Dialog *pDialog)
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~GraphCtrl () override
 
void SetGraphic (const Graphic &rGraphic, bool bNewModel=true)
 
const GraphicGetGraphic () const
 
const SizeGetGraphicSize () const
 
const PointGetMousePos () const
 
void SetEditMode (const bool bEditMode)
 
void SetPolyEditMode (const sal_uInt16 nPolyEdit)
 
sal_uInt16 GetPolyEditMode () const
 
void SetObjKind (const SdrObjKind eObjKind)
 
SdrModelGetSdrModel () const
 
SdrViewGetSdrView () const
 
SdrObjectGetSelectedSdrObject () const
 
bool IsChanged () const
 
void SetMousePosLink (const Link< GraphCtrl *, void > &rLink)
 
void SetGraphSizeLink (const Link< GraphCtrl *, void > &rLink)
 
void SetUpdateLink (const Link< GraphCtrl *, void > &rLink)
 
void QueueIdleUpdate ()
 
void SetSdrMode (bool b)
 
Point GetPositionInDialog () const
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
- 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::DrawingAreaGetDrawingArea () 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 OString &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
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Protected Member Functions

virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Resize () override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual void InitSdrModel ()
 
virtual void SdrObjCreated (const SdrObject &rObj)
 
virtual void SdrObjChanged (const SdrObject &rObj)
 
virtual void MarkListHasChanged ()
 
void GraphicToVD ()
 
SdrObjUserCallGetSdrUserCall ()
 

Protected Attributes

std::unique_ptr< SdrModelpModel
 
std::unique_ptr< SdrViewpView
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (UpdateHdl, Timer *, void)
 

Private Attributes

Graphic aGraphic
 
ScopedVclPtrInstance< VirtualDevicexVD
 
Idle aUpdateIdle
 
Link< GraphCtrl *, void > aMousePosLink
 
Link< GraphCtrl *, void > aGraphSizeLink
 
Link< GraphCtrl *, void > aUpdateLink
 
MapMode aMap100
 
Size aGraphSize
 
Point aMousePos
 
std::unique_ptr< GraphCtrlUserCallpUserCall
 
SdrObjKind eObjKind
 
sal_uInt16 nPolyEdit
 
bool bEditMode
 
bool mbSdrMode
 
bool mbInIdleUpdate
 
weld::DialogmpDialog
 
rtl::Reference< SvxGraphCtrlAccessibleContextmpAccContext
 

Friends

class GraphCtrlView
 
class GraphCtrlUserCall
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 

Detailed Description

Definition at line 46 of file graphctl.hxx.

Constructor & Destructor Documentation

◆ GraphCtrl()

GraphCtrl::GraphCtrl ( weld::Dialog pDialog)

◆ ~GraphCtrl()

GraphCtrl::~GraphCtrl ( )
overridevirtual

Definition at line 75 of file graphctl.cxx.

References aUpdateIdle, mpAccContext, pModel, pUserCall, pView, and Task::Stop().

Member Function Documentation

◆ CreateAccessible()

css::uno::Reference< css::accessibility::XAccessible > GraphCtrl::CreateAccessible ( )
overridevirtual

Reimplemented from weld::CustomWidgetController.

Definition at line 836 of file graphctl.cxx.

References mpAccContext, pModel, and pView.

◆ DECL_DLLPRIVATE_LINK()

GraphCtrl::DECL_DLLPRIVATE_LINK ( UpdateHdl  ,
Timer ,
void   
)
private

◆ GetGraphic()

const Graphic & GraphCtrl::GetGraphic ( ) const
inline

Definition at line 101 of file graphctl.hxx.

Referenced by ContourWindow::Paint().

◆ GetGraphicSize()

const Size & GraphCtrl::GetGraphicSize ( ) const
inline

◆ GetMousePos()

const Point & GraphCtrl::GetMousePos ( ) const
inline

Definition at line 104 of file graphctl.hxx.

References Point.

◆ GetPolyEditMode()

sal_uInt16 GraphCtrl::GetPolyEditMode ( ) const
inline

Definition at line 109 of file graphctl.hxx.

◆ GetPositionInDialog()

Point GraphCtrl::GetPositionInDialog ( ) const

◆ GetSdrModel()

SdrModel * GraphCtrl::GetSdrModel ( ) const
inline

◆ GetSdrUserCall()

SdrObjUserCall * GraphCtrl::GetSdrUserCall ( )
inlineprotected

Definition at line 92 of file graphctl.hxx.

Referenced by IMapWindow::CreateObj().

◆ GetSdrView()

SdrView * GraphCtrl::GetSdrView ( ) const
inline

◆ GetSelectedSdrObject()

SdrObject * GraphCtrl::GetSelectedSdrObject ( ) const

◆ GraphicToVD()

void GraphCtrl::GraphicToVD ( )
protected

◆ InitSdrModel()

void GraphCtrl::InitSdrModel ( )
protectedvirtual

◆ IsChanged()

bool GraphCtrl::IsChanged ( ) const
inline

Definition at line 116 of file graphctl.hxx.

◆ KeyInput()

bool GraphCtrl::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual

◆ MarkListHasChanged()

void GraphCtrl::MarkListHasChanged ( )
protectedvirtual

Reimplemented in IMapWindow.

Definition at line 279 of file graphctl.cxx.

References QueueIdleUpdate().

Referenced by GraphCtrlView::MarkListHasChanged(), and IMapWindow::MarkListHasChanged().

◆ MouseButtonDown()

bool GraphCtrl::MouseButtonDown ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ MouseButtonUp()

bool GraphCtrl::MouseButtonUp ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ MouseMove()

bool GraphCtrl::MouseMove ( const MouseEvent rMEvt)
overrideprotectedvirtual

◆ Paint()

void GraphCtrl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual

◆ QueueIdleUpdate()

void GraphCtrl::QueueIdleUpdate ( )

◆ Resize()

void GraphCtrl::Resize ( )
overrideprotectedvirtual

◆ SdrObjChanged()

void GraphCtrl::SdrObjChanged ( const SdrObject rObj)
protectedvirtual

Reimplemented in IMapWindow.

Definition at line 269 of file graphctl.cxx.

References QueueIdleUpdate().

Referenced by GraphCtrlUserCall::Changed().

◆ SdrObjCreated()

void GraphCtrl::SdrObjCreated ( const SdrObject rObj)
protectedvirtual

Reimplemented in ContourWindow, and IMapWindow.

Definition at line 274 of file graphctl.cxx.

References QueueIdleUpdate().

Referenced by GraphCtrlUserCall::Changed().

◆ SetDrawingArea()

void GraphCtrl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetEditMode()

void GraphCtrl::SetEditMode ( const bool  bEditMode)

Definition at line 704 of file graphctl.cxx.

References bEditMode, eObjKind, mbSdrMode, NONE, pView, and QueueIdleUpdate().

Referenced by ContourWindow::MouseButtonDown().

◆ SetGraphic()

void GraphCtrl::SetGraphic ( const Graphic rGraphic,
bool  bNewModel = true 
)

◆ SetGraphSizeLink()

void GraphCtrl::SetGraphSizeLink ( const Link< GraphCtrl *, void > &  rLink)
inline

Definition at line 120 of file graphctl.hxx.

◆ SetMousePosLink()

void GraphCtrl::SetMousePosLink ( const Link< GraphCtrl *, void > &  rLink)
inline

Definition at line 118 of file graphctl.hxx.

◆ SetObjKind()

void GraphCtrl::SetObjKind ( const SdrObjKind  eObjKind)

Definition at line 732 of file graphctl.cxx.

References bEditMode, eObjKind, mbSdrMode, NONE, pView, and QueueIdleUpdate().

◆ SetPolyEditMode()

void GraphCtrl::SetPolyEditMode ( const sal_uInt16  nPolyEdit)

Definition at line 719 of file graphctl.cxx.

References mbSdrMode, nPolyEdit, pView, and QueueIdleUpdate().

◆ SetSdrMode()

void GraphCtrl::SetSdrMode ( bool  b)

◆ SetUpdateLink()

void GraphCtrl::SetUpdateLink ( const Link< GraphCtrl *, void > &  rLink)
inline

Definition at line 122 of file graphctl.hxx.

Friends And Related Function Documentation

◆ GraphCtrlUserCall

friend class GraphCtrlUserCall
friend

Definition at line 49 of file graphctl.hxx.

Referenced by GraphCtrl().

◆ GraphCtrlView

friend class GraphCtrlView
friend

Definition at line 48 of file graphctl.hxx.

Referenced by InitSdrModel().

Member Data Documentation

◆ aGraphic

Graphic GraphCtrl::aGraphic
private

Definition at line 51 of file graphctl.hxx.

Referenced by GraphicToVD(), Paint(), and SetGraphic().

◆ aGraphSize

Size GraphCtrl::aGraphSize
private

Definition at line 58 of file graphctl.hxx.

Referenced by GraphicToVD(), InitSdrModel(), MouseButtonDown(), MouseMove(), Resize(), and SetGraphic().

◆ aGraphSizeLink

Link<GraphCtrl*,void> GraphCtrl::aGraphSizeLink
private

Definition at line 55 of file graphctl.hxx.

Referenced by SetGraphic().

◆ aMap100

MapMode GraphCtrl::aMap100
private

Definition at line 57 of file graphctl.hxx.

Referenced by InitSdrModel(), Resize(), SetGraphic(), and SetSdrMode().

◆ aMousePos

Point GraphCtrl::aMousePos
private

Definition at line 59 of file graphctl.hxx.

Referenced by MouseMove().

◆ aMousePosLink

Link<GraphCtrl*,void> GraphCtrl::aMousePosLink
private

Definition at line 54 of file graphctl.hxx.

Referenced by MouseMove().

◆ aUpdateIdle

Idle GraphCtrl::aUpdateIdle
private

Definition at line 53 of file graphctl.hxx.

Referenced by GraphCtrl(), QueueIdleUpdate(), and ~GraphCtrl().

◆ aUpdateLink

Link<GraphCtrl*,void> GraphCtrl::aUpdateLink
private

Definition at line 56 of file graphctl.hxx.

◆ bEditMode

bool GraphCtrl::bEditMode
private

Definition at line 63 of file graphctl.hxx.

Referenced by SetEditMode(), and SetObjKind().

◆ eObjKind

SdrObjKind GraphCtrl::eObjKind
private

Definition at line 61 of file graphctl.hxx.

Referenced by SetEditMode(), and SetObjKind().

◆ mbInIdleUpdate

bool GraphCtrl::mbInIdleUpdate
private

Definition at line 65 of file graphctl.hxx.

Referenced by QueueIdleUpdate().

◆ mbSdrMode

bool GraphCtrl::mbSdrMode
private

◆ mpAccContext

rtl::Reference<SvxGraphCtrlAccessibleContext> GraphCtrl::mpAccContext
private

Definition at line 70 of file graphctl.hxx.

Referenced by CreateAccessible(), InitSdrModel(), and ~GraphCtrl().

◆ mpDialog

weld::Dialog* GraphCtrl::mpDialog
private

Definition at line 66 of file graphctl.hxx.

Referenced by GetPositionInDialog().

◆ nPolyEdit

sal_uInt16 GraphCtrl::nPolyEdit
private

Definition at line 62 of file graphctl.hxx.

Referenced by MouseButtonDown(), MouseMove(), and SetPolyEditMode().

◆ pModel

std::unique_ptr<SdrModel> GraphCtrl::pModel
protected

◆ pUserCall

std::unique_ptr<GraphCtrlUserCall> GraphCtrl::pUserCall
private

Definition at line 60 of file graphctl.hxx.

Referenced by GraphCtrl(), MouseButtonDown(), and ~GraphCtrl().

◆ pView

std::unique_ptr<SdrView> GraphCtrl::pView
protected

◆ xVD

ScopedVclPtrInstance<VirtualDevice> GraphCtrl::xVD
private

Definition at line 52 of file graphctl.hxx.

Referenced by GraphicToVD(), Paint(), Resize(), SetGraphic(), and SetSdrMode().


The documentation for this class was generated from the following files: