summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/lnkbase2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-08 09:16:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-08 10:09:01 +0000
commit6d8b06224cf1819c8af543927d7a80e937c50a94 (patch)
tree346a41bfad2f972713383280fc426ff5f2c36b08 /sfx2/source/appl/lnkbase2.cxx
parent9d5e53b67c7c131ab4cdc8e103373be2be7830c2 (diff)
callcatcher: update unused code
Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx85
1 files changed, 41 insertions, 44 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index 1bcd28faeb01..8b5b0e50250c 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -40,8 +40,6 @@ namespace sfx2
TYPEINIT0( SvBaseLink )
-static DdeTopic* FindTopic( const OUString &, sal_uInt16* = 0 );
-
class ImplDdeItem;
struct BaseLink_Impl
@@ -150,7 +148,47 @@ SvBaseLink::SvBaseLink( sal_uInt16 nUpdateMode, sal_uIntPtr nContentType )
pImplData->ClientType.bIntrnlLnk = false;
}
+#if defined WNT
+static DdeTopic* FindTopic( const OUString & rLinkName, sal_uInt16* pItemStt )
+{
+ if( rLinkName.isEmpty() )
+ return 0;
+
+ OUString sNm( rLinkName );
+ sal_Int32 nTokenPos = 0;
+ OUString sService( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
+
+ DdeServices& rSvc = DdeService::GetServices();
+ for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI)
+ {
+ DdeService* pService = *aI;
+ if( pService->GetName() == sService )
+ {
+ // then we search for the Topic
+ OUString sTopic( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
+ if( pItemStt )
+ *pItemStt = nTokenPos;
+
+ std::vector<DdeTopic*>& rTopics = pService->GetTopics();
+
+ for( int i = 0; i < 2; ++i )
+ {
+ for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
+ iterTopic != rTopics.end(); ++iterTopic )
+ if( (*iterTopic)->GetName() == sTopic )
+ return *iterTopic;
+
+ // Topic not found?
+ // then we try once to create it
+ if( i || !pService->MakeTopic( sTopic ) )
+ break; // did not work, exiting
+ }
+ break;
+ }
+ }
+ return 0;
+}
SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLinkSource* pObj )
: pImpl(0)
@@ -189,7 +227,7 @@ SvBaseLink::SvBaseLink( const OUString& rLinkName, sal_uInt16 nObjectType, SvLin
xObj = pObj;
}
-
+#endif
SvBaseLink::~SvBaseLink()
{
@@ -596,47 +634,6 @@ void ImplDdeItem::AdviseLoop( bool bOpen )
}
}
-
-static DdeTopic* FindTopic( const OUString & rLinkName, sal_uInt16* pItemStt )
-{
- if( rLinkName.isEmpty() )
- return 0;
-
- OUString sNm( rLinkName );
- sal_Int32 nTokenPos = 0;
- OUString sService( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
-
- DdeServices& rSvc = DdeService::GetServices();
- for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI)
- {
- DdeService* pService = *aI;
- if( pService->GetName() == sService )
- {
- // then we search for the Topic
- OUString sTopic( sNm.getToken( 0, cTokenSeparator, nTokenPos ) );
- if( pItemStt )
- *pItemStt = nTokenPos;
-
- std::vector<DdeTopic*>& rTopics = pService->GetTopics();
-
- for( int i = 0; i < 2; ++i )
- {
- for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
- iterTopic != rTopics.end(); ++iterTopic )
- if( (*iterTopic)->GetName() == sTopic )
- return *iterTopic;
-
- // Topic not found?
- // then we try once to create it
- if( i || !pService->MakeTopic( sTopic ) )
- break; // did not work, exiting
- }
- break;
- }
- }
- return 0;
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */