Kaydet (Commit) 4ef04974 authored tarafından Eike Rathke's avatar Eike Rathke

New decimalSeparatorAlternative, LocaleDataItem2, XLocaleData5, tdf#81671

... and LocaleData2 service, which is necessary with new-style
services because optional interface at published service is not
possible.

Change-Id: I77703243a961b5385eaea146e4c9c42d5f30e1ad
üst 7cc8b825
......@@ -228,6 +228,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,com/sun/star/i18n,\
LocaleCalendar \
LocaleCalendar2 \
LocaleData \
LocaleData2 \
NativeNumberSupplier \
NumberFormatMapper \
OrdinalSuffix \
......@@ -2738,6 +2739,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/i18n,\
LineBreakResults \
LineBreakUserOptions \
LocaleDataItem \
LocaleDataItem2 \
LocaleItem \
Months \
MultipleCharsOutputException \
......@@ -2777,6 +2779,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/i18n,\
XLocaleData2 \
XLocaleData3 \
XLocaleData4 \
XLocaleData5 \
XNativeNumberSupplier \
XNumberFormatCode \
XOrdinalSuffix \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __com_sun_star_i18n_LocaleData2_idl__
#define __com_sun_star_i18n_LocaleData2_idl__
#include <com/sun/star/i18n/XLocaleData5.idl>
module com { module sun { module star { module i18n {
/** Access locale specific data.
Supersedes service com::sun::star::i18n::LocaleData
@since LibreOffice 6.0
*/
service LocaleData2 : XLocaleData5;
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __com_sun_star_i18n_LocaleDataItem2_idl__
#define __com_sun_star_i18n_LocaleDataItem2_idl__
#include <com/sun/star/i18n/LocaleDataItem.idl>
module com { module sun { module star { module i18n {
/**
Locale specific data, derived from LocaleDataItem adding an
alternative input decimal separator.
@since LibreOffice 6.0
*/
struct LocaleDataItem2 : LocaleDataItem
{
/** Alternative input decimal separator, for example, <b>"."</b> if
the regular locale dependent separator usually is not present on
keyboards used with that locale.
<p> This separator is optional, an empty string denotes no
alternative decimal separator shall be used.
*/
string decimalSeparatorAlternative;
};
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef __com_sun_star_i18n_XLocaleData5_idl__
#define __com_sun_star_i18n_XLocaleData5_idl__
#include <com/sun/star/i18n/XLocaleData4.idl>
module com { module sun { module star { module i18n {
/**
Access locale specific data.
<p> Derived from ::com::sun::star::i18n::XLocaleData4
this provides an additional method to return an instance of
com::sun::star::i18n::LocaleDataItem2
@since LibreOffice 6.0
*/
interface XLocaleData5 : com::sun::star::i18n::XLocaleData4
{
/** returns an instance of com::sun::star::i18n::LocaleDataItem2 for
a Locale.
*/
com::sun::star::i18n::LocaleDataItem2 getLocaleItem2( [in] com::sun::star::lang::Locale Locale );
};
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment