Kaydet (Commit) 3c177e98 authored tarafından Michael Stahl's avatar Michael Stahl

sw: remove class SwRefreshListenerContainer

Change-Id: Ieaec254358a70167deba1f604d766cceb8e3c5a7
üst 9123b493
...@@ -667,7 +667,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\ ...@@ -667,7 +667,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
sw/source/ui/uiview/viewsrch \ sw/source/ui/uiview/viewsrch \
sw/source/ui/uiview/viewstat \ sw/source/ui/uiview/viewstat \
sw/source/ui/uiview/viewtab \ sw/source/ui/uiview/viewtab \
sw/source/ui/uno/RefreshListenerContainer \
sw/source/ui/uno/SwXDocumentSettings \ sw/source/ui/uno/SwXDocumentSettings \
sw/source/ui/uno/SwXFilterOptions \ sw/source/ui/uno/SwXFilterOptions \
sw/source/ui/uno/dlelstnr \ sw/source/ui/uno/dlelstnr \
......
/* -*- 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: */
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <tools/string.hxx> #include <tools/string.hxx>
#include <calbck.hxx> #include <calbck.hxx>
#include <RefreshListenerContainer.hxx> #include <unoevtlstnr.hxx>
class SwFieldType; class SwFieldType;
......
/* -*- 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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment