Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sw / dlelstnr.hxx
blob5b2baed922918f1690d4796c936447250475a5de
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dlelstnr.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _DLELSTNR_HXX_
32 #define _DLELSTNR_HXX_
35 #ifndef _COM_SUN_STAR_LINGUISTIC2_XDICTIONARYLISTEVENTLISTENER_HPP_
36 #include <com/sun/star/linguistic2/XDictionaryListEventListener.hpp>
37 #endif
38 #ifndef _COM_SUN_STAR_LINGUISTIC2_XLINGUSERVICEEVENTLISTENER_HPP_
39 #include <com/sun/star/linguistic2/XLinguServiceEventListener.hpp>
40 #endif
41 #ifndef _COM_SUN_STAR_FRAME_XDESKTOP_HPP_
42 #include <com/sun/star/frame/XDesktop.hpp>
43 #endif
45 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
46 #include <cppuhelper/implbase2.hxx> // helper for implementations
47 #endif
50 namespace com { namespace sun { namespace star {
51 namespace linguistic2 {
52 class XDictionaryList;
53 class XLinguServiceManager;
55 namespace frame {
56 class XTerminateListener;
58 } } }
59 namespace binfilter {
61 ///////////////////////////////////////////////////////////////////////////
62 // SwLinguServiceEventListener
63 // is a EventListener that triggers spellchecking
64 // and hyphenation when relevant changes (to the
65 // dictionaries of the dictionary list, or properties) were made.
68 class SwLinguServiceEventListener :
69 public cppu::WeakImplHelper2
71 ::com::sun::star::linguistic2::XLinguServiceEventListener,
72 ::com::sun::star::frame::XTerminateListener
75 ::com::sun::star::uno::Reference<
76 ::com::sun::star::frame::XDesktop > xDesktop;
77 ::com::sun::star::uno::Reference<
78 ::com::sun::star::linguistic2::XLinguServiceManager > xLngSvcMgr;
80 // disallow use of copy-constructor and assignment operator
81 SwLinguServiceEventListener(const SwLinguServiceEventListener &);
82 SwLinguServiceEventListener & operator = (const SwLinguServiceEventListener &);
84 public:
85 SwLinguServiceEventListener();
86 virtual ~SwLinguServiceEventListener();
88 // XEventListener
89 virtual void SAL_CALL disposing(
90 const ::com::sun::star::lang::EventObject& rEventObj )
91 throw(::com::sun::star::uno::RuntimeException);
93 // XDictionaryListEventListener
94 virtual void SAL_CALL processDictionaryListEvent(
95 const ::com::sun::star::linguistic2::DictionaryListEvent& rDicListEvent)
96 throw( ::com::sun::star::uno::RuntimeException );
98 // XLinguServiceEventListener
99 virtual void SAL_CALL processLinguServiceEvent(
100 const ::com::sun::star::linguistic2::LinguServiceEvent& rLngSvcEvent )
101 throw(::com::sun::star::uno::RuntimeException);
103 // XTerminateListener
104 virtual void SAL_CALL queryTermination(
105 const ::com::sun::star::lang::EventObject& rEventObj )
106 throw(::com::sun::star::frame::TerminationVetoException, ::com::sun::star::uno::RuntimeException);
107 virtual void SAL_CALL notifyTermination(
108 const ::com::sun::star::lang::EventObject& rEventObj )
109 throw(::com::sun::star::uno::RuntimeException);
113 } //namespace binfilter
114 #endif