LibreOffice
LibreOffice 6.1 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 
67  com::sun::star::lang::Locale getDefault();
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 
103  string getISO3Language( [in] com::sun::star::lang::Locale locale )
105 
109  string getISO3Country( [in] com::sun::star::lang::Locale locale )
111 
117  string getDisplayLanguage_Default( [in] com::sun::star::lang::Locale locale );
118 
119 
129  string getDisplayLanguage( [in] com::sun::star::lang::Locale locale,
130  [in] com::sun::star::lang::Locale inLocale );
131 
137  string getDisplayCountry_Default( [in] com::sun::star::lang::Locale locale );
138 
148  string getDisplayCountry( [in] com::sun::star::lang::Locale locale,
149  [in] com::sun::star::lang::Locale inLocale );
150 
155  string getDisplayVariant_Default( [in] com::sun::star::lang::Locale locale );
156 
166  string getDisplayVariant( [in] com::sun::star::lang::Locale locale,
167  [in] com::sun::star::lang::Locale inLocale );
168 
176  string getDisplayName_Default( [in] com::sun::star::lang::Locale locale );
177 
187  string getDisplayName( [in] com::sun::star::lang::Locale locale,
188  [in] com::sun::star::lang::Locale inLocale );
189 
198  boolean equals( [in] com::sun::star::lang::Locale l1,
200 
201 };
202 
203 
204 }; }; }; };
205 
206 #endif
207 
208 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: Ambiguous.idl:22
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:47
is used to signal that a resource is missing.
Definition: MissingResourceException.idl:33
offers some operations on com::sun::star::lang::Locale structures.
Definition: XLocale.idl:36
base interface of all UNO interfaces
Definition: XInterface.idl:47