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 void GetFocus ()
 
virtual void LoseFocus ()
 
virtual void StyleUpdated ()
 
virtual bool Command (const CommandEvent &)
 
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)
 
weld::DrawingAreaGetDrawingArea () const
 
void Invalidate ()
 
void Invalidate (const tools::Rectangle &rRect)
 
virtual void Show ()
 
virtual void Hide ()
 
void GrabFocus ()
 
bool HasFocus () const
 
bool IsVisible () const
 
bool IsReallyVisible () const
 
bool IsEnabled () const
 
bool IsActive () const
 
int GetTextHeight () const
 
OUString GetAccessibleName () const
 
OUString GetAccessibleDescription () const
 
void CaptureMouse ()
 
bool IsMouseCaptured () 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 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_LINK (UpdateHdl, Timer *, void)
 

Private Attributes

Graphic aGraphic
 
ScopedVclPtrInstance< VirtualDevicexVD
 
Idle aUpdateIdle
 
Link< GraphCtrl *, voidaMousePosLink
 
Link< GraphCtrl *, voidaGraphSizeLink
 
Link< GraphCtrl *, voidaUpdateLink
 
MapMode const 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 ( weld::Dialog pDialog)
GraphCtrl::~GraphCtrl ( )
overridevirtual

Definition at line 78 of file graphctl.cxx.

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

Member Function Documentation

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

Reimplemented from weld::CustomWidgetController.

Definition at line 835 of file graphctl.cxx.

References mpAccContext, pModel, and pView.

GraphCtrl::DECL_LINK ( UpdateHdl  ,
Timer ,
void   
)
private
const Graphic& GraphCtrl::GetGraphic ( ) const
inline

Definition at line 101 of file graphctl.hxx.

Referenced by ContourWindow::Paint().

const Size& GraphCtrl::GetGraphicSize ( ) const
inline
const Point& GraphCtrl::GetMousePos ( ) const
inline

Definition at line 104 of file graphctl.hxx.

sal_uInt16 GraphCtrl::GetPolyEditMode ( ) const
inline

Definition at line 109 of file graphctl.hxx.

Point GraphCtrl::GetPositionInDialog ( ) const
SdrModel* GraphCtrl::GetSdrModel ( ) const
inline
SdrObjUserCall* GraphCtrl::GetSdrUserCall ( )
inlineprotected

Definition at line 92 of file graphctl.hxx.

Referenced by IMapWindow::CreateObj().

SdrView* GraphCtrl::GetSdrView ( ) const
inline
SdrObject * GraphCtrl::GetSelectedSdrObject ( ) const
void GraphCtrl::GraphicToVD ( )
protected
void GraphCtrl::InitSdrModel ( )
protectedvirtual
bool GraphCtrl::IsChanged ( ) const
inline

Definition at line 116 of file graphctl.hxx.

bool GraphCtrl::KeyInput ( const KeyEvent rKEvt)
overrideprotectedvirtual
void GraphCtrl::MarkListHasChanged ( )
protectedvirtual

Reimplemented in IMapWindow.

Definition at line 278 of file graphctl.cxx.

References QueueIdleUpdate().

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

bool GraphCtrl::MouseButtonDown ( const MouseEvent rMEvt)
overrideprotectedvirtual
bool GraphCtrl::MouseButtonUp ( const MouseEvent rMEvt)
overrideprotectedvirtual
bool GraphCtrl::MouseMove ( const MouseEvent rMEvt)
overrideprotectedvirtual
void GraphCtrl::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprotectedvirtual
void GraphCtrl::QueueIdleUpdate ( )
void GraphCtrl::Resize ( )
overrideprotectedvirtual
void GraphCtrl::SdrObjChanged ( const SdrObject rObj)
protectedvirtual

Reimplemented in IMapWindow.

Definition at line 268 of file graphctl.cxx.

References QueueIdleUpdate().

Referenced by GraphCtrlUserCall::Changed().

void GraphCtrl::SdrObjCreated ( const SdrObject rObj)
protectedvirtual

Reimplemented in IMapWindow, and ContourWindow.

Definition at line 273 of file graphctl.cxx.

References QueueIdleUpdate().

Referenced by GraphCtrlUserCall::Changed().

void GraphCtrl::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual
void GraphCtrl::SetEditMode ( const bool  bEditMode)

Definition at line 703 of file graphctl.cxx.

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

Referenced by ContourWindow::MouseButtonDown().

void GraphCtrl::SetGraphic ( const Graphic rGraphic,
bool  bNewModel = true 
)
void GraphCtrl::SetGraphSizeLink ( const Link< GraphCtrl *, void > &  rLink)
inline

Definition at line 120 of file graphctl.hxx.

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

Definition at line 118 of file graphctl.hxx.

void GraphCtrl::SetObjKind ( const SdrObjKind  eObjKind)

Definition at line 731 of file graphctl.cxx.

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

void GraphCtrl::SetPolyEditMode ( const sal_uInt16  nPolyEdit)

Definition at line 718 of file graphctl.cxx.

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

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

Definition at line 122 of file graphctl.hxx.

Friends And Related Function Documentation

friend class GraphCtrlUserCall
friend

Definition at line 49 of file graphctl.hxx.

Referenced by GraphCtrl().

friend class GraphCtrlView
friend

Definition at line 48 of file graphctl.hxx.

Referenced by InitSdrModel().

Member Data Documentation

Graphic GraphCtrl::aGraphic
private

Definition at line 51 of file graphctl.hxx.

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

Size GraphCtrl::aGraphSize
private

Definition at line 58 of file graphctl.hxx.

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

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

Definition at line 55 of file graphctl.hxx.

Referenced by SetGraphic().

MapMode const GraphCtrl::aMap100
private

Definition at line 57 of file graphctl.hxx.

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

Point GraphCtrl::aMousePos
private

Definition at line 59 of file graphctl.hxx.

Referenced by MouseMove().

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

Definition at line 54 of file graphctl.hxx.

Referenced by MouseMove().

Idle GraphCtrl::aUpdateIdle
private

Definition at line 53 of file graphctl.hxx.

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

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

Definition at line 56 of file graphctl.hxx.

bool GraphCtrl::bEditMode
private

Definition at line 63 of file graphctl.hxx.

Referenced by SetEditMode(), and SetObjKind().

SdrObjKind GraphCtrl::eObjKind
private

Definition at line 61 of file graphctl.hxx.

Referenced by SetEditMode(), and SetObjKind().

bool GraphCtrl::mbInIdleUpdate
private

Definition at line 65 of file graphctl.hxx.

Referenced by QueueIdleUpdate().

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

Definition at line 70 of file graphctl.hxx.

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

weld::Dialog* GraphCtrl::mpDialog
private

Definition at line 66 of file graphctl.hxx.

Referenced by GetPositionInDialog().

sal_uInt16 GraphCtrl::nPolyEdit
private

Definition at line 62 of file graphctl.hxx.

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

std::unique_ptr<SdrModel> GraphCtrl::pModel
protected
std::unique_ptr<GraphCtrlUserCall> GraphCtrl::pUserCall
private

Definition at line 60 of file graphctl.hxx.

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

std::unique_ptr<SdrView> GraphCtrl::pView
protected
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: