LibreOffice Module svx (master)
1
|
#include <contwnd.hxx>
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 bool | IsUpdateMode () |
![]() | |
virtual void | Resize () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual void | SdrObjChanged (const SdrObject &rObj) |
virtual void | MarkListHasChanged () |
void | GraphicToVD () |
SdrObjUserCall * | GetSdrUserCall () |
![]() | |
std::unique_ptr< SdrModel > | pModel |
std::unique_ptr< SdrView > | pView |
Definition at line 26 of file contwnd.hxx.
ContourWindow::ContourWindow | ( | weld::Dialog * | pDialog | ) |
Definition at line 34 of file contwnd.cxx.
|
inline |
Definition at line 54 of file contwnd.hxx.
References aPipetteColor.
Referenced by StatusColor::Paint().
const tools::PolyPolygon & ContourWindow::GetPolyPolygon | ( | ) |
Definition at line 87 of file contwnd.cxx.
References basegfx::utils::adaptiveSubdivideByAngle(), aPolyPoly, SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrPathObj::GetPathPoly(), and GraphCtrl::pModel.
Referenced by MouseButtonUp().
|
inline |
Definition at line 60 of file contwnd.hxx.
References aWorkRect.
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 110 of file contwnd.cxx.
References GraphCtrl::InitSdrModel(), GraphCtrl::pModel, GraphCtrl::pView, and TRANSCOL.
|
inline |
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.
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 139 of file contwnd.cxx.
References aWorkRect, bPipetteMode, bWorkplaceMode, weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), MouseEvent::GetPosPixel(), weld::CustomWidgetController::Invalidate(), GraphCtrl::MouseButtonDown(), Point, GraphCtrl::SetEditMode(), and SetPolyPolygon().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 180 of file contwnd.cxx.
References aPipetteClickLink, aWorkplaceClickLink, aWorkRect, bClickValid, tools::Rectangle::Bottom(), bPipetteMode, bWorkplaceMode, Link< class, class >::Call(), tools::PolyPolygon::Clip(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), GetPolyPolygon(), MouseEvent::GetPosPixel(), tools::Rectangle::Intersection(), weld::CustomWidgetController::Invalidate(), tools::Rectangle::IsInside(), tools::Rectangle::Justify(), tools::Rectangle::Left(), weld::CustomWidgetController::MouseButtonUp(), GraphCtrl::MouseButtonUp(), Point, GraphCtrl::pView, weld::CustomWidgetController::ReleaseMouse(), tools::Rectangle::Right(), tools::Rectangle::SetBottom(), SetPolyPolygon(), tools::Rectangle::SetRight(), and tools::Rectangle::Top().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 157 of file contwnd.cxx.
References aPipetteColor, aPipetteLink, bClickValid, bPipetteMode, Link< class, class >::Call(), weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), OutputDevice::GetPixel(), MouseEvent::GetPosPixel(), tools::Rectangle::IsInside(), Link< class, class >::IsSet(), weld::CustomWidgetController::MouseMove(), GraphCtrl::MouseMove(), Point, and weld::CustomWidgetController::SetPointer().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 226 of file contwnd.cxx.
References aWorkRect, tools::Rectangle::Bottom(), COL_BLACK, COL_LIGHTRED, COL_WHITE, Graphic::Draw(), OutputDevice::DrawRect(), OutputDevice::DrawTransparent(), GraphCtrl::GetGraphic(), GraphCtrl::GetGraphicSize(), SdrPaintWindow::GetTargetOutputDevice(), Graphic::GetType(), tools::PolyPolygon::Insert(), tools::Rectangle::Left(), Point, OutputDevice::Pop(), OutputDevice::Push(), GraphCtrl::pView, tools::Rectangle::Right(), rTarget, OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), SdrPaintWindow::SetOutputToWindow(), and tools::Rectangle::Top().
Reimplemented from GraphCtrl.
Definition at line 122 of file contwnd.cxx.
References GraphCtrl::pView.
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 262 of file contwnd.cxx.
References weld::DrawingArea::get_ref_device(), OutputDevice::LogicToPixel(), weld::Widget::set_size_request(), GraphCtrl::SetDrawingArea(), weld::CustomWidgetController::SetOutputSizePixel(), and GraphCtrl::SetSdrMode().
|
inline |
Definition at line 63 of file contwnd.hxx.
|
inline |
Definition at line 62 of file contwnd.hxx.
|
inline |
Definition at line 53 of file contwnd.hxx.
void ContourWindow::SetPolyPolygon | ( | const tools::PolyPolygon & | rPolyPoly | ) |
Definition at line 43 of file contwnd.cxx.
References aPolyPoly, basegfx::B2DPolyPolygon::append(), SdrObjList::ClearSdrObjList(), tools::PolyPolygon::Count(), i, SdrObjList::InsertObject(), OBJ_PATHFILL, GraphCtrl::pModel, GraphCtrl::pView, SdrObject::SetMergedItemSetAndBroadcast(), and TRANSCOL.
Referenced by MouseButtonDown(), and MouseButtonUp().
|
inline |
Definition at line 64 of file contwnd.hxx.
|
inline |
Definition at line 59 of file contwnd.hxx.
|
private |
Definition at line 32 of file contwnd.hxx.
Referenced by MouseButtonUp().
|
private |
Definition at line 29 of file contwnd.hxx.
Referenced by GetPipetteColor(), and MouseMove().
|
private |
Definition at line 31 of file contwnd.hxx.
Referenced by MouseMove().
|
private |
Definition at line 28 of file contwnd.hxx.
Referenced by GetPolyPolygon(), and SetPolyPolygon().
|
private |
Definition at line 33 of file contwnd.hxx.
Referenced by MouseButtonUp().
|
private |
Definition at line 30 of file contwnd.hxx.
Referenced by GetWorkRect(), MouseButtonDown(), MouseButtonUp(), and Paint().
|
private |
Definition at line 36 of file contwnd.hxx.
Referenced by IsClickValid(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 34 of file contwnd.hxx.
Referenced by MouseButtonDown(), MouseButtonUp(), and MouseMove().
|
private |
Definition at line 35 of file contwnd.hxx.
Referenced by MouseButtonDown(), and MouseButtonUp().