diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/romenu.cxx | 17 | ||||
-rw-r--r-- | sw/source/uibase/docvw/romenu.hxx | 2 |
2 files changed, 0 insertions, 19 deletions
diff --git a/sw/source/uibase/docvw/romenu.cxx b/sw/source/uibase/docvw/romenu.cxx index 3b56c4b2fb29..0cb03faa3364 100644 --- a/sw/source/uibase/docvw/romenu.cxx +++ b/sw/source/uibase/docvw/romenu.cxx @@ -52,8 +52,6 @@ using namespace ::sfx2; SwReadOnlyPopup::~SwReadOnlyPopup() { - delete m_pImageMap; - delete m_pTargetURL; m_xMenu.disposeAndClear(); } @@ -109,8 +107,6 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) , m_rView(rV) , m_aBrushItem(RES_BACKGROUND) , m_rDocPos(rDPos) - , m_pImageMap(nullptr) - , m_pTargetURL(nullptr) { m_bGrfToGalleryAsLnk = SW_MOD()->GetModuleConfig()->IsGrfToGalleryAsLnk(); SwWrtShell &rSh = m_rView.GetWrtShell(); @@ -136,19 +132,6 @@ SwReadOnlyPopup::SwReadOnlyPopup(const Point &rDPos, SwView &rV) else { m_aGraphic = *pGrf; - const SwFrameFormat* pGrfFormat = rSh.GetFormatFromObj( m_rDocPos ); - const SfxPoolItem* pURLItem; - if( pGrfFormat && SfxItemState::SET == pGrfFormat->GetItemState( - RES_URL, true, &pURLItem )) - { - const SwFormatURL& rURL = *static_cast<const SwFormatURL*>(pURLItem); - if( rURL.GetMap() ) - m_pImageMap = new ImageMap( *rURL.GetMap() ); - else if( !rURL.GetURL().isEmpty() ) - m_pTargetURL = new INetImage( bLink ? m_sGrfName : OUString(), - rURL.GetURL(), - rURL.GetTargetFrameName() ); - } } bool bEnableGraphicToGallery = bLink; diff --git a/sw/source/uibase/docvw/romenu.hxx b/sw/source/uibase/docvw/romenu.hxx index 06ac4ee3536b..78d592165450 100644 --- a/sw/source/uibase/docvw/romenu.hxx +++ b/sw/source/uibase/docvw/romenu.hxx @@ -66,8 +66,6 @@ class SwReadOnlyPopup OUString m_sGrfName; std::vector<OUString> m_aThemeList; bool m_bGrfToGalleryAsLnk; - ImageMap* m_pImageMap; - INetImage* m_pTargetURL; void Check( sal_uInt16 nMID, sal_uInt16 nSID, SfxDispatcher const &rDis ); OUString SaveGraphic( sal_uInt16 nId ); |