xref: /AOO41X/main/offapi/com/sun/star/linguistic2/XDictionary1.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_linguistic2_XDictionary1_idl__
24#define __com_sun_star_linguistic2_XDictionary1_idl__
25
26#ifndef __com_sun_star_container_XNamed_idl__
27#include <com/sun/star/container/XNamed.idl>
28#endif
29
30#ifndef __com_sun_star_linguistic2_DictionaryType_idl__
31#include <com/sun/star/linguistic2/DictionaryType.idl>
32#endif
33
34#ifndef __com_sun_star_linguistic2_XDictionaryEntry_idl__
35#include <com/sun/star/linguistic2/XDictionaryEntry.idl>
36#endif
37
38#ifndef __com_sun_star_linguistic2_XDictionaryEventListener_idl__
39#include <com/sun/star/linguistic2/XDictionaryEventListener.idl>
40#endif
41
42//=============================================================================
43
44module com { module sun { module star { module linguistic2 {
45
46//=============================================================================
47/**
48    @deprecated
49*/
50published interface XDictionary1 : com::sun::star::container::XNamed
51{
52    //-------------------------------------------------------------------------
53    com::sun::star::linguistic2::DictionaryType getDictionaryType();
54
55    //-------------------------------------------------------------------------
56    void setActive( [in] boolean bActivate );
57
58    //-------------------------------------------------------------------------
59    boolean isActive();
60
61    //-------------------------------------------------------------------------
62    short getCount();
63
64    //-------------------------------------------------------------------------
65    short getLanguage();
66
67    //-------------------------------------------------------------------------
68    void setLanguage( [in] short nLang );
69
70    //-------------------------------------------------------------------------
71    com::sun::star::linguistic2::XDictionaryEntry getEntry( [in] string aWord );
72
73    //-------------------------------------------------------------------------
74    boolean addEntry( [in] com::sun::star::linguistic2::XDictionaryEntry xDicEntry );
75
76    //-------------------------------------------------------------------------
77    boolean add(
78            [in] string aWord,
79            [in] boolean bIsNegative,
80            [in] string aRplcText );
81
82    //-------------------------------------------------------------------------
83    boolean remove( [in] string aWord );
84
85    //-------------------------------------------------------------------------
86    boolean isFull();
87
88    //-------------------------------------------------------------------------
89    sequence<com::sun::star::linguistic2::XDictionaryEntry> getEntries();
90
91    //-------------------------------------------------------------------------
92    void clear();
93
94    //-------------------------------------------------------------------------
95    boolean addDictionaryEventListener( [in] com::sun::star::linguistic2::XDictionaryEventListener xListener );
96
97    //-------------------------------------------------------------------------
98    boolean removeDictionaryEventListener( [in] com::sun::star::linguistic2::XDictionaryEventListener xListener );
99
100};
101
102//=============================================================================
103
104}; }; }; };
105
106#endif
107
108
109