LibreOffice Module xmloff (master)
1
include
xmloff
languagetagodf.hxx
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
10
#ifndef INCLUDED_XMLOFF_LANGUAGETAGODF_HXX
11
#define INCLUDED_XMLOFF_LANGUAGETAGODF_HXX
12
13
#include <
sal/config.h
>
14
#include <rtl/ustring.hxx>
15
#include <
i18nlangtag/languagetag.hxx
>
16
22
struct
LanguageTagODF
23
{
24
OUString
maRfcLanguageTag
;
25
OUString
maLanguage
;
26
OUString
maScript
;
27
OUString
maCountry
;
28
29
bool
isEmpty
()
const
{
return
maRfcLanguageTag
.isEmpty() &&
30
maLanguage
.isEmpty() &&
maScript
.isEmpty() &&
maCountry
.isEmpty(); }
31
35
LanguageTag
getLanguageTag
()
const
{
return
LanguageTag
(
maRfcLanguageTag
,
maLanguage
,
maScript
,
maCountry
); }
36
};
37
38
#endif
// INCLUDED_XMLOFF_LANGUAGETAGODF_HXX
39
40
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
LanguageTag
config.h
languagetag.hxx
LanguageTagODF
Helper to gather the single language tag relevant attributes during reading ODF and form a resulting ...
Definition:
languagetagodf.hxx:23
LanguageTagODF::getLanguageTag
LanguageTag getLanguageTag() const
Best call this only once per instance, it recreates a LanguageTag instance on every call.
Definition:
languagetagodf.hxx:35
LanguageTagODF::maScript
OUString maScript
Definition:
languagetagodf.hxx:26
LanguageTagODF::maLanguage
OUString maLanguage
Definition:
languagetagodf.hxx:25
LanguageTagODF::isEmpty
bool isEmpty() const
Definition:
languagetagodf.hxx:29
LanguageTagODF::maRfcLanguageTag
OUString maRfcLanguageTag
Definition:
languagetagodf.hxx:24
LanguageTagODF::maCountry
OUString maCountry
Definition:
languagetagodf.hxx:27
Generated on Sun Jul 30 2023 04:40:14 for LibreOffice Module xmloff (master) by
1.9.3