Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / linguistic2 / XLinguServiceEventBroadcaster.idl
blob70ce320bce3755767cb348b269e5c8af9b6fcf70
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_linguistic2_XLinguServiceEventBroadcaster_idl__
29 #define __com_sun_star_linguistic2_XLinguServiceEventBroadcaster_idl__
32 #include <com/sun/star/uno/XInterface.idl>
33 #include <com/sun/star/linguistic2/XLinguServiceEventListener.idl>
35 //=============================================================================
37 module com { module sun { module star { module linguistic2 {
39 //=============================================================================
40 /** is used to register a listener for LinguServiceEvents.
42 <P>This interface may be used by spell checker or hyphenator
43 implementations to allow clients to be registered and informed about
44 <type scope="com::sun::star::linguistic2">LinguServiceEvent</type>s.
45 </P>
47 <P>Note: The LinguServiceManager forwards the
48 <type scope="com::sun::star::linguistic2">LinguServiceEvent</type>s
49 it receives (from spell checkers or hyphenators) to its own listeners.
50 Thus, there should be no need to register
51 as a listener for a specific implementation./P>
53 @see <type scope="com::sun::star::linguistic2">XLinguServiceManager</type>
54 @see <type scope="com::sun::star::linguistic2">XLinguServiceEventListener</type>
56 published interface XLinguServiceEventBroadcaster : com::sun::star::uno::XInterface
58 //-------------------------------------------------------------------------
59 /**
60 @returns
61 <TRUE/> if the listener was successfully added,
62 <FALSE/> otherwise.
64 @param xLstnr
65 the listener to be added.
67 boolean addLinguServiceEventListener (
68 [in] com::sun::star::linguistic2::XLinguServiceEventListener xLstnr );
70 //-------------------------------------------------------------------------
71 /**
72 @returns
73 <TRUE/> if the listener was successfully removed,
74 <FALSE/> otherwise.
76 @param xLstnr
77 the listener to be removed.
79 boolean removeLinguServiceEventListener (
80 [in] com::sun::star::linguistic2::XLinguServiceEventListener xLstnr );
84 //=============================================================================
86 }; }; }; };
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */