LibreOffice Module svx (master) 1
|
#include <imapwnd.hxx>
Public Member Functions | |
IMapWindow (const css::uno::Reference< css::frame::XFrame > &rxDocumentFrame, weld::Dialog *pDialog) | |
virtual | ~IMapWindow () override |
sal_Int8 | AcceptDrop (const AcceptDropEvent &rEvt) |
sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) |
void | ReplaceActualIMapInfo (const NotifyInfo &rNewInfo) |
void | SetImageMap (const ImageMap &rImageMap) |
const ImageMap & | GetImageMap () |
void | SetCurrentObjState (bool bActive) |
void | DoMacroAssign () |
void | DoPropertyDialog () |
void | SetInfoLink (const Link< IMapWindow &, void > &rLink) |
void | SetTargetList (const TargetList &rTargetList) |
const NotifyInfo & | GetInfo () const |
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 | |
void | MenuSelectHdl (const OUString &rId) |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual OUString | RequestHelp (tools::Rectangle &rHelpArea) override |
virtual void | SdrObjCreated (const SdrObject &rObj) override |
virtual void | SdrObjChanged (const SdrObject &rObj) override |
virtual void | MarkListHasChanged () override |
virtual void | InitSdrModel () override |
void | ReplaceImageMap (const ImageMap &rNewImageMap) |
rtl::Reference< SdrObject > | CreateObj (const IMapObject *pIMapObj) |
SdrObject * | GetHitSdrObj (const Point &rPosPixel) const |
void | UpdateInfo (bool bNewObj) |
Static Private Member Functions | |
static IMapObject * | GetIMapObj (const SdrObject *pSdrObj) |
Private Attributes | |
NotifyInfo | aInfo |
ImageMap | aIMap |
TargetList | aTargetList |
Link< IMapWindow &, void > | aInfoLink |
rtl::Reference< SfxItemPool > | pIMapPool |
SfxItemInfo | maItemInfos [1] = {} |
css::uno::Reference< css::frame::XFrame > | mxDocumentFrame |
std::unique_ptr< IMapDropTargetHelper > | mxDropTargetHelper |
std::unique_ptr< weld::Menu > | mxPopupMenu |
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 81 of file imapwnd.hxx.
IMapWindow::IMapWindow | ( | const css::uno::Reference< css::frame::XFrame > & | rxDocumentFrame, |
weld::Dialog * | pDialog | ||
) |
Definition at line 54 of file imapwnd.cxx.
References maItemInfos, and pIMapPool.
|
overridevirtual |
Definition at line 63 of file imapwnd.cxx.
sal_Int8 IMapWindow::AcceptDrop | ( | const AcceptDropEvent & | rEvt | ) |
Definition at line 533 of file imapwnd.cxx.
References DND_ACTION_NONE, GetHitSdrObj(), AcceptDropEvent::maPosPixel, and AcceptDropEvent::mnAction.
Referenced by IMapDropTargetHelper::AcceptDrop().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 473 of file imapwnd.cxx.
References Application::CreateBuilder(), CommandEvent::GetCommand(), weld::CustomWidgetController::GetDrawingArea(), GetIMapObj(), SdrMarkList::GetMarkCount(), CommandEvent::GetMousePosPixel(), GraphCtrl::GetSelectedSdrObject(), weld::CustomWidgetController::IsActive(), MenuSelectHdl(), mxPopupMenu, GraphCtrl::pModel, and GraphCtrl::pView.
|
private |
Definition at line 173 of file imapwnd.cxx.
References basegfx::B2DPolygon::append(), tools::Polygon::Clip(), COL_BLACK(), COL_RED(), Full, tools::Polygon::getB2DPolygon(), IMapCircleObject::GetCenter(), IMapPolygonObject::GetExtraEllipse(), GraphCtrl::GetGraphicSize(), IMapPolygonObject::GetPolygon(), IMapCircleObject::GetRadius(), IMapRectangleObject::GetRectangle(), GraphCtrl::GetSdrUserCall(), IMapObject::GetType(), IMapPolygonObject::HasExtraEllipse(), tools::Rectangle::Intersection(), IMapObject::IsActive(), GraphCtrl::pModel, Polygon, SfxItemSet::Put(), and TRANSCOL.
Referenced by ReplaceImageMap().
void IMapWindow::DoMacroAssign | ( | ) |
Definition at line 647 of file imapwnd.cxx.
References SfxEventNamesItem::AddEvent(), SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateEventConfigDialog(), SfxItemSet::Get(), weld::CustomWidgetController::GetDrawingArea(), GetIMapObj(), IMapObject::GetMacroTable(), GraphCtrl::GetSelectedSdrObject(), mxDocumentFrame, pIMapPool, GraphCtrl::pModel, SfxItemSet::Put(), RET_OK, SvxMacroItem::SetMacroTable(), IMapObject::SetMacroTable(), and UpdateInfo().
Referenced by MenuSelectHdl().
void IMapWindow::DoPropertyDialog | ( | ) |
Definition at line 679 of file imapwnd.cxx.
References aTargetList, SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateURLDialog(), DBG_ASSERT, IMapObject::GetAltText(), IMapObject::GetDesc(), weld::CustomWidgetController::GetDrawingArea(), GetIMapObj(), INetURLObject::GetMainURL(), IMapObject::GetName(), INetURLObject::GetProtocol(), GraphCtrl::GetSelectedSdrObject(), IMapObject::GetTarget(), IMapObject::GetURL(), INetURLObject::NONE, GraphCtrl::pModel, RET_OK, IMapObject::SetAltText(), IMapObject::SetDesc(), IMapObject::SetName(), IMapObject::SetTarget(), IMapObject::SetURL(), and UpdateInfo().
Referenced by MenuSelectHdl().
sal_Int8 IMapWindow::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 538 of file imapwnd.cxx.
References DND_ACTION_NONE, INetBookmark::GetDescription(), GetHitSdrObj(), GetIMapObj(), TransferableDataHelper::GetINetBookmark(), INetBookmark::GetURL(), ExecuteDropEvent::maDropEvent, ExecuteDropEvent::maPosPixel, ExecuteDropEvent::mnAction, mxDropTargetHelper, GraphCtrl::pModel, GraphCtrl::pView, IMapObject::SetAltText(), IMapObject::SetURL(), and UpdateInfo().
Referenced by IMapDropTargetHelper::ExecuteDrop().
Definition at line 428 of file imapwnd.cxx.
References weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), GetIMapObj(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), i, IMapObject::IsHit(), OutputDevice::PixelToLogic(), and GraphCtrl::pModel.
Referenced by AcceptDrop(), and ExecuteDrop().
const ImageMap & IMapWindow::GetImageMap | ( | ) |
Definition at line 139 of file imapwnd.cxx.
References aIMap, ImageMap::ClearImageMap(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), IMapUserData::GetObject(), SdrObject::GetUserData(), i, ImageMap::InsertIMapObject(), nCount, and GraphCtrl::pModel.
|
staticprivate |
Definition at line 458 of file imapwnd.cxx.
References IMapUserData::GetObject(), and SdrObject::GetUserData().
Referenced by Command(), DoMacroAssign(), DoPropertyDialog(), ExecuteDrop(), GetHitSdrObj(), ReplaceActualIMapInfo(), RequestHelp(), SetCurrentObjState(), and UpdateInfo().
|
inline |
Definition at line 136 of file imapwnd.hxx.
References aInfo.
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 285 of file imapwnd.cxx.
References GraphCtrl::InitSdrModel(), GraphCtrl::pModel, SfxItemSet::Put(), GraphCtrl::pView, and TRANSCOL.
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 422 of file imapwnd.cxx.
References GraphCtrl::MarkListHasChanged(), and UpdateInfo().
|
private |
Definition at line 712 of file imapwnd.cxx.
References DoMacroAssign(), DoPropertyDialog(), mxPopupMenu, GraphCtrl::pView, SetCurrentObjState(), and UpdateInfo().
Referenced by Command().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 415 of file imapwnd.cxx.
References GraphCtrl::MouseButtonUp(), and UpdateInfo().
void IMapWindow::ReplaceActualIMapInfo | ( | const NotifyInfo & | rNewInfo | ) |
Definition at line 121 of file imapwnd.cxx.
References NotifyInfo::aMarkAltText, NotifyInfo::aMarkTarget, NotifyInfo::aMarkURL, GetIMapObj(), GraphCtrl::GetSelectedSdrObject(), GraphCtrl::pModel, IMapObject::SetAltText(), IMapObject::SetTarget(), IMapObject::SetURL(), and UpdateInfo().
|
private |
Definition at line 84 of file imapwnd.cxx.
References aIMap, SdrObjList::ClearSdrObjList(), CreateObj(), ImageMap::GetIMapObject(), ImageMap::GetIMapObjectCount(), SdrModel::GetPage(), GraphCtrl::GetSdrModel(), GraphCtrl::GetSdrView(), i, SdrObjList::InsertObject(), nCount, and SdrMarkView::UnmarkAllObj().
Referenced by SetImageMap().
|
overrideprivatevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 564 of file imapwnd.cxx.
References aStr, weld::DrawingArea::get_ref_device(), weld::CustomWidgetController::GetDrawingArea(), GraphCtrl::GetGraphicSize(), GetIMapObj(), IMapObject::GetURL(), OutputDevice::LogicToPixel(), OutputDevice::PixelToLogic(), GraphCtrl::pView, and tools::Rectangle::TopLeft().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 346 of file imapwnd.cxx.
References aURL, CircleOrEllipse, SdrObject::ConvertToPolyObj(), basegfx::B2DPolyPolygon::count(), FreehandFill, basegfx::B2DPolyPolygon::getB2DPolygon(), tools::Polygon::GetBoundRect(), IMapUserData::GetObject(), SdrObject::GetObjIdentifier(), SdrPathObj::GetPathPoly(), SdrObject::GetUserData(), PathFill, PathPoly, Polygon, Rectangle, and IMapUserData::ReplaceObject().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 297 of file imapwnd.cxx.
References SdrObject::AppendUserData(), CircleOrEllipse, SdrObject::ConvertToPolyObj(), basegfx::B2DPolyPolygon::count(), FreehandFill, basegfx::B2DPolyPolygon::getB2DPolygon(), tools::Polygon::GetBoundRect(), SdrTextObj::GetLogicRect(), SdrObject::GetObjIdentifier(), SdrPathObj::GetPathPoly(), PathFill, PathPoly, Polygon, and Rectangle.
void IMapWindow::SetCurrentObjState | ( | bool | bActive | ) |
Definition at line 589 of file imapwnd.cxx.
References COL_BLACK(), COL_RED(), GetIMapObj(), GraphCtrl::GetSelectedSdrObject(), GraphCtrl::pModel, SfxItemSet::Put(), GraphCtrl::pView, IMapObject::SetActive(), and TRANSCOL.
Referenced by MenuSelectHdl().
|
overrideprivatevirtual |
Reimplemented from GraphCtrl.
Definition at line 67 of file imapwnd.cxx.
References weld::DrawingArea::get_ref_device(), Size::Height(), OutputDevice::LogicToPixel(), mxDropTargetHelper, weld::Widget::set_size_request(), weld::CustomWidgetController::SetDrawingArea(), weld::CustomWidgetController::SetOutputSizePixel(), GraphCtrl::SetSdrMode(), and Size::Width().
void IMapWindow::SetImageMap | ( | const ImageMap & | rImageMap | ) |
Definition at line 79 of file imapwnd.cxx.
References ReplaceImageMap().
|
inline |
Definition at line 132 of file imapwnd.hxx.
References aInfoLink.
void IMapWindow::SetTargetList | ( | const TargetList & | rTargetList | ) |
Definition at line 164 of file imapwnd.cxx.
References aTargetList, and GraphCtrl::pModel.
|
private |
Definition at line 616 of file imapwnd.cxx.
References aInfo, aInfoLink, NotifyInfo::aMarkAltText, NotifyInfo::aMarkTarget, NotifyInfo::aMarkURL, NotifyInfo::bActivated, NotifyInfo::bNewObj, NotifyInfo::bOneMarked, Link< typename Arg, typename Ret >::Call(), IMapObject::GetAltText(), GetIMapObj(), GraphCtrl::GetSelectedSdrObject(), IMapObject::GetTarget(), IMapObject::GetURL(), IMapObject::IsActive(), and Link< typename Arg, typename Ret >::IsSet().
Referenced by DoMacroAssign(), DoPropertyDialog(), ExecuteDrop(), MarkListHasChanged(), MenuSelectHdl(), MouseButtonUp(), and ReplaceActualIMapInfo().
|
private |
Definition at line 84 of file imapwnd.hxx.
Referenced by GetImageMap(), and ReplaceImageMap().
|
private |
Definition at line 83 of file imapwnd.hxx.
Referenced by GetInfo(), and UpdateInfo().
|
private |
Definition at line 86 of file imapwnd.hxx.
Referenced by SetInfoLink(), and UpdateInfo().
|
private |
Definition at line 85 of file imapwnd.hxx.
Referenced by DoPropertyDialog(), and SetTargetList().
|
private |
Definition at line 88 of file imapwnd.hxx.
Referenced by IMapWindow().
|
private |
Definition at line 90 of file imapwnd.hxx.
Referenced by DoMacroAssign().
|
private |
Definition at line 91 of file imapwnd.hxx.
Referenced by ExecuteDrop(), and SetDrawingArea().
|
private |
Definition at line 92 of file imapwnd.hxx.
Referenced by Command(), and MenuSelectHdl().
|
private |
Definition at line 87 of file imapwnd.hxx.
Referenced by DoMacroAssign(), and IMapWindow().