xref: /aoo4110/main/i18npool/inc/servicename.hxx (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski  *
3*b1cdbd2cSJim Jagielski  * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski  * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski  * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski  * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski  * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski  * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski  * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski  *
11*b1cdbd2cSJim Jagielski  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski  *
13*b1cdbd2cSJim Jagielski  * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski  * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski  * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski  * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski  * under the License.
19*b1cdbd2cSJim Jagielski  *
20*b1cdbd2cSJim Jagielski  *************************************************************/
21*b1cdbd2cSJim Jagielski 
22*b1cdbd2cSJim Jagielski 
23*b1cdbd2cSJim Jagielski /*
24*b1cdbd2cSJim Jagielski Service Name
25*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration     ... dispatching UNO object and generic methods
26*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.u2l ... upper to lower
27*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.l2u ... lower to upper
28*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.caseignore ... case ignore
29*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.l10n ... other
30*b1cdbd2cSJim Jagielski 
31*b1cdbd2cSJim Jagielski   We have to adopt different service name for internal UNO objects.
32*b1cdbd2cSJim Jagielski   Case realted functionality vary depending on Locale.
33*b1cdbd2cSJim Jagielski 
34*b1cdbd2cSJim Jagielski 
35*b1cdbd2cSJim Jagielski Implementation Name
36*b1cdbd2cSJim Jagielski   For geneic service: com.sun.star.i18n.Transliteration,
37*b1cdbd2cSJim Jagielski          com.sun.star.i18n.Transliteration
38*b1cdbd2cSJim Jagielski 
39*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.u2l
40*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.l2u
41*b1cdbd2cSJim Jagielski   com.sun.star.i18n.Transliteration.caseignore
42*b1cdbd2cSJim Jagielski   For these there services above,
43*b1cdbd2cSJim Jagielski 
44*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.ja_JP
45*b1cdbd2cSJim Jagielski                                             ^^^^^
46*b1cdbd2cSJim Jagielski 					    Locale name
47*b1cdbd2cSJim Jagielski 
48*b1cdbd2cSJim Jagielski   For com.sun.star.i18n.l10n.Transliteration service,
49*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH,
50*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH,
51*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.IGNORE_WIDTH,
52*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.KATAKANA_HIRAGANA,
53*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.HIRAGANA_KATAKANA,
54*b1cdbd2cSJim Jagielski    	  com.sun.star.i18n.Transliteration.IGNORE_KANA,
55*b1cdbd2cSJim Jagielski 
56*b1cdbd2cSJim Jagielski           ... These objects above can be used in every Locale context.
57*b1cdbd2cSJim Jagielski 
58*b1cdbd2cSJim Jagielski */
59*b1cdbd2cSJim Jagielski 
60*b1cdbd2cSJim Jagielski 
61*b1cdbd2cSJim Jagielski #ifndef _I18N_SERVICENAME_HXX_
62*b1cdbd2cSJim Jagielski #define _I18N_SERVICENAME_HXX_
63*b1cdbd2cSJim Jagielski 
64*b1cdbd2cSJim Jagielski 
65*b1cdbd2cSJim Jagielski 
66*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME "com.sun.star.i18n.Transliteration"
67*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME_PREFIX TRLT_SERVICELNAME "."
68*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME_U2L	TRLT_SERVICELNAME_PREFIX "u2l"
69*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME_L2U	TRLT_SERVICELNAME_PREFIX "l2u"
70*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME_CASEIGNORE TRLT_SERVICELNAME_PREFIX "caseignore"
71*b1cdbd2cSJim Jagielski #define	TRLT_SERVICELNAME_L10N	TRLT_SERVICELNAME_PREFIX "l10n"
72*b1cdbd2cSJim Jagielski 
73*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME "com.sun.star.i18n.Transliteration"
74*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME_PREFIX_LEN	34
75*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME_PREFIX "com.sun.star.i18n.Transliteration."
76*b1cdbd2cSJim Jagielski //	 		      1...5...901...5...901...5...901..4  --> 34
77*b1cdbd2cSJim Jagielski 
78*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME_L10N  TRLT_IMPLNAME_PREFIX "l10n"
79*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME_FH  TRLT_IMPLNAME_PREFIX "FULLWIDTH_HALFWIDTH" // for test
80*b1cdbd2cSJim Jagielski #define	TRLT_IMPLNAME_Ja_JP TRLT_IMPLNAME_PREFIX "ja_JP"
81*b1cdbd2cSJim Jagielski 
82*b1cdbd2cSJim Jagielski #endif
83