Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_fftextedit.cpp
index b2e5299..4178910 100644 (file)
@@ -395,14 +395,14 @@ FX_BOOL CXFA_FFTextEdit::CheckWord(FX_BSTR sWord)
     if (sWord.IsEmpty() || m_pDataAcc->GetUIType() != XFA_ELEMENT_TextEdit) {\r
         return TRUE;\r
     }\r
-    return GetDoc()->GetDocProvider()->CheckWord((XFA_HDOC)GetDoc(), sWord);\r
+    return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord);\r
 }\r
 FX_BOOL CXFA_FFTextEdit::GetSuggestWords(FX_BSTR sWord, CFX_ByteStringArray &sSuggest)\r
 {\r
     if (m_pDataAcc->GetUIType() != XFA_ELEMENT_TextEdit) {\r
         return FALSE;\r
     }\r
-    return GetDoc()->GetDocProvider()->GetSuggestWords((XFA_HDOC)GetDoc(), sWord, sSuggest);\r
+    return GetDoc()->GetDocProvider()->GetSuggestWords(GetDoc(), sWord, sSuggest);\r
 }\r
 FX_INT32 CXFA_FFTextEdit::OnProcessMessage(CFWL_Message *pMessage)\r
 {\r
@@ -829,7 +829,7 @@ void CXFA_FFDateTimeEdit::OnSelectChanged(IFWL_Widget *pWidget, FX_INT32 iYear,
     CFWL_DateTimePicker* pDateTime = (CFWL_DateTimePicker*)m_pNormalWidget;\r
     pDateTime->SetEditText(wsDate);\r
     pDateTime->Update();\r
-    GetDoc()->GetDocProvider()->SetFocusWidget((XFA_HDOC)GetDoc(), NULL);\r
+    GetDoc()->GetDocProvider()->SetFocusWidget(GetDoc(), NULL);\r
     CXFA_EventParam eParam;\r
     eParam.m_eType = XFA_EVENT_Change;\r
     eParam.m_pTarget = m_pDataAcc;\r