Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / unotools / defaultencoding.hxx
blob8cde4bccbe04728fec6b7bbcb15eddf4c43f976d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_UNOTOOLS_DEFAULTENCODING_HXX
11 #define INCLUDED_UNOTOOLS_DEFAULTENCODING_HXX
13 #include <sal/config.h>
15 #include <unotools/unotoolsdllapi.h>
16 #include <rtl/ustring.hxx>
18 /** Determines which locale should be used by default in filters when importing non-unicode strings.
19 This value should be used when the file does not explicitly define encoding of 8-bit strings. It is
20 defined by officecfg::Office::Linguistic::General::DefaultLocale, or when it's not set,
21 officecfg::Setup::L10N::ooSetupSystemLocale, and is typically mapped to a corresponding Windows
22 codepage by filters.
24 @return
25 A BCP-47 language tag string.
27 UNOTOOLS_DLLPUBLIC OUString utl_getLocaleForGlobalDefaultEncoding();
29 #endif // INCLUDED_UNOTOOLS_DEFAULTENCODING_HXX
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */