summaryrefslogtreecommitdiff
path: root/framework/source/services
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-08-03 01:51:28 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-08-03 01:51:28 +0200
commit5fd54f2f3de2fec39b372e2f8ece0ee73f080c8f (patch)
tree580aaed1b4aab01dd2598c6f46c6d629f2de454e /framework/source/services
parent228d801ab1d5e1dd86b814703b2e25baf69ad07c (diff)
callcatcher: remove unused methods
Diffstat (limited to 'framework/source/services')
-rw-r--r--framework/source/services/backingcomp.cxx1
-rw-r--r--framework/source/services/modelwinservice.cxx282
2 files changed, 0 insertions, 283 deletions
diff --git a/framework/source/services/backingcomp.cxx b/framework/source/services/backingcomp.cxx
index 05eb6852c1ba..0e682bf7a5c3 100644
--- a/framework/source/services/backingcomp.cxx
+++ b/framework/source/services/backingcomp.cxx
@@ -38,7 +38,6 @@
#include <threadhelp/readguard.hxx>
#include <threadhelp/writeguard.hxx>
#include <classes/droptargetlistener.hxx>
-#include <framework/acceleratorinfo.hxx>
#include <targets.h>
#include <properties.h>
#include <services.h>
diff --git a/framework/source/services/modelwinservice.cxx b/framework/source/services/modelwinservice.cxx
deleted file mode 100644
index 52c5d9c864f0..000000000000
--- a/framework/source/services/modelwinservice.cxx
+++ /dev/null
@@ -1,282 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: urltransformer.cxx,v $
- * $Revision: 1.17 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_framework.hxx"
-
-//_________________________________________________________________________________________________________________
-// my own includes
-//_________________________________________________________________________________________________________________
-
-#include "services.h"
-#include "services/modelwinservice.hxx"
-
-//_________________________________________________________________________________________________________________
-// interface includes
-//_________________________________________________________________________________________________________________
-
-#include <com/sun/star/awt/XControlModel.hpp>
-
-using namespace ::com::sun::star;
-
-//_________________________________________________________________________________________________________________
-// namespace
-//_________________________________________________________________________________________________________________
-
-namespace framework{
-
-//_________________________________________________________________________________________________________________
-// non exported definitions
-//_________________________________________________________________________________________________________________
-
-//_________________________________________________________________________________________________________________
-// declarations
-//_________________________________________________________________________________________________________________
-
-class Impl_ModelWinService
-{
- public:
- ~Impl_ModelWinService();
-
- static Impl_ModelWinService* getSingleInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
-
- uno::Any getByName( const ::rtl::OUString& sName )
- throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException );
-
- uno::Sequence< ::rtl::OUString > getElementNames()
- throw( uno::RuntimeException );
-
- sal_Bool hasByName( const ::rtl::OUString& sName )
- throw( uno::RuntimeException );
-
- uno::Type getElementType()
- throw( css::uno::RuntimeException );
-
- sal_Bool hasElements()
- throw( css::uno::RuntimeException );
-
- void registerModelForXWindow( const uno::Reference< awt::XWindow >& rWindow, const uno::Reference< awt::XControlModel >& rModel );
-
- void deregisterModelForXWindow( const uno::Reference< awt::XWindow >& rWindow );
-
- private:
- typedef BaseHash< uno::WeakReference< awt::XControlModel > > ModelWinMap;
-
- Impl_ModelWinService();
- Impl_ModelWinService( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
-
- static Impl_ModelWinService* m_pModelWinService;
-
- ::com::sun::star::uno::WeakReference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager;
- ModelWinMap m_aModelMap;
-};
-
-Impl_ModelWinService* Impl_ModelWinService::m_pModelWinService = 0;
-
-Impl_ModelWinService* Impl_ModelWinService::getSingleInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager )
-{
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
- if ( !m_pModelWinService )
- m_pModelWinService = new Impl_ModelWinService( rServiceManager );
- return m_pModelWinService;
-}
-
-Impl_ModelWinService::Impl_ModelWinService( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager ) :
- m_xServiceManager( rServiceManager )
-{
-}
-
-Impl_ModelWinService::Impl_ModelWinService()
-{
-}
-
-Impl_ModelWinService::~Impl_ModelWinService()
-{
-}
-
-void Impl_ModelWinService::registerModelForXWindow( const uno::Reference< awt::XWindow >& rWindow, const uno::Reference< awt::XControlModel >& rModel )
-{
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
-
- ::rtl::OUString sName = rtl::OUString::valueOf( reinterpret_cast< sal_Int64 >((void*)rWindow.get()));
- ModelWinMap::iterator pIter = m_aModelMap.find( sName );
- if ( pIter != m_aModelMap.end() )
- pIter->second = rModel;
- else
- m_aModelMap[sName] = rModel;
-}
-
-void Impl_ModelWinService::deregisterModelForXWindow( const uno::Reference< awt::XWindow >& /*rWindow*/ )
-{
-}
-
-uno::Any Impl_ModelWinService::getByName( const ::rtl::OUString& sName )
-throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
-{
- uno::Any aAny;
-
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
- ModelWinMap::iterator pIter = m_aModelMap.find( sName );
- if ( pIter != m_aModelMap.end())
- {
- uno::Reference< awt::XControlModel > xModel( pIter->second );
- aAny = uno::makeAny(xModel);
- }
-
- return aAny;
-}
-
-uno::Sequence< ::rtl::OUString > Impl_ModelWinService::getElementNames()
-throw( uno::RuntimeException )
-{
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
- uno::Sequence< ::rtl::OUString > aResult( m_aModelMap.size() );
-
- sal_Int32 i = 0;
- ModelWinMap::const_iterator pIter = m_aModelMap.begin();
- while ( pIter != m_aModelMap.end())
- aResult[i++] = pIter->first;
-
- return aResult;
-}
-
-sal_Bool Impl_ModelWinService::hasByName( const ::rtl::OUString& sName )
-throw( uno::RuntimeException )
-{
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
- ModelWinMap::iterator pIter = m_aModelMap.find( sName );
- if ( pIter != m_aModelMap.end())
- return true;
- else
- return false;
-}
-
-uno::Type Impl_ModelWinService::getElementType()
-throw( css::uno::RuntimeException )
-{
- return ::getCppuType(( const uno::Reference< awt::XControlModel >*)NULL );
-}
-
-sal_Bool Impl_ModelWinService::hasElements()
-throw( css::uno::RuntimeException )
-{
- osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ;
- return (m_aModelMap.size() > 0);
-}
-
-//*****************************************************************************************************************
-// css::uno::XInterface, XTypeProvider, XServiceInfo
-//*****************************************************************************************************************
-
-DEFINE_XINTERFACE_4 ( ModelWinService ,
- OWeakObject ,
- DIRECT_INTERFACE(css::lang::XTypeProvider ),
- DIRECT_INTERFACE(css::lang::XServiceInfo ),
- DIRECT_INTERFACE(css::container::XNameAccess ),
- DIRECT_INTERFACE(css::container::XElementAccess )
- )
-
-DEFINE_XTYPEPROVIDER_4 ( ModelWinService ,
- css::lang::XTypeProvider ,
- css::lang::XServiceInfo ,
- css::container::XNameAccess ,
- css::container::XElementAccess
- )
-
-DEFINE_XSERVICEINFO_MULTISERVICE ( ModelWinService ,
- OWeakObject ,
- SERVICENAME_MODELWINSERVICE ,
- IMPLEMENTATIONNAME_MODELWINSERVICE
- )
-
-DEFINE_INIT_SERVICE ( ModelWinService,
- {
- }
- )
-
-//*****************************************************************************************************************
-// constructor
-//*****************************************************************************************************************
-ModelWinService::ModelWinService(const uno::Reference< lang::XMultiServiceFactory >& rServiceManager ) :
- m_xServiceManager( rServiceManager )
-{
-}
-
-ModelWinService::~ModelWinService()
-{
-}
-
-void ModelWinService::registerModelForXWindow( const uno::Reference< awt::XWindow >& rWindow, const uno::Reference< awt::XControlModel >& rModel )
-{
- Impl_ModelWinService::getSingleInstance(m_xServiceManager)->registerModelForXWindow( rWindow, rModel );
-}
-
-void ModelWinService::deregisterModelForXWindow( const uno::Reference< awt::XWindow >& rWindow )
-{
- Impl_ModelWinService::getSingleInstance(m_xServiceManager)->deregisterModelForXWindow( rWindow );
-}
-
-uno::Any SAL_CALL ModelWinService::getByName( const ::rtl::OUString& sName )
-throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
-{
- return Impl_ModelWinService::getSingleInstance(m_xServiceManager)->getByName( sName );
-}
-
-uno::Sequence< ::rtl::OUString > SAL_CALL ModelWinService::getElementNames()
-throw( uno::RuntimeException )
-{
- return Impl_ModelWinService::getSingleInstance(m_xServiceManager)->getElementNames( );
-}
-
-sal_Bool SAL_CALL ModelWinService::hasByName( const ::rtl::OUString& sName )
-throw( uno::RuntimeException )
-{
- return Impl_ModelWinService::getSingleInstance(m_xServiceManager)->hasByName( sName );
-}
-
-//---------------------------------------------------------------------------------------------------------
-// XElementAccess
-//---------------------------------------------------------------------------------------------------------
-uno::Type SAL_CALL ModelWinService::getElementType()
-throw( uno::RuntimeException )
-{
- return ::getCppuType( (const uno::Reference< awt::XControlModel > *)NULL );
-}
-
-sal_Bool SAL_CALL ModelWinService::hasElements()
-throw( uno::RuntimeException )
-{
- return Impl_ModelWinService::getSingleInstance(m_xServiceManager)->hasElements();
-}
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */