LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ContourWindow Class Referencefinal

#include <contwnd.hxx>

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

Public Member Functions

 ContourWindow (weld::Dialog *pDialog)
 
void SetPolyPolygon (const tools::PolyPolygon &rPolyPoly)
 
const tools::PolyPolygonGetPolyPolygon ()
 
void SetPipetteMode (const bool bPipette)
 
const ColorGetPipetteColor () const
 
bool IsClickValid () const
 
bool IsContourChanged () const
 
void SetWorkplaceMode (const bool bWorkplace)
 
const tools::RectangleGetWorkRect () const
 
void SetPipetteHdl (const Link< ContourWindow &, void > &rLink)
 
void SetPipetteClickHdl (const Link< ContourWindow &, void > &rLink)
 
void SetWorkplaceClickHdl (const Link< ContourWindow &, void > &rLink)
 
- Public Member Functions inherited from GraphCtrl
 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 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
 
CustomWidgetControlleroperator= (CustomWidgetController const &)=default
 
CustomWidgetControlleroperator= (CustomWidgetController &&)=default
 

Private Member Functions

virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual void SdrObjCreated (const SdrObject &rObj) override
 
virtual void InitSdrModel () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 

Private Attributes

tools::PolyPolygon aPolyPoly
 
Color aPipetteColor
 
tools::Rectangle aWorkRect
 
Link< ContourWindow &, void > aPipetteLink
 
Link< ContourWindow &, void > aPipetteClickLink
 
Link< ContourWindow &, void > aWorkplaceClickLink
 
bool bPipetteMode
 
bool bWorkplaceMode
 
bool bClickValid
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::CustomWidgetController
static bool IsUpdateMode ()
 
- Protected Member Functions inherited from GraphCtrl
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 inherited from GraphCtrl
std::unique_ptr< SdrModelpModel
 
std::unique_ptr< SdrViewpView
 

Detailed Description

Definition at line 26 of file contwnd.hxx.

Constructor & Destructor Documentation

◆ ContourWindow()

ContourWindow::ContourWindow ( weld::Dialog pDialog)

Definition at line 34 of file contwnd.cxx.

Member Function Documentation

◆ GetPipetteColor()

const Color & ContourWindow::GetPipetteColor ( ) const
inline

Definition at line 54 of file contwnd.hxx.

References aPipetteColor.

Referenced by StatusColor::Paint().

◆ GetPolyPolygon()

const tools::PolyPolygon & ContourWindow::GetPolyPolygon ( )

◆ GetWorkRect()

const tools::Rectangle & ContourWindow::GetWorkRect ( ) const
inline

Definition at line 60 of file contwnd.hxx.

References aWorkRect.

◆ InitSdrModel()

void ContourWindow::InitSdrModel ( )
overrideprivatevirtual

Reimplemented from GraphCtrl.

Definition at line 110 of file contwnd.cxx.

References GraphCtrl::InitSdrModel(), GraphCtrl::pModel, SfxItemSet::Put(), GraphCtrl::pView, and TRANSCOL.

◆ IsClickValid()

bool ContourWindow::IsClickValid ( ) const
inline

Definition at line 56 of file contwnd.hxx.

References bClickValid.

◆ IsContourChanged()

bool ContourWindow::IsContourChanged ( ) const

Definition at line 128 of file contwnd.cxx.

References SdrObjList::GetObj(), SdrObjList::GetObjCount(), and GraphCtrl::pModel.

◆ MouseButtonDown()

bool ContourWindow::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ MouseButtonUp()

bool ContourWindow::MouseButtonUp ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ MouseMove()

bool ContourWindow::MouseMove ( const MouseEvent rMEvt)
overrideprivatevirtual

◆ Paint()

void ContourWindow::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual

◆ SdrObjCreated()

void ContourWindow::SdrObjCreated ( const SdrObject rObj)
overrideprivatevirtual

Reimplemented from GraphCtrl.

Definition at line 122 of file contwnd.cxx.

References GraphCtrl::pView.

◆ SetDrawingArea()

void ContourWindow::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprivatevirtual

◆ SetPipetteClickHdl()

void ContourWindow::SetPipetteClickHdl ( const Link< ContourWindow &, void > &  rLink)
inline

Definition at line 63 of file contwnd.hxx.

References aPipetteClickLink.

◆ SetPipetteHdl()

void ContourWindow::SetPipetteHdl ( const Link< ContourWindow &, void > &  rLink)
inline

Definition at line 62 of file contwnd.hxx.

References aPipetteLink.

◆ SetPipetteMode()

void ContourWindow::SetPipetteMode ( const bool  bPipette)
inline

Definition at line 53 of file contwnd.hxx.

References bPipetteMode.

◆ SetPolyPolygon()

void ContourWindow::SetPolyPolygon ( const tools::PolyPolygon rPolyPoly)

◆ SetWorkplaceClickHdl()

void ContourWindow::SetWorkplaceClickHdl ( const Link< ContourWindow &, void > &  rLink)
inline

Definition at line 64 of file contwnd.hxx.

References aWorkplaceClickLink.

◆ SetWorkplaceMode()

void ContourWindow::SetWorkplaceMode ( const bool  bWorkplace)
inline

Definition at line 59 of file contwnd.hxx.

References bWorkplaceMode.

Member Data Documentation

◆ aPipetteClickLink

Link<ContourWindow&,void> ContourWindow::aPipetteClickLink
private

Definition at line 32 of file contwnd.hxx.

Referenced by MouseButtonUp(), and SetPipetteClickHdl().

◆ aPipetteColor

Color ContourWindow::aPipetteColor
private

Definition at line 29 of file contwnd.hxx.

Referenced by GetPipetteColor(), and MouseMove().

◆ aPipetteLink

Link<ContourWindow&,void> ContourWindow::aPipetteLink
private

Definition at line 31 of file contwnd.hxx.

Referenced by MouseMove(), and SetPipetteHdl().

◆ aPolyPoly

tools::PolyPolygon ContourWindow::aPolyPoly
private

Definition at line 28 of file contwnd.hxx.

Referenced by GetPolyPolygon(), and SetPolyPolygon().

◆ aWorkplaceClickLink

Link<ContourWindow&,void> ContourWindow::aWorkplaceClickLink
private

Definition at line 33 of file contwnd.hxx.

Referenced by MouseButtonUp(), and SetWorkplaceClickHdl().

◆ aWorkRect

tools::Rectangle ContourWindow::aWorkRect
private

Definition at line 30 of file contwnd.hxx.

Referenced by GetWorkRect(), MouseButtonDown(), MouseButtonUp(), and Paint().

◆ bClickValid

bool ContourWindow::bClickValid
private

Definition at line 36 of file contwnd.hxx.

Referenced by IsClickValid(), MouseButtonUp(), and MouseMove().

◆ bPipetteMode

bool ContourWindow::bPipetteMode
private

Definition at line 34 of file contwnd.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), MouseMove(), and SetPipetteMode().

◆ bWorkplaceMode

bool ContourWindow::bWorkplaceMode
private

Definition at line 35 of file contwnd.hxx.

Referenced by MouseButtonDown(), MouseButtonUp(), and SetWorkplaceMode().


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