LibreOffice
LibreOffice 5.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 
127  string getDisplayLanguage( [in] com::sun::star::lang::Locale locale,
128  [in] com::sun::star::lang::Locale inLocale );
129 
135  string getDisplayCountry_Default( [in] com::sun::star::lang::Locale locale );
136 
144  string getDisplayCountry( [in] com::sun::star::lang::Locale locale,
145  [in] com::sun::star::lang::Locale inLocale );
146 
151  string getDisplayVariant_Default( [in] com::sun::star::lang::Locale locale );
152 
160  string getDisplayVariant( [in] com::sun::star::lang::Locale locale,
161  [in] com::sun::star::lang::Locale inLocale );
162 
168  string getDisplayName_Default( [in] com::sun::star::lang::Locale locale );
169 
177  string getDisplayName( [in] com::sun::star::lang::Locale locale,
178  [in] com::sun::star::lang::Locale inLocale );
179 
188  boolean equals( [in] com::sun::star::lang::Locale l1,
190 
191 };
192 
193 
194 }; }; }; };
195 
196 #endif
197 
198 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: Ambiguous.idl:22
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:52
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