Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / parser / xfa_script_hostpseudomodel.cpp
index fbf69a3..0189e5e 100644 (file)
@@ -65,7 +65,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_CalculationsEnabled(FXJSE_H
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     if (bSetting) {\r
         pNotify->GetDocProvider()->SetCalculationsEnabled(hDoc, FXJSE_Value_ToBoolean(hValue));\r
         return;\r
@@ -79,7 +79,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_CurrentPage(FXJSE_HVALUE hV
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     if (bSetting) {\r
         pNotify->GetDocProvider()->SetCurrentPage(hDoc, FXJSE_Value_ToInteger(hValue));\r
         return;\r
@@ -107,7 +107,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_NumPages(FXJSE_HVALUE hValu
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     if (bSetting) {\r
         ThrowScriptErrorMessage(XFA_IDS_UNABLE_SET_NUMPAGES);\r
         return;\r
@@ -138,7 +138,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_Title(FXJSE_HVALUE hValue,
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     if (bSetting) {\r
         CFX_ByteString bsValue;\r
         FXJSE_Value_ToUTF8String(hValue, bsValue);\r
@@ -155,7 +155,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_ValidationsEnabled(FXJSE_HV
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     if (bSetting) {\r
         pNotify->GetDocProvider()->SetValidationsEnabled(hDoc, FXJSE_Value_ToBoolean(hValue));\r
         return;\r
@@ -250,7 +250,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_GotoURL(CFXJSE_Arguments* p
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     CFX_WideString wsURL;\r
     if (iLength >= 1) {\r
         CFX_ByteString bsURL = pArguments->GetUTF8String(0);\r
@@ -466,7 +466,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_SetFocus(CFXJSE_Arguments*
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     CXFA_Node* pNode = NULL;\r
     if (iLength >= 1) {\r
         FXJSE_HVALUE hValue = pArguments->GetValue(0);\r
@@ -608,7 +608,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_Print(CFXJSE_Arguments* pAr
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     FX_DWORD dwOptions = 0;\r
     FX_BOOL bShowDialog = TRUE;\r
     if (iLength >= 1) {\r
@@ -679,7 +679,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_ImportData(CFXJSE_Arguments
         CFX_ByteString bsFilePath = pArguments->GetUTF8String(0);\r
         wsFilePath = CFX_WideString::FromUTF8(bsFilePath, bsFilePath.GetLength());\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     pNotify->GetDocProvider()->ImportData(hDoc, wsFilePath);\r
 }\r
 void CScript_HostPseudoModel::Script_HostPseudoModel_ExportData(CFXJSE_Arguments* pArguments)\r
@@ -693,7 +693,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_ExportData(CFXJSE_Arguments
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     CFX_WideString wsFilePath;\r
     FX_BOOL bXDP = TRUE;\r
     if (iLength >= 1) {\r
@@ -711,7 +711,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_PageUp(CFXJSE_Arguments* pA
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     FX_INT32 nCurPage = pNotify->GetDocProvider()->GetCurrentPage(hDoc);\r
     FX_INT32 nNewPage = 0;\r
     if (nCurPage <= 1) {\r
@@ -726,7 +726,7 @@ void CScript_HostPseudoModel::Script_HostPseudoModel_PageDown(CFXJSE_Arguments*
     if (!pNotify) {\r
         return;\r
     }\r
-    XFA_HDOC hDoc = pNotify->GetHDOC();\r
+    IXFA_Doc* hDoc = pNotify->GetHDOC();\r
     FX_INT32 nCurPage = pNotify->GetDocProvider()->GetCurrentPage(hDoc);\r
     FX_INT32 nPageCount = pNotify->GetDocProvider()->CountPages(hDoc);\r
     if (!nPageCount || nCurPage == nPageCount) {\r