xref: /aoo41x/main/i18npool/inc/servicename.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 /*
28 Service Name
29   com.sun.star.i18n.Transliteration     ... dispatching UNO object and generic methods
30   com.sun.star.i18n.Transliteration.u2l ... upper to lower
31   com.sun.star.i18n.Transliteration.l2u ... lower to upper
32   com.sun.star.i18n.Transliteration.caseignore ... case ignore
33   com.sun.star.i18n.Transliteration.l10n ... other
34 
35   We have to adopt different service name for internal UNO objects.
36   Case realted functionality vary depending on Locale.
37 
38 
39 Implementation Name
40   For geneic service: com.sun.star.i18n.Transliteration,
41          com.sun.star.i18n.Transliteration
42 
43   com.sun.star.i18n.Transliteration.u2l
44   com.sun.star.i18n.Transliteration.l2u
45   com.sun.star.i18n.Transliteration.caseignore
46   For these there services above,
47 
48    	  com.sun.star.i18n.Transliteration.ja_JP
49                                             ^^^^^
50 					    Locale name
51 
52   For com.sun.star.i18n.l10n.Transliteration service,
53    	  com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH,
54    	  com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH,
55    	  com.sun.star.i18n.Transliteration.IGNORE_WIDTH,
56    	  com.sun.star.i18n.Transliteration.KATAKANA_HIRAGANA,
57    	  com.sun.star.i18n.Transliteration.HIRAGANA_KATAKANA,
58    	  com.sun.star.i18n.Transliteration.IGNORE_KANA,
59 
60           ... These objects above can be used in every Locale context.
61 
62 */
63 
64 
65 #ifndef _I18N_SERVICENAME_HXX_
66 #define _I18N_SERVICENAME_HXX_
67 
68 
69 
70 #define	TRLT_SERVICELNAME "com.sun.star.i18n.Transliteration"
71 #define	TRLT_SERVICELNAME_PREFIX TRLT_SERVICELNAME "."
72 #define	TRLT_SERVICELNAME_U2L	TRLT_SERVICELNAME_PREFIX "u2l"
73 #define	TRLT_SERVICELNAME_L2U	TRLT_SERVICELNAME_PREFIX "l2u"
74 #define	TRLT_SERVICELNAME_CASEIGNORE TRLT_SERVICELNAME_PREFIX "caseignore"
75 #define	TRLT_SERVICELNAME_L10N	TRLT_SERVICELNAME_PREFIX "l10n"
76 
77 #define	TRLT_IMPLNAME "com.sun.star.i18n.Transliteration"
78 #define	TRLT_IMPLNAME_PREFIX_LEN	34
79 #define	TRLT_IMPLNAME_PREFIX "com.sun.star.i18n.Transliteration."
80 //	 		      1...5...901...5...901...5...901..4  --> 34
81 
82 #define	TRLT_IMPLNAME_L10N  TRLT_IMPLNAME_PREFIX "l10n"
83 #define	TRLT_IMPLNAME_FH  TRLT_IMPLNAME_PREFIX "FULLWIDTH_HALFWIDTH" // for test
84 #define	TRLT_IMPLNAME_Ja_JP TRLT_IMPLNAME_PREFIX "ja_JP"
85 
86 #endif
87