Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cxfa_nodelocale.h
Go to the documentation of this file.
1
// Copyright 2014 The PDFium Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7
#
ifndef
XFA_FXFA_PARSER_CXFA_NODELOCALE_H_
8
#
define
XFA_FXFA_PARSER_CXFA_NODELOCALE_H_
9
10
#
include
"fxjs/gc/heap.h"
11
#
include
"v8/include/cppgc/garbage-collected.h"
12
#
include
"v8/include/cppgc/member.h"
13
#
include
"xfa/fxfa/fxfa_basic.h"
14
#
include
"xfa/fxfa/parser/gced_locale_iface.h"
15
16
class
CXFA_Node
;
17
18
WideString
XFA_PatternToString
(
LocaleIface
::
NumSubcategory
category);
19
20
class
CXFA_NodeLocale
final
:
public
GCedLocaleIface
{
21
public
:
22
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
;
23
~
CXFA_NodeLocale
()
override
;
24
25
// GCedLocaleIface:
26
void
Trace
(
cppgc
::Visitor* visitor)
const
override
;
27
WideString
GetName
()
const
override
;
28
WideString
GetDecimalSymbol
()
const
override
;
29
WideString
GetGroupingSymbol
()
const
override
;
30
WideString
GetPercentSymbol
()
const
override
;
31
WideString
GetMinusSymbol
()
const
override
;
32
WideString
GetCurrencySymbol
()
const
override
;
33
WideString
GetDateTimeSymbols
()
const
override
;
34
WideString
GetMonthName
(int32_t nMonth,
bool
bAbbr)
const
override
;
35
WideString
GetDayName
(int32_t nWeek,
bool
bAbbr)
const
override
;
36
WideString
GetMeridiemName
(
bool
bAM)
const
override
;
37
int
GetTimeZoneInMinutes
()
const
override
;
38
WideString
GetEraName
(
bool
bAD)
const
override
;
39
40
WideString
GetDatePattern
(
DateTimeSubcategory
eType)
const
override
;
41
WideString
GetTimePattern
(
DateTimeSubcategory
eType)
const
override
;
42
WideString
GetNumPattern
(
NumSubcategory
eType)
const
override
;
43
44
private
:
45
explicit
CXFA_NodeLocale(
CXFA_Node
* pNode);
46
47
CXFA_Node
* GetNodeByName(
CXFA_Node
* pParent,
WideStringView
wsName)
const
;
48
WideString
GetSymbol(
XFA_Element
eElement,
WideStringView
symbol_type)
const
;
49
WideString
GetCalendarSymbol(
XFA_Element
eElement,
50
int
index,
51
bool
bAbbr)
const
;
52
53
cppgc::Member<CXFA_Node>
const
m_pNode;
54
};
55
56
#
endif
// XFA_FXFA_PARSER_CXFA_NODELOCALE_H_
DCHECK
#define DCHECK
Definition
check.h:33
CXFA_LocaleMgr::SetDefLocale
void SetDefLocale(GCedLocaleIface *pLocale)
Definition
cxfa_localemgr.cpp:1229
CXFA_LocaleMgr::GetConfigLocaleName
std::optional< WideString > GetConfigLocaleName(CXFA_Node *pConfig) const
Definition
cxfa_localemgr.cpp:1233
CXFA_LocaleMgr::~CXFA_LocaleMgr
~CXFA_LocaleMgr() override
CXFA_LocaleMgr::GetDefLocale
GCedLocaleIface * GetDefLocale() override
Definition
cxfa_localemgr.cpp:1152
CXFA_LocaleMgr::LangID
LangID
Definition
cxfa_localemgr.h:28
CXFA_LocaleMgr::LangID::k_ja_JP
@ k_ja_JP
Definition
cxfa_localemgr.h:38
CXFA_LocaleMgr::LangID::k_pt_BR
@ k_pt_BR
Definition
cxfa_localemgr.h:40
CXFA_LocaleMgr::LangID::k_es_ES
@ k_es_ES
Definition
cxfa_localemgr.h:43
CXFA_LocaleMgr::LangID::k_zh_HK
@ k_zh_HK
Definition
cxfa_localemgr.h:29
CXFA_LocaleMgr::LangID::k_en_GB
@ k_en_GB
Definition
cxfa_localemgr.h:33
CXFA_LocaleMgr::LangID::k_es_LA
@ k_es_LA
Definition
cxfa_localemgr.h:42
CXFA_LocaleMgr::LangID::k_en_US
@ k_en_US
Definition
cxfa_localemgr.h:34
CXFA_LocaleMgr::LangID::k_zh_TW
@ k_zh_TW
Definition
cxfa_localemgr.h:31
CXFA_LocaleMgr::LangID::k_ru_RU
@ k_ru_RU
Definition
cxfa_localemgr.h:41
CXFA_LocaleMgr::LangID::k_zh_CN
@ k_zh_CN
Definition
cxfa_localemgr.h:30
CXFA_LocaleMgr::LangID::k_fr_FR
@ k_fr_FR
Definition
cxfa_localemgr.h:35
CXFA_LocaleMgr::LangID::k_nl_NL
@ k_nl_NL
Definition
cxfa_localemgr.h:32
CXFA_LocaleMgr::LangID::k_it_IT
@ k_it_IT
Definition
cxfa_localemgr.h:37
CXFA_LocaleMgr::LangID::k_ko_KR
@ k_ko_KR
Definition
cxfa_localemgr.h:39
CXFA_LocaleMgr::LangID::k_de_DE
@ k_de_DE
Definition
cxfa_localemgr.h:36
CXFA_LocaleMgr::GetLocaleByName
GCedLocaleIface * GetLocaleByName(const WideString &wsLocaleName) override
Definition
cxfa_localemgr.cpp:1205
CXFA_NodeLocale::Trace
void Trace(cppgc::Visitor *visitor) const override
Definition
cxfa_nodelocale.cpp:45
CXFA_NodeLocale::GetMeridiemName
WideString GetMeridiemName(bool bAM) const override
Definition
cxfa_nodelocale.cpp:91
CXFA_NodeLocale::GetName
WideString GetName() const override
Definition
cxfa_nodelocale.cpp:50
CXFA_NodeLocale::GetDayName
WideString GetDayName(int32_t nWeek, bool bAbbr) const override
Definition
cxfa_nodelocale.cpp:87
CXFA_NodeLocale::GetDatePattern
WideString GetDatePattern(DateTimeSubcategory eType) const override
Definition
cxfa_nodelocale.cpp:103
CXFA_NodeLocale::GetGroupingSymbol
WideString GetGroupingSymbol() const override
Definition
cxfa_nodelocale.cpp:59
CXFA_NodeLocale::GetTimeZoneInMinutes
int GetTimeZoneInMinutes() const override
Definition
cxfa_nodelocale.cpp:95
CXFA_NodeLocale::GetTimePattern
WideString GetTimePattern(DateTimeSubcategory eType) const override
Definition
cxfa_nodelocale.cpp:118
CXFA_NodeLocale::GetPercentSymbol
WideString GetPercentSymbol() const override
Definition
cxfa_nodelocale.cpp:63
CXFA_NodeLocale::GetMonthName
WideString GetMonthName(int32_t nMonth, bool bAbbr) const override
Definition
cxfa_nodelocale.cpp:83
CXFA_NodeLocale::GetEraName
WideString GetEraName(bool bAD) const override
Definition
cxfa_nodelocale.cpp:99
CXFA_NodeLocale::~CXFA_NodeLocale
~CXFA_NodeLocale() override
CXFA_NodeLocale::GetMinusSymbol
WideString GetMinusSymbol() const override
Definition
cxfa_nodelocale.cpp:67
CXFA_NodeLocale::GetDecimalSymbol
WideString GetDecimalSymbol() const override
Definition
cxfa_nodelocale.cpp:55
CXFA_NodeLocale::GetCurrencySymbol
WideString GetCurrencySymbol() const override
Definition
cxfa_nodelocale.cpp:71
CXFA_NodeLocale::GetDateTimeSymbols
WideString GetDateTimeSymbols() const override
Definition
cxfa_nodelocale.cpp:75
CXFA_NodeLocale::GetNumPattern
WideString GetNumPattern(NumSubcategory eType) const override
Definition
cxfa_nodelocale.cpp:133
CXFA_Node
Definition
cxfa_node.h:94
GCedLocaleIface
Definition
gced_locale_iface.h:14
LocaleIface
Definition
locale_iface.h:12
LocaleIface::GetName
virtual WideString GetName() const =0
LocaleIface::NumSubcategory
NumSubcategory
Definition
locale_iface.h:22
LocaleIface::DateTimeSubcategory
DateTimeSubcategory
Definition
locale_iface.h:14
fxcrt::WideString::operator==
bool operator==(const WideString &other) const
Definition
widestring.cpp:531
fxcrt::WideString::MakeLower
void MakeLower()
Definition
widestring.cpp:687
XFA_PatternToString
WideString XFA_PatternToString(LocaleIface::NumSubcategory category)
Definition
cxfa_nodelocale.cpp:27
DataAndBytesConsumed
fxcodec::DataAndBytesConsumed DataAndBytesConsumed
Definition
data_and_bytes_consumed.h:29
FXBSTR_ID
constexpr uint32_t FXBSTR_ID(uint8_t c1, uint8_t c2, uint8_t c3, uint8_t c4)
Definition
fx_string.h:19
XFA_Element
XFA_Element
Definition
fxfa_basic.h:75
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition
heap.h:32
cppgc
Definition
heap.h:12
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
WideStringView
fxcrt::WideStringView WideStringView
Definition
string_view_template.h:326
WideString
fxcrt::WideString WideString
Definition
widestring.h:207
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fxfa
parser
cxfa_nodelocale.h
Generated on
for Qt by
1.18.0