diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-08-27 08:20:24 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-08-27 14:40:36 +0200 |
commit | 423d16487b6d8bc048f546017da3b8274bc289cf (patch) | |
tree | 72177a5c84d02d5f6335e3ea68f05dfc4f55166a /sc/inc | |
parent | 3005c107f356ead72d18b5136361e75d82ab1dff (diff) |
Remove duplicated sc imagemap functions
Change-Id: Ie1001abb5b57e73fece9f028041e683143a7008b
Reviewed-on: https://gerrit.libreoffice.org/78162
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/drwlayer.hxx | 10 | ||||
-rw-r--r-- | sc/inc/userdat.hxx | 17 |
2 files changed, 1 insertions, 26 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 4bb4a759b241..a2f9cadbc25d 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -27,9 +27,7 @@ class ScDocument; class SfxObjectShell; class ScDrawObjData; -class ScIMapInfo; class ScMacroInfo; -class IMapObject; class ScMarkData; class ScTabDeletedHint : public SfxHint @@ -208,16 +206,8 @@ public: /** Returns the object data, if the passed object is a cell note caption. */ static ScDrawObjData* GetNoteCaptionData( SdrObject* pObj, SCTAB nTab ); - // Image-Map - static ScIMapInfo* GetIMapInfo( const SdrObject* pObj ); - - static IMapObject* GetHitIMapObject( const SdrObject* pObject, - const Point& rWinPoint, const vcl::Window& rCmpWnd ); - static ScMacroInfo* GetMacroInfo( SdrObject* pObj, bool bCreate = false ); - virtual ImageMap* GetImageMapForObject(SdrObject* pObj) override; - private: static SfxObjectShell* pGlobalDrawPersist; // for AllocModel public: diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index 17a81261b3cd..e05662757193 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -27,7 +27,7 @@ // Object IDs for UserData #define SC_UD_OBJDATA 1 -#define SC_UD_IMAPDATA 2 +// SVX_IMAPINFO_ID = 2 #define SC_UD_MACRODATA 3 class SC_DLLPUBLIC ScDrawObjData : public SdrObjUserData @@ -67,21 +67,6 @@ private: tools::Rectangle maShapeRect; }; -class ScIMapInfo : public SdrObjUserData -{ - ImageMap aImageMap; - -public: - ScIMapInfo( const ImageMap& rImageMap ); - ScIMapInfo( const ScIMapInfo& rIMapInfo ); - virtual ~ScIMapInfo() override; - - virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override; - - void SetImageMap( const ImageMap& rIMap ) { aImageMap = rIMap; } - const ImageMap& GetImageMap() const { return aImageMap; } -}; - class SAL_DLLPUBLIC_RTTI ScMacroInfo : public SdrObjUserData { public: |