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:
Collaboration diagram for ContourWindow:

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 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 SetDragDataTransferrable (rtl::Reference< TransferDataContainer > &rTransferrable, 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 &, 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 34 of file contwnd.cxx.

References false.

Member Function Documentation

const Color& ContourWindow::GetPipetteColor ( ) const

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

Definition at line 60 of file contwnd.hxx.

References aWorkRect.

void ContourWindow::InitSdrModel ( )

Reimplemented from GraphCtrl.

Definition at line 110 of file contwnd.cxx.

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

bool ContourWindow::IsClickValid ( ) const

Definition at line 56 of file contwnd.hxx.

References bClickValid.

bool ContourWindow::IsContourChanged ( ) const

Definition at line 128 of file contwnd.cxx.

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

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

Reimplemented from GraphCtrl.

Definition at line 122 of file contwnd.cxx.

References GraphCtrl::pView.

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

Definition at line 63 of file contwnd.hxx.

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

Definition at line 62 of file contwnd.hxx.

void ContourWindow::SetPipetteMode ( const bool  bPipette)

Definition at line 53 of file contwnd.hxx.

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

Definition at line 64 of file contwnd.hxx.

void ContourWindow::SetWorkplaceMode ( const bool  bWorkplace)

Definition at line 59 of file contwnd.hxx.

Member Data Documentation

Link<ContourWindow&,void> ContourWindow::aPipetteClickLink

Definition at line 32 of file contwnd.hxx.

Referenced by MouseButtonUp().

Color ContourWindow::aPipetteColor

Definition at line 29 of file contwnd.hxx.

Referenced by GetPipetteColor(), and MouseMove().

Link<ContourWindow&,void> ContourWindow::aPipetteLink

Definition at line 31 of file contwnd.hxx.

Referenced by MouseMove().

tools::PolyPolygon ContourWindow::aPolyPoly

Definition at line 28 of file contwnd.hxx.

Referenced by GetPolyPolygon(), and SetPolyPolygon().

Link<ContourWindow&,void> ContourWindow::aWorkplaceClickLink

Definition at line 33 of file contwnd.hxx.

Referenced by MouseButtonUp().

tools::Rectangle ContourWindow::aWorkRect

Definition at line 30 of file contwnd.hxx.

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

bool ContourWindow::bClickValid

Definition at line 36 of file contwnd.hxx.

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

bool ContourWindow::bPipetteMode

Definition at line 34 of file contwnd.hxx.

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

bool ContourWindow::bWorkplaceMode

Definition at line 35 of file contwnd.hxx.

Referenced by MouseButtonDown(), and MouseButtonUp().

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