Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffnotify.cpp
index e4e4cd3..2d6cc75 100644 (file)
@@ -298,9 +298,9 @@ void CXFA_FFNotify::AddCalcValidate(CXFA_Node* pNode)
     pDocView->AddCalculateWidgetAcc(pWidgetAcc);\r
     pDocView->AddValidateWidget(pWidgetAcc);\r
 }\r
-XFA_HDOC CXFA_FFNotify::GetHDOC()\r
+IXFA_Doc* CXFA_FFNotify::GetHDOC()\r
 {\r
-    return (XFA_HDOC)m_pDoc;\r
+    return m_pDoc;\r
 }\r
 IXFA_DocProvider* CXFA_FFNotify::GetDocProvider()\r
 {\r
@@ -336,7 +336,7 @@ CFX_WideString CXFA_FFNotify::GetCurrentDateTime()
     CFX_Unitime dataTime;\r
     dataTime.Now();\r
     CFX_WideString wsDateTime;\r
-    wsDateTime.Format((FX_LPCWSTR)L"%d%02d%02dT%02d%02d%02d", dataTime.GetYear(), dataTime.GetMonth(), dataTime.GetDay(), dataTime.GetHour(), dataTime.GetMinute(), dataTime.GetSecond());\r
+    wsDateTime.Format(L"%d%02d%02dT%02d%02d%02d", dataTime.GetYear(), dataTime.GetMonth(), dataTime.GetDay(), dataTime.GetHour(), dataTime.GetMinute(), dataTime.GetSecond());\r
     return wsDateTime;\r
 }\r
 void CXFA_FFNotify::ResetData(CXFA_WidgetData* pWidgetData)\r
@@ -529,7 +529,7 @@ void CXFA_FFNotify::OnChildAdded(CXFA_Node *pSender, FX_LPVOID pParam, FX_LPVOID
     }\r
     FX_BOOL bLayoutReady = !(pDocView->m_bInLayoutStatus) && (pDocView->GetLayoutStatus() >= XFA_DOCVIEW_LAYOUTSTATUS_End);\r
     if (bLayoutReady) {\r
-        m_pDoc->GetDocProvider()->SetChangeMark((XFA_HDOC)m_pDoc);\r
+        m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);\r
     }\r
 }\r
 void CXFA_FFNotify::OnChildRemoved(CXFA_Node *pSender, FX_LPVOID pParam, FX_LPVOID pParam2)\r
@@ -537,7 +537,7 @@ void CXFA_FFNotify::OnChildRemoved(CXFA_Node *pSender, FX_LPVOID pParam, FX_LPVO
     if (CXFA_FFDocView* pDocView = m_pDoc->GetDocView()) {\r
         FX_BOOL bLayoutReady = !(pDocView->m_bInLayoutStatus) && (pDocView->GetLayoutStatus() >= XFA_DOCVIEW_LAYOUTSTATUS_End);\r
         if (bLayoutReady) {\r
-            m_pDoc->GetDocProvider()->SetChangeMark((XFA_HDOC)m_pDoc);\r
+            m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);\r
         }\r
     }\r
 }\r