diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 11:26:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 12:37:11 +0000 |
commit | 52c2111e4f466edf77e3eee17fc9c283f3b69100 (patch) | |
tree | 2cceb8d9131054a0e7791ce4124e50819c11ccd8 /sw | |
parent | c32aa53a7df7af4ef23b8d235483eabb51463183 (diff) |
callcatcher: remove some unused methods
Change-Id: Id3ca991e9ede13512a39865496429aabb7e71088
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/docsh.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/app/docsh2.cxx | 32 |
2 files changed, 5 insertions, 29 deletions
diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index 294bfa79bf7e..780883b3b6ad 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -232,10 +232,12 @@ public: Reader* StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr, SwCrsrShell* pCrsrSh = 0, SwPaM* pPaM = 0); +#if defined WNT virtual bool DdeGetData( const OUString& rItem, const OUString& rMimeType, ::com::sun::star::uno::Any & rValue ) SAL_OVERRIDE; virtual bool DdeSetData( const OUString& rItem, const OUString& rMimeType, const ::com::sun::star::uno::Any & rValue ) SAL_OVERRIDE; +#endif virtual ::sfx2::SvLinkSource* DdeCreateLinkSource( const OUString& rItem ) SAL_OVERRIDE; virtual void ReconnectDdeLink(SfxObjectShell& rServer) SAL_OVERRIDE; diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx index 9deec3e5d24b..ba1b02378e71 100644 --- a/sw/source/uibase/app/docsh2.cxx +++ b/sw/source/uibase/app/docsh2.cxx @@ -1142,35 +1142,7 @@ void SwDocShell::Execute(SfxRequest& rReq) } } - // #FIXME - align with NEW event stuff ( if possible ) -#if 0 -void lcl_processCompatibleSfxHint( const uno::Reference< document::XVbaEventsHelper >& xVbaEventsHelper, const SfxHint& rHint ) -{ - if ( rHint.ISA( SfxEventHint ) ) - { - uno::Sequence< uno::Any > aArgs; - sal_uLong nEventId = static_cast<SfxEventHint&>(rHint).GetEventId(); - switch( nEventId ) - { - case SFX_EVENT_CREATEDOC: - { - xVbaEventsHelper->ProcessCompatibleVbaEvent( VBAEVENT_DOCUMENT_NEW, aArgs ); - break; - } - case SFX_EVENT_OPENDOC: - { - xVbaEventsHelper->ProcessCompatibleVbaEvent( VBAEVENT_DOCUMENT_OPEN, aArgs ); - break; - } - default: - { - //do nothing - } - } - } -} -#endif - +#if defined WNT bool SwDocShell::DdeGetData( const OUString& rItem, const OUString& rMimeType, uno::Any & rValue ) { @@ -1183,6 +1155,8 @@ bool SwDocShell::DdeSetData( const OUString& rItem, const OUString& rMimeType, return mpDoc->getIDocumentLinksAdministration().SetData( rItem, rMimeType, rValue ); } +#endif + ::sfx2::SvLinkSource* SwDocShell::DdeCreateLinkSource( const OUString& rItem ) { return mpDoc->getIDocumentLinksAdministration().CreateLinkSource( rItem ); |