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_XConversionPropertyType_idl__ 24#define __com_sun_star_linguistic2_XConversionPropertyType_idl__ 25 26 27#ifndef __com_sun_star_uno_XInterface_idl__ 28#include <com/sun/star/uno/XInterface.idl> 29#endif 30 31 32#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 33#include <com/sun/star/lang/IllegalArgumentException.idl> 34#endif 35 36#ifndef __com_sun_star_container_NoSuchElementException_idl__ 37#include <com/sun/star/container/NoSuchElementException.idl> 38#endif 39 40 41//============================================================================= 42 43module com { module sun { module star { module linguistic2 { 44 45//============================================================================= 46/** allows set and retrieve the property type of an entry in a 47 conversion dictionary 48 49 <p>The property type must be one of 50 <type scope="com::sun::star::linguistic2">ConversionPropertyType</type></p> 51 52 @see com::sun::star::linguistic2::XConversionDictionary 53 @see com::sun::star::linguistic2::ConversionPropertyType 54 55 @since OpenOffice 2.0 56*/ 57published interface XConversionPropertyType : com::sun::star::uno::XInterface 58{ 59 60 //------------------------------------------------------------------------- 61 /** sets the property type for the specified entry. 62 63 <p>The conversion entry is specified by the pair 64 ( aLeftText, aRightText ).</p> 65 66 @param aLeftText 67 the left text of the dictionary entry. 68 @param aRightText 69 the right text of the dictionary entry. 70 @param nPropertyType 71 the property type to be set for the entry 72 */ 73 void setPropertyType( 74 [in] string aLeftText, 75 [in] string aRightText, 76 [in] short nPropertyType ) 77 raises( com::sun::star::container::NoSuchElementException, 78 com::sun::star::lang::IllegalArgumentException ); 79 80 //------------------------------------------------------------------------- 81 /** returns the property type for the specified entry. 82 83 <p>The conversion entry is specified by the pair 84 ( aLeftText, aRightText ).</p> 85 86 @param aLeftText 87 the left text of the dictionary entry. 88 @param aRightText 89 the right text of the dictionary entry. 90 @returns 91 returns the property type for the entry with the specified 92 left text. 93 */ 94 short getPropertyType( 95 [in] string aLeftText, 96 [in] string aRightText ) 97 raises( com::sun::star::container::NoSuchElementException ); 98 99}; 100 101//============================================================================= 102 103}; }; }; }; 104 105#endif 106 107