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 ~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
 

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 &, voidaPipetteLink
 
Link< ContourWindow &, voidaPipetteClickLink
 
Link< ContourWindow &, voidaWorkplaceClickLink
 
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 Resize () override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
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 ( weld::Dialog pDialog)

Definition at line 37 of file contwnd.cxx.

Member Function Documentation

const Color& ContourWindow::GetPipetteColor ( ) const
inline

Definition at line 54 of file contwnd.hxx.

References aPipetteColor.

Referenced by StatusColor::Paint().

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

Definition at line 60 of file contwnd.hxx.

References aWorkRect.

void ContourWindow::InitSdrModel ( )
overrideprivatevirtual

Reimplemented from GraphCtrl.

Definition at line 113 of file contwnd.cxx.

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

bool ContourWindow::IsClickValid ( ) const
inline

Definition at line 56 of file contwnd.hxx.

References bClickValid.

bool ContourWindow::IsContourChanged ( ) const

Definition at line 131 of file contwnd.cxx.

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

bool ContourWindow::MouseButtonDown ( const MouseEvent rMEvt)
overrideprivatevirtual
bool ContourWindow::MouseButtonUp ( const MouseEvent rMEvt)
overrideprivatevirtual
bool ContourWindow::MouseMove ( const MouseEvent rMEvt)
overrideprivatevirtual
void ContourWindow::Paint ( vcl::RenderContext rRenderContext,
const tools::Rectangle rRect 
)
overrideprivatevirtual
void ContourWindow::SdrObjCreated ( const SdrObject rObj)
overrideprivatevirtual

Reimplemented from GraphCtrl.

Definition at line 125 of file contwnd.cxx.

References GraphCtrl::pView.

void ContourWindow::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overrideprivatevirtual
void ContourWindow::SetPipetteClickHdl ( const Link< ContourWindow &, void > &  rLink)
inline

Definition at line 63 of file contwnd.hxx.

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

Definition at line 62 of file contwnd.hxx.

void ContourWindow::SetPipetteMode ( const bool  bPipette)
inline

Definition at line 53 of file contwnd.hxx.

void ContourWindow::SetPolyPolygon ( const tools::PolyPolygon rPolyPoly)
void ContourWindow::SetWorkplaceClickHdl ( const Link< ContourWindow &, void > &  rLink)
inline

Definition at line 64 of file contwnd.hxx.

void ContourWindow::SetWorkplaceMode ( const bool  bWorkplace)
inline

Definition at line 59 of file contwnd.hxx.

Member Data Documentation

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

Definition at line 32 of file contwnd.hxx.

Referenced by MouseButtonUp().

Color ContourWindow::aPipetteColor
private

Definition at line 29 of file contwnd.hxx.

Referenced by GetPipetteColor(), and MouseMove().

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

Definition at line 31 of file contwnd.hxx.

Referenced by MouseMove().

tools::PolyPolygon ContourWindow::aPolyPoly
private

Definition at line 28 of file contwnd.hxx.

Referenced by GetPolyPolygon(), and SetPolyPolygon().

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

Definition at line 33 of file contwnd.hxx.

Referenced by MouseButtonUp().

tools::Rectangle ContourWindow::aWorkRect
private

Definition at line 30 of file contwnd.hxx.

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

bool ContourWindow::bClickValid
private

Definition at line 36 of file contwnd.hxx.

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

bool ContourWindow::bPipetteMode
private

Definition at line 34 of file contwnd.hxx.

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

bool ContourWindow::bWorkplaceMode
private

Definition at line 35 of file contwnd.hxx.

Referenced by MouseButtonDown(), and MouseButtonUp().


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