LibreOffice Module svx (master) 1
|
#include <contwnd.hxx>
Public Member Functions | |
ContourWindow (weld::Dialog *pDialog) | |
void | SetPolyPolygon (const tools::PolyPolygon &rPolyPoly) |
const tools::PolyPolygon & | GetPolyPolygon () |
void | SetPipetteMode (const bool bPipette) |
const Color & | GetPipetteColor () const |
bool | IsClickValid () const |
bool | IsContourChanged () const |
void | SetWorkplaceMode (const bool bWorkplace) |
const tools::Rectangle & | GetWorkRect () 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 Graphic & | GetGraphic () const |
const Size & | GetGraphicSize () const |
const Point & | GetMousePos () const |
void | SetEditMode (const bool bEditMode) |
void | SetPolyEditMode (const sal_uInt16 nPolyEdit) |
sal_uInt16 | GetPolyEditMode () const |
void | SetObjKind (const SdrObjKind eObjKind) |
SdrModel * | GetSdrModel () const |
SdrView * | GetSdrView () const |
SdrObject * | GetSelectedSdrObject () 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::DrawingArea * | GetDrawingArea () 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 | |
CustomWidgetController & | operator= (CustomWidgetController const &)=default |
CustomWidgetController & | operator= (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 () |
SdrObjUserCall * | GetSdrUserCall () |
Protected Attributes inherited from GraphCtrl | |
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, SfxItemSet::Put(), 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(), 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< typename Arg, typename Ret >::Call(), tools::PolyPolygon::Clip(), tools::Rectangle::Contains(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), GetPolyPolygon(), MouseEvent::GetPosPixel(), tools::Rectangle::Intersection(), weld::CustomWidgetController::Invalidate(), tools::Rectangle::Left(), weld::CustomWidgetController::MouseButtonUp(), GraphCtrl::MouseButtonUp(), tools::Rectangle::Normalize(), GraphCtrl::pView, weld::CustomWidgetController::ReleaseMouse(), tools::Rectangle::Right(), tools::Rectangle::SetBottom(), SetPolyPolygon(), tools::Rectangle::SetRight(), tools::Rectangle::Top(), Point::X(), and Point::Y().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 157 of file contwnd.cxx.
References aPipetteColor, aPipetteLink, bClickValid, bPipetteMode, Link< typename Arg, typename Ret >::Call(), weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), OutputDevice::GetPixel(), MouseEvent::GetPosPixel(), Link< typename Arg, typename Ret >::IsSet(), weld::CustomWidgetController::MouseMove(), GraphCtrl::MouseMove(), 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(), vcl::FILLCOLOR, GraphCtrl::GetGraphic(), GraphCtrl::GetGraphicSize(), SdrPaintWindow::GetTargetOutputDevice(), Graphic::GetType(), tools::PolyPolygon::Insert(), tools::Rectangle::Left(), vcl::LINECOLOR, GraphCtrl::pView, tools::Rectangle::Right(), rTarget, SdrPaintWindow::SetOutputToWindow(), and tools::Rectangle::Top().
|
overrideprivatevirtual |
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(), Size::Height(), OutputDevice::LogicToPixel(), weld::Widget::set_size_request(), GraphCtrl::SetDrawingArea(), weld::CustomWidgetController::SetOutputSizePixel(), GraphCtrl::SetSdrMode(), and Size::Width().
|
inline |
Definition at line 63 of file contwnd.hxx.
References aPipetteClickLink.
|
inline |
Definition at line 62 of file contwnd.hxx.
References aPipetteLink.
|
inline |
Definition at line 53 of file contwnd.hxx.
References bPipetteMode.
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(), PathFill, GraphCtrl::pModel, SfxItemSet::Put(), GraphCtrl::pView, and TRANSCOL.
Referenced by MouseButtonDown(), and MouseButtonUp().
|
inline |
Definition at line 64 of file contwnd.hxx.
References aWorkplaceClickLink.
|
inline |
Definition at line 59 of file contwnd.hxx.
References bWorkplaceMode.
|
private |
Definition at line 32 of file contwnd.hxx.
Referenced by MouseButtonUp(), and SetPipetteClickHdl().
|
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(), and SetPipetteHdl().
|
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(), and SetWorkplaceClickHdl().
|
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(), MouseMove(), and SetPipetteMode().
|
private |
Definition at line 35 of file contwnd.hxx.
Referenced by MouseButtonDown(), MouseButtonUp(), and SetWorkplaceMode().