OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/fxfa/parser/xfa_localemgr.h" | 7 #include "xfa/fxfa/parser/xfa_localemgr.h" |
8 | 8 |
9 #include "core/fxcodec/include/fx_codec.h" | 9 #include "core/fxcodec/include/fx_codec.h" |
10 #include "core/fxcrt/include/fx_xml.h" | 10 #include "core/fxcrt/include/fx_xml.h" |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 IFX_Locale* pLocale = GetLocale(dwLangueID); | 1240 IFX_Locale* pLocale = GetLocale(dwLangueID); |
1241 if (pLocale) | 1241 if (pLocale) |
1242 m_XMLLocaleArray.Add(pLocale); | 1242 m_XMLLocaleArray.Add(pLocale); |
1243 return pLocale; | 1243 return pLocale; |
1244 } | 1244 } |
1245 void CXFA_LocaleMgr::SetDefLocale(IFX_Locale* pLocale) { | 1245 void CXFA_LocaleMgr::SetDefLocale(IFX_Locale* pLocale) { |
1246 m_pDefLocale = pLocale; | 1246 m_pDefLocale = pLocale; |
1247 } | 1247 } |
1248 CFX_WideStringC CXFA_LocaleMgr::GetConfigLocaleName(CXFA_Node* pConfig) { | 1248 CFX_WideStringC CXFA_LocaleMgr::GetConfigLocaleName(CXFA_Node* pConfig) { |
1249 if (!(m_dwLocaleFlags & 0x01)) { | 1249 if (!(m_dwLocaleFlags & 0x01)) { |
1250 m_wsConfigLocale.Empty(); | 1250 m_wsConfigLocale.clear(); |
1251 if (pConfig) { | 1251 if (pConfig) { |
1252 CXFA_Node* pChildfConfig = | 1252 CXFA_Node* pChildfConfig = |
1253 pConfig->GetFirstChildByClass(XFA_ELEMENT_Acrobat); | 1253 pConfig->GetFirstChildByClass(XFA_ELEMENT_Acrobat); |
1254 if (!pChildfConfig) { | 1254 if (!pChildfConfig) { |
1255 pChildfConfig = pConfig->GetFirstChildByClass(XFA_ELEMENT_Present); | 1255 pChildfConfig = pConfig->GetFirstChildByClass(XFA_ELEMENT_Present); |
1256 } | 1256 } |
1257 CXFA_Node* pCommon = | 1257 CXFA_Node* pCommon = |
1258 pChildfConfig | 1258 pChildfConfig |
1259 ? pChildfConfig->GetFirstChildByClass(XFA_ELEMENT_Common) | 1259 ? pChildfConfig->GetFirstChildByClass(XFA_ELEMENT_Common) |
1260 : NULL; | 1260 : NULL; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 m_tz.tzMinute = (int8_t)((FXSYS_abs((int)timezone) % 3600) / 60); | 1303 m_tz.tzMinute = (int8_t)((FXSYS_abs((int)timezone) % 3600) / 60); |
1304 #endif | 1304 #endif |
1305 } | 1305 } |
1306 CXFA_TimeZoneProvider::~CXFA_TimeZoneProvider() {} | 1306 CXFA_TimeZoneProvider::~CXFA_TimeZoneProvider() {} |
1307 void CXFA_TimeZoneProvider::SetTimeZone(FX_TIMEZONE& tz) { | 1307 void CXFA_TimeZoneProvider::SetTimeZone(FX_TIMEZONE& tz) { |
1308 m_tz = tz; | 1308 m_tz = tz; |
1309 } | 1309 } |
1310 void CXFA_TimeZoneProvider::GetTimeZone(FX_TIMEZONE& tz) { | 1310 void CXFA_TimeZoneProvider::GetTimeZone(FX_TIMEZONE& tz) { |
1311 tz = m_tz; | 1311 tz = m_tz; |
1312 } | 1312 } |
OLD | NEW |