diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-02 22:35:55 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-03 02:14:19 +0100 |
commit | 3c177e98c01bfabbeba90a0e571734b7055afd57 (patch) | |
tree | 26944682364c373287a37895890601d644bf5593 | |
parent | 9123b493e5e63fcb298a0afac2c50e6a0b5bb955 (diff) |
sw: remove class SwRefreshListenerContainer
Change-Id: Ieaec254358a70167deba1f604d766cceb8e3c5a7
-rw-r--r-- | sw/Library_sw.mk | 1 | ||||
-rw-r--r-- | sw/inc/RefreshListenerContainer.hxx | 32 | ||||
-rw-r--r-- | sw/source/core/inc/unofield.hxx | 2 | ||||
-rw-r--r-- | sw/source/ui/uno/RefreshListenerContainer.cxx | 48 |
4 files changed, 1 insertions, 82 deletions
diff --git a/sw/Library_sw.mk b/sw/Library_sw.mk index 264e35a707e4..d739c72b2472 100644 --- a/sw/Library_sw.mk +++ b/sw/Library_sw.mk @@ -667,7 +667,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\ sw/source/ui/uiview/viewsrch \ sw/source/ui/uiview/viewstat \ sw/source/ui/uiview/viewtab \ - sw/source/ui/uno/RefreshListenerContainer \ sw/source/ui/uno/SwXDocumentSettings \ sw/source/ui/uno/SwXFilterOptions \ sw/source/ui/uno/dlelstnr \ diff --git a/sw/inc/RefreshListenerContainer.hxx b/sw/inc/RefreshListenerContainer.hxx deleted file mode 100644 index d06dfba42c1d..000000000000 --- a/sw/inc/RefreshListenerContainer.hxx +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _REFRESH_LISTENER_CONTAINER_HXX_ -#define _REFRESH_LISTENER_CONTAINER_HXX_ - -#include <unoevtlstnr.hxx> - -class SwRefreshListenerContainer : public SwEventListenerContainer -{ -public: - SwRefreshListenerContainer( ::com::sun::star::uno::XInterface* pxParent); - void Refreshed(); -}; -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/core/inc/unofield.hxx b/sw/source/core/inc/unofield.hxx index 2636e71be5e4..003979179cdd 100644 --- a/sw/source/core/inc/unofield.hxx +++ b/sw/source/core/inc/unofield.hxx @@ -33,7 +33,7 @@ #include <tools/string.hxx> #include <calbck.hxx> -#include <RefreshListenerContainer.hxx> +#include <unoevtlstnr.hxx> class SwFieldType; diff --git a/sw/source/ui/uno/RefreshListenerContainer.cxx b/sw/source/ui/uno/RefreshListenerContainer.cxx deleted file mode 100644 index 8ebae754de81..000000000000 --- a/sw/source/ui/uno/RefreshListenerContainer.cxx +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#include <RefreshListenerContainer.hxx> -#include <com/sun/star/lang/EventObject.hpp> -#include <com/sun/star/lang/XEventListener.hpp> -#include <com/sun/star/util/XRefreshListener.hpp> - -using namespace ::com::sun::star; -using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; -using namespace ::com::sun::star::util; - -SwRefreshListenerContainer::SwRefreshListenerContainer( uno::XInterface* pxParent2 ) -: SwEventListenerContainer ( pxParent2 ) -{ -} - -void SwRefreshListenerContainer::Refreshed () -{ - if(!pListenerArr) - return; - - lang::EventObject aObj(pxParent); - for(sal_uInt16 i = 0, nEnd = pListenerArr->size(); i < nEnd ; i++) - { - Reference < XRefreshListener > xRefreshListener = Reference < XRefreshListener > ( *(*pListenerArr)[i], UNO_QUERY ); - xRefreshListener->refreshed(aObj); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |