xref: /aoo4110/main/i18npool/inc/servicename.hxx (revision b1cdbd2c)
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 /*
24 Service Name
25   com.sun.star.i18n.Transliteration     ... dispatching UNO object and generic methods
26   com.sun.star.i18n.Transliteration.u2l ... upper to lower
27   com.sun.star.i18n.Transliteration.l2u ... lower to upper
28   com.sun.star.i18n.Transliteration.caseignore ... case ignore
29   com.sun.star.i18n.Transliteration.l10n ... other
30 
31   We have to adopt different service name for internal UNO objects.
32   Case realted functionality vary depending on Locale.
33 
34 
35 Implementation Name
36   For geneic service: com.sun.star.i18n.Transliteration,
37          com.sun.star.i18n.Transliteration
38 
39   com.sun.star.i18n.Transliteration.u2l
40   com.sun.star.i18n.Transliteration.l2u
41   com.sun.star.i18n.Transliteration.caseignore
42   For these there services above,
43 
44    	  com.sun.star.i18n.Transliteration.ja_JP
45                                             ^^^^^
46 					    Locale name
47 
48   For com.sun.star.i18n.l10n.Transliteration service,
49    	  com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH,
50    	  com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH,
51    	  com.sun.star.i18n.Transliteration.IGNORE_WIDTH,
52    	  com.sun.star.i18n.Transliteration.KATAKANA_HIRAGANA,
53    	  com.sun.star.i18n.Transliteration.HIRAGANA_KATAKANA,
54    	  com.sun.star.i18n.Transliteration.IGNORE_KANA,
55 
56           ... These objects above can be used in every Locale context.
57 
58 */
59 
60 
61 #ifndef _I18N_SERVICENAME_HXX_
62 #define _I18N_SERVICENAME_HXX_
63 
64 
65 
66 #define	TRLT_SERVICELNAME "com.sun.star.i18n.Transliteration"
67 #define	TRLT_SERVICELNAME_PREFIX TRLT_SERVICELNAME "."
68 #define	TRLT_SERVICELNAME_U2L	TRLT_SERVICELNAME_PREFIX "u2l"
69 #define	TRLT_SERVICELNAME_L2U	TRLT_SERVICELNAME_PREFIX "l2u"
70 #define	TRLT_SERVICELNAME_CASEIGNORE TRLT_SERVICELNAME_PREFIX "caseignore"
71 #define	TRLT_SERVICELNAME_L10N	TRLT_SERVICELNAME_PREFIX "l10n"
72 
73 #define	TRLT_IMPLNAME "com.sun.star.i18n.Transliteration"
74 #define	TRLT_IMPLNAME_PREFIX_LEN	34
75 #define	TRLT_IMPLNAME_PREFIX "com.sun.star.i18n.Transliteration."
76 //	 		      1...5...901...5...901...5...901..4  --> 34
77 
78 #define	TRLT_IMPLNAME_L10N  TRLT_IMPLNAME_PREFIX "l10n"
79 #define	TRLT_IMPLNAME_FH  TRLT_IMPLNAME_PREFIX "FULLWIDTH_HALFWIDTH" // for test
80 #define	TRLT_IMPLNAME_Ja_JP TRLT_IMPLNAME_PREFIX "ja_JP"
81 
82 #endif
83