LibreOffice
LibreOffice 7.2 SDK API Reference
XLocale.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef __com_sun_star_resource_XLocale_idl__
20 #define __com_sun_star_resource_XLocale_idl__
21 
23 
25 
27 
28 
29 
30  module com { module sun { module star { module resource {
31 
37 {
50  com::sun::star::lang::Locale create( [in] string aLanguage,
51  [in] string aCountry,
52  [in] string aVariant );
53 
68 
77  void setDefault( [in] com::sun::star::lang::Locale newLocale );
78 
82  sequence<com::sun::star::lang::Locale> getAvailableLocales();
83 
87  sequence<string> getISOCountries();
88 
92  sequence<string> getISOLanguages();
93 
98  sequence<string> getLanguagesForCountry( [in] string country );
99 
105 
111 
118 
119 
130  [in] com::sun::star::lang::Locale inLocale );
131 
138 
149  [in] com::sun::star::lang::Locale inLocale );
150 
156 
167  [in] com::sun::star::lang::Locale inLocale );
168 
177 
188  [in] com::sun::star::lang::Locale inLocale );
189 
200 
201 };
202 
203 
204 }; }; }; };
205 
206 #endif
207 
208 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
is used to signal that a resource is missing.
Definition: MissingResourceException.idl:34
offers some operations on com::sun::star::lang::Locale structures.
Definition: XLocale.idl:37
string getDisplayLanguage([in] com::sun::star::lang::Locale locale, [in] com::sun::star::lang::Locale inLocale)
sequence< string > getISOCountries()
sequence< string > getISOLanguages()
com::sun::star::lang::Locale create([in] string aLanguage, [in] string aCountry, [in] string aVariant)
creates a locale from language, country, and variant.
string getDisplayName_Default([in] com::sun::star::lang::Locale locale)
string getISO3Country([in] com::sun::star::lang::Locale locale)
sequence< string > getLanguagesForCountry([in] string country)
string getISO3Language([in] com::sun::star::lang::Locale locale)
string getDisplayCountry_Default([in] com::sun::star::lang::Locale locale)
void setDefault([in] com::sun::star::lang::Locale newLocale)
sets the default locale for the whole environment.
string getDisplayVariant_Default([in] com::sun::star::lang::Locale locale)
string getDisplayName([in] com::sun::star::lang::Locale locale, [in] com::sun::star::lang::Locale inLocale)
string getDisplayVariant([in] com::sun::star::lang::Locale locale, [in] com::sun::star::lang::Locale inLocale)
sequence< com::sun::star::lang::Locale > getAvailableLocales()
com::sun::star::lang::Locale getDefault()
the common method of getting the current default locale.
string getDisplayCountry([in] com::sun::star::lang::Locale locale, [in] com::sun::star::lang::Locale inLocale)
string getDisplayLanguage_Default([in] com::sun::star::lang::Locale locale)
boolean equals([in] com::sun::star::lang::Locale l1, [in] com::sun::star::lang::Locale l2)
base interface of all UNO interfaces
Definition: XInterface.idl:48
Definition: Ambiguous.idl:22
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:48