summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-07-18 06:01:07 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-18 06:01:07 -0700
commite8a80664a888526ca4f0d08b4e6b290eb0aa0d76 (patch)
tree063d663071a01f8eb58cc23e278e77039cfdab2f /xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
parent8d5315004400be520bd988c1789e3b0a800fb100 (diff)
downloadpdfium-e8a80664a888526ca4f0d08b4e6b290eb0aa0d76.tar.xz
Remove foxit app related setter and getter APIs in XFA code
No need to get or set foxit app type, name, and version, thus remove all these APIs and implementation. Review-Url: https://codereview.chromium.org/2050913002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
index 8bc71699b4..2ede85e204 100644
--- a/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
+++ b/xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp
@@ -54,22 +54,6 @@ void CScript_HostPseudoModel::AppType(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsAppType).AsStringC());
}
-void CScript_HostPseudoModel::FoxitAppType(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_INVAlID_PROP_SET);
- return;
- }
- CFX_WideString wsAppType;
- pNotify->GetAppProvider()->GetFoxitAppType(wsAppType);
- pValue->SetString(FX_UTF8Encode(wsAppType).AsStringC());
-}
-
void CScript_HostPseudoModel::CalculationsEnabled(CFXJSE_Value* pValue,
FX_BOOL bSetting,
XFA_ATTRIBUTE eAttribute) {
@@ -217,22 +201,6 @@ void CScript_HostPseudoModel::Version(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsVersion).AsStringC());
}
-void CScript_HostPseudoModel::FoxitVersion(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_UNABLE_SET_VERSION);
- return;
- }
- CFX_WideString wsVersion;
- pNotify->GetAppProvider()->GetFoxitVersion(wsVersion);
- pValue->SetString(FX_UTF8Encode(wsVersion).AsStringC());
-}
-
void CScript_HostPseudoModel::Name(CFXJSE_Value* pValue,
FX_BOOL bSetting,
XFA_ATTRIBUTE eAttribute) {
@@ -249,21 +217,6 @@ void CScript_HostPseudoModel::Name(CFXJSE_Value* pValue,
pValue->SetString(FX_UTF8Encode(wsAppName).AsStringC());
}
-void CScript_HostPseudoModel::FoxitName(CFXJSE_Value* pValue,
- FX_BOOL bSetting,
- XFA_ATTRIBUTE eAttribute) {
- CXFA_FFNotify* pNotify = m_pDocument->GetNotify();
- if (!pNotify) {
- return;
- }
- if (bSetting) {
- ThrowException(XFA_IDS_INVAlID_PROP_SET);
- return;
- }
- CFX_WideString wsFoxitAppName;
- pNotify->GetAppProvider()->GetFoxitAppName(wsFoxitAppName);
- pValue->SetString(FX_UTF8Encode(wsFoxitAppName).AsStringC());
-}
void CScript_HostPseudoModel::GotoURL(CFXJSE_Arguments* pArguments) {
if (!m_pDocument->GetScriptContext()->IsRunAtClient()) {
return;