|
[ source navigation ] [ diff markup ] [ identifier search ] [ general search ] |
|||||
|
||||||
001 /************************************************************************* 002 * 003 * OpenOffice.org - a multi-platform office productivity suite 004 * 005 * $RCSfile: RefreshListenerContainer.cxx,v $ 006 * 007 * $Revision: 1.7 $ 008 * 009 * last change: $Author: hr $ $Date: 2007/09/27 12:39:39 $ 010 * 011 * The Contents of this file are made available subject to 012 * the terms of GNU Lesser General Public License Version 2.1. 013 * 014 * 015 * GNU Lesser General Public License Version 2.1 016 * ============================================= 017 * Copyright 2005 by Sun Microsystems, Inc. 018 * 901 San Antonio Road, Palo Alto, CA 94303, USA 019 * 020 * This library is free software; you can redistribute it and/or 021 * modify it under the terms of the GNU Lesser General Public 022 * License version 2.1, as published by the Free Software Foundation. 023 * 024 * This library is distributed in the hope that it will be useful, 025 * but WITHOUT ANY WARRANTY; without even the implied warranty of 026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 027 * Lesser General Public License for more details. 028 * 029 * You should have received a copy of the GNU Lesser General Public 030 * License along with this library; if not, write to the Free Software 031 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 032 * MA 02111-1307 USA 033 * 034 ************************************************************************/ 035 036 // MARKER(update_precomp.py): autogen include statement, do not remove 037 #include "precompiled_sw.hxx" 038 039 040 041 #ifndef _REFRESH_LISTENER_CONTAINER_HXX_ 042 #include <RefreshListenerContainer.hxx> 043 #endif 044 045 #ifndef _COM_SUN_STAR_LANG_EVENTOBJECT_HPP_ 046 #include <com/sun/star/lang/EventObject.hpp> 047 #endif 048 #ifndef _COM_SUN_STAR_LANG_XEVENTLISTENER_HPP_ 049 #include <com/sun/star/lang/XEventListener.hpp> 050 #endif 051 #ifndef _COM_SUN_STAR_UTIL_XREFRESHLISTENER_HPP_ 052 #include <com/sun/star/util/XRefreshListener.hpp> 053 #endif 054 055 using namespace ::com::sun::star; 056 using namespace ::com::sun::star::uno; 057 using namespace ::com::sun::star::lang; 058 using namespace ::com::sun::star::util; 059 060 SwRefreshListenerContainer::SwRefreshListenerContainer( uno::XInterface* pxParent2 ) 061 : SwEventListenerContainer ( pxParent2 ) 062 { 063 } 064 065 void SwRefreshListenerContainer::Refreshed () 066 { 067 if(!pListenerArr) 068 return; 069 070 lang::EventObject aObj(pxParent); 071 for(sal_uInt16 i = 0, nEnd = pListenerArr->Count(); i < nEnd ; i++) 072 { 073 Reference < XRefreshListener > xRefreshListener = Reference < XRefreshListener > ( *pListenerArr->GetObject(i), UNO_QUERY ); 074 xRefreshListener->refreshed(aObj); 075 } 076 }
| [ source navigation ] | [ diff markup ] | [ identifier search ] | [ general search ] |
| This page was automatically generated by the LXR engine. The LXR team |
|