summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-06 08:46:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-06 08:52:37 +0100
commita1ce4fb4f0dbc3c4141f510e5b2b732a24d862c8 (patch)
tree6ecac5a964c7bc40862f435f0492d941948326e4 /sfx2/source
parentebded7f2f5d19489811ee4ed2a0da9d09371a5ac (diff)
callcatcher: various unused methods
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/app.cxx21
-rw-r--r--sfx2/source/appl/appdata.cxx53
-rw-r--r--sfx2/source/appl/appdde.cxx47
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx3
-rw-r--r--sfx2/source/bastyp/helper.cxx33
-rw-r--r--sfx2/source/bastyp/progress.cxx3
-rw-r--r--sfx2/source/inc/appdata.hxx1
-rw-r--r--sfx2/source/inc/helper.hxx2
8 files changed, 67 insertions, 96 deletions
diff --git a/sfx2/source/appl/app.cxx b/sfx2/source/appl/app.cxx
index f5be7bd92e0e..49b825cf33a3 100644
--- a/sfx2/source/appl/app.cxx
+++ b/sfx2/source/appl/app.cxx
@@ -552,27 +552,6 @@ void SfxApplication::ReleaseIndex(sal_uInt16 i)
//--------------------------------------------------------------------
-void SfxApplication::EnterAsynchronCall_Impl()
-{
- ++pAppData_Impl->nAsynchronCalls;
-}
-
-//--------------------------------------------------------------------
-
-void SfxApplication::LeaveAsynchronCall_Impl()
-{
- --pAppData_Impl->nAsynchronCalls;
-}
-
-//--------------------------------------------------------------------
-
-bool SfxApplication::IsInAsynchronCall_Impl() const
-{
- return pAppData_Impl->nAsynchronCalls > 0;
-}
-
-//--------------------------------------------------------------------
-
Window* SfxApplication::GetTopWindow() const
{
SfxWorkWindow* pWork = GetWorkWindow_Impl( SfxViewFrame::Current() );
diff --git a/sfx2/source/appl/appdata.cxx b/sfx2/source/appl/appdata.cxx
index 81fabb9c9f31..0c461468539a 100644
--- a/sfx2/source/appl/appdata.cxx
+++ b/sfx2/source/appl/appdata.cxx
@@ -88,33 +88,32 @@ void SfxBasicManagerCreationListener::onBasicManagerCreated( const Reference< XM
m_rAppData.OnApplicationBasicManagerCreated( _rBasicManager );
}
-SfxAppData_Impl::SfxAppData_Impl( SfxApplication* ) :
- pDdeService( 0 ),
- pDocTopics( 0 ),
- pTriggerTopic(0),
- pDdeService2(0),
- pFactArr(0),
- pTopFrames( new SfxFrameArr_Impl ),
- pInitLinkList(0),
- pMatcher( 0 ),
- pBasicResMgr( 0 ),
- pSvtResMgr( 0 ),
- pAppDispatch(NULL),
- pTemplates( 0 ),
- pPool(0),
- pDisabledSlotList( 0 ),
- pSecureURLs(0),
- pSaveOptions( 0 ),
- pUndoOptions( 0 ),
- pHelpOptions( 0 ),
- pProgress(0),
- pTemplateCommon( 0 ),
- nDocModalMode(0),
- nAutoTabPageId(0),
- nRescheduleLocks(0),
- nInReschedule(0),
- nAsynchronCalls(0),
- m_xImeStatusWindow(new sfx2::appl::ImeStatusWindow(comphelper::getProcessServiceFactory()))
+SfxAppData_Impl::SfxAppData_Impl( SfxApplication* )
+ : pDdeService( 0 )
+ , pDocTopics( 0 )
+ , pTriggerTopic(0)
+ , pDdeService2(0)
+ , pFactArr(0)
+ , pTopFrames( new SfxFrameArr_Impl )
+ , pInitLinkList(0)
+ , pMatcher( 0 )
+ , pBasicResMgr( 0 )
+ , pSvtResMgr( 0 )
+ , pAppDispatch(NULL)
+ , pTemplates( 0 )
+ , pPool(0)
+ , pDisabledSlotList( 0 )
+ , pSecureURLs(0)
+ , pSaveOptions( 0 )
+ , pUndoOptions( 0 )
+ , pHelpOptions( 0 )
+ , pProgress(0)
+ , pTemplateCommon( 0 )
+ , nDocModalMode(0)
+ , nAutoTabPageId(0)
+ , nRescheduleLocks(0)
+ , nInReschedule(0)
+ , m_xImeStatusWindow(new sfx2::appl::ImeStatusWindow(comphelper::getProcessServiceFactory()))
, pTbxCtrlFac(0)
, pStbCtrlFac(0)
, pViewFrames(0)
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index 04f99efaabb0..5dbbdd007e33 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -53,6 +53,7 @@
#include "helper.hxx"
#include <sfx2/docfile.hxx>
#include <comphelper/string.hxx>
+#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
//========================================================================
@@ -85,6 +86,41 @@ public:
};
//--------------------------------------------------------------------
+namespace
+{
+ sal_Bool lcl_IsDocument( const String& rContent )
+ {
+ using namespace com::sun::star;
+
+ sal_Bool bRet = sal_False;
+ INetURLObject aObj( rContent );
+ DBG_ASSERT( aObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );
+
+ try
+ {
+ ::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () );
+ bRet = aCnt.isDocument();
+ }
+ catch( const ucb::CommandAbortedException& )
+ {
+ DBG_WARNING( "CommandAbortedException" );
+ }
+ catch( const ucb::IllegalIdentifierException& )
+ {
+ DBG_WARNING( "IllegalIdentifierException" );
+ }
+ catch( const ucb::ContentCreationException& )
+ {
+ DBG_WARNING( "IllegalIdentifierException" );
+ }
+ catch( const uno::Exception& )
+ {
+ DBG_ERRORFILE( "Any other exception" );
+ }
+
+ return bRet;
+ }
+}
sal_Bool ImplDdeService::MakeTopic( const String& rNm )
{
@@ -119,7 +155,7 @@ sal_Bool ImplDdeService::MakeTopic( const String& rNm )
INetURLObject aWorkPath( SvtPathOptions().GetWorkPath() );
INetURLObject aFile;
if ( aWorkPath.GetNewAbsURL( rNm, &aFile ) &&
- SfxContentHelper::IsDocument( aFile.GetMainURL( INetURLObject::NO_DECODE ) ) )
+ lcl_IsDocument( aFile.GetMainURL( INetURLObject::NO_DECODE ) ) )
{
// File exists? then try to load it:
SfxStringItem aName( SID_FILE_NAME, aFile.GetMainURL( INetURLObject::NO_DECODE ) );
@@ -172,7 +208,6 @@ sal_Bool ImplDdeService::SysTopicExecute( const String* pStr )
{
return (sal_Bool)SFX_APP()->DdeExecute( *pStr );
}
-
#endif
class SfxDdeTriggerTopic_Impl : public DdeTopic
@@ -254,8 +289,7 @@ sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent,
return sal_False;
}
-//-------------------------------------------------------------------------
-
+#if defined( WNT )
long SfxApplication::DdeExecute
(
const String& rCmd // Expressed in our BASIC-Syntax
@@ -291,6 +325,7 @@ long SfxApplication::DdeExecute
}
return 1;
}
+#endif
long SfxObjectShell::DdeExecute
(
@@ -521,8 +556,7 @@ void SfxAppData_Impl::DeInitDDE()
DELETEZ( pDdeService );
}
-//--------------------------------------------------------------------
-
+#if defined( WNT )
void SfxApplication::AddDdeTopic( SfxObjectShell* pSh )
{
DBG_ASSERT( pAppData_Impl->pDocTopics, "There is no Dde-Service" );
@@ -552,6 +586,7 @@ void SfxApplication::AddDdeTopic( SfxObjectShell* pSh )
pAppData_Impl->pDocTopics->Count() );
pAppData_Impl->pDdeService->AddTopic( *pTopic );
}
+#endif
void SfxApplication::RemoveDdeTopic( SfxObjectShell* pSh )
{
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 0b500f10e6bc..63add660c327 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -167,12 +167,9 @@ const SfxFilter* SfxFilterContainer::aMethod( ArgType aArg, SfxFilterFlags nMust
return aMatch.aMethod( aArg, nMust, nDont ); \
}
-IMPL_FORWARD_LOOP( GetFilter4Mime, const String&, rMime );
-IMPL_FORWARD_LOOP( GetFilter4ClipBoardId, sal_uInt32, nId );
IMPL_FORWARD_LOOP( GetFilter4EA, const String&, rEA );
IMPL_FORWARD_LOOP( GetFilter4Extension, const String&, rExt );
IMPL_FORWARD_LOOP( GetFilter4FilterName, const String&, rName );
-IMPL_FORWARD_LOOP( GetFilter4UIName, const String&, rName );
const SfxFilter* SfxFilterContainer::GetAnyFilter( SfxFilterFlags nMust, SfxFilterFlags nDont ) const
{
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx
index e00fbda6c374..ba762ffe7b47 100644
--- a/sfx2/source/bastyp/helper.cxx
+++ b/sfx2/source/bastyp/helper.cxx
@@ -88,39 +88,6 @@ void AppendDateTime_Impl( const util::DateTime rDT,
// -----------------------------------------------------------------------
-sal_Bool SfxContentHelper::IsDocument( const String& rContent )
-{
- sal_Bool bRet = sal_False;
- INetURLObject aObj( rContent );
- DBG_ASSERT( aObj.GetProtocol() != INET_PROT_NOT_VALID, "Invalid URL!" );
-
- try
- {
- ::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () );
- bRet = aCnt.isDocument();
- }
- catch( const ucb::CommandAbortedException& )
- {
- DBG_WARNING( "CommandAbortedException" );
- }
- catch( const ucb::IllegalIdentifierException& )
- {
- DBG_WARNING( "IllegalIdentifierException" );
- }
- catch( const ucb::ContentCreationException& )
- {
- DBG_WARNING( "IllegalIdentifierException" );
- }
- catch( const uno::Exception& )
- {
- DBG_ERRORFILE( "Any other exception" );
- }
-
- return bRet;
-}
-
-// -----------------------------------------------------------------------
-
uno::Sequence < OUString > SfxContentHelper::GetResultSet( const String& rURL )
{
StringList_Impl* pList = NULL;
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 2ea27dc1de01..c1768d1c4cc1 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -529,9 +529,6 @@ void SfxProgress::Reschedule()
SfxApplication* pApp = SFX_APP();
if ( pImp->bLocked && 0 == pApp->Get_Impl()->nRescheduleLocks )
{
- DBG_ASSERTWARNING( pApp->IsInAsynchronCall_Impl(),
- "Reschedule in synchron-call-stack" );
-
SfxAppData_Impl *pAppData = pApp->Get_Impl();
++pAppData->nInReschedule;
Application::Reschedule();
diff --git a/sfx2/source/inc/appdata.hxx b/sfx2/source/inc/appdata.hxx
index 5e31a7b537a6..b807f5cd21a7 100644
--- a/sfx2/source/inc/appdata.hxx
+++ b/sfx2/source/inc/appdata.hxx
@@ -138,7 +138,6 @@ public:
sal_uInt16 nAutoTabPageId;
sal_uInt16 nRescheduleLocks;
sal_uInt16 nInReschedule;
- sal_uInt16 nAsynchronCalls;
rtl::Reference< sfx2::appl::ImeStatusWindow > m_xImeStatusWindow;
diff --git a/sfx2/source/inc/helper.hxx b/sfx2/source/inc/helper.hxx
index 36b8ee9e3d46..85a3b2732d35 100644
--- a/sfx2/source/inc/helper.hxx
+++ b/sfx2/source/inc/helper.hxx
@@ -42,8 +42,6 @@
class SfxContentHelper
{
public:
- static sal_Bool IsDocument( const String& rContent );
-
static ::com::sun::star::uno::Sequence< ::rtl::OUString >
GetResultSet( const String& rURL );
static ::com::sun::star::uno::Sequence< ::rtl::OUString >