Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffdocview.cpp
index bb6a5ce..32d2789 100644 (file)
@@ -277,7 +277,7 @@ void CXFA_FFDocView::ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc )
         }\r
     }\r
     if (bChanged) {\r
-        m_pDoc->GetDocProvider()->SetChangeMark((XFA_HDOC)m_pDoc);\r
+        m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);\r
     }\r
 }\r
 FX_INT32 CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam, CXFA_WidgetAcc* pWidgetAcc )\r
@@ -419,7 +419,7 @@ void CXFA_FFDocView::SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc)
     if (SetFocus((XFA_HWIDGET)pNewFocus)) {\r
         m_pFocusAcc = pWidgetAcc;\r
         if (m_iStatus >= XFA_DOCVIEW_LAYOUTSTATUS_End) {\r
-            m_pDoc->GetDocProvider()->SetFocusWidget((XFA_HDOC)m_pDoc, (XFA_HWIDGET)m_pFocusWidget);\r
+            m_pDoc->GetDocProvider()->SetFocusWidget(m_pDoc, (XFA_HWIDGET)m_pFocusWidget);\r
         }\r
     }\r
 }\r
@@ -709,8 +709,8 @@ void CXFA_FFDocView::RunCalculateRecursive(FX_INT32& iIndex)
 }\r
 FX_INT32 CXFA_FFDocView::RunCalculateWidgets()\r
 {\r
-    if (!m_pDoc->GetDocProvider()->IsCalculationsEnabled((XFA_HDOC)m_pDoc)) {\r
-        return  XFA_EVENTERROR_Disabled;\r
+    if (!m_pDoc->GetDocProvider()->IsCalculationsEnabled(m_pDoc)) {\r
+        return XFA_EVENTERROR_Disabled;\r
     }\r
     FX_INT32 iCounts = m_CalculateAccs.GetSize();\r
     FX_INT32 iIndex = 0;\r
@@ -737,7 +737,7 @@ FX_BOOL CXFA_FFDocView::InitCalculate(CXFA_Node* pNode)
 }\r
 FX_BOOL CXFA_FFDocView::InitValidate(CXFA_Node* pNode)\r
 {\r
-    if (!m_pDoc->GetDocProvider()->IsValidationsEnabled((XFA_HDOC)m_pDoc)) {\r
+    if (!m_pDoc->GetDocProvider()->IsValidationsEnabled(m_pDoc)) {\r
         return FALSE;\r
     }\r
     ExecEventActivityByDeepFirst(pNode, XFA_EVENT_Validate);\r
@@ -746,7 +746,7 @@ FX_BOOL CXFA_FFDocView::InitValidate(CXFA_Node* pNode)
 }\r
 FX_BOOL CXFA_FFDocView::RunValidate()\r
 {\r
-    if (!m_pDoc->GetDocProvider()->IsValidationsEnabled((XFA_HDOC)m_pDoc)) {\r
+    if (!m_pDoc->GetDocProvider()->IsValidationsEnabled(m_pDoc)) {\r
         return FALSE;\r
     }\r
     FX_INT32 iCounts = m_ValidateAccs.GetSize();\r
@@ -841,7 +841,7 @@ void CXFA_FFDocView::SetChangeMark()
     if (m_iStatus < XFA_DOCVIEW_LAYOUTSTATUS_End) {\r
         return;\r
     }\r
-    m_pDoc->GetDocProvider()->SetChangeMark((XFA_HDOC)m_pDoc);\r
+    m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);\r
 }\r
 CXFA_Node* CXFA_FFDocView::GetRootSubform()\r
 {\r