Replace XFA_HWIDGET with IXFA_Widget*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffdocview.cpp
index 32d2789..7f80c41 100644 (file)
@@ -222,9 +222,9 @@ IXFA_PageView* CXFA_FFDocView::GetPageView(FX_INT32 nIndex)
     }\r
     return (CXFA_FFPageView*)m_pXFADocLayout->GetPage(nIndex);\r
 }\r
-XFA_HWIDGET CXFA_FFDocView::GetWidgetByName(FX_WSTR wsName)\r
+IXFA_Widget* CXFA_FFDocView::GetWidgetByName(FX_WSTR wsName)\r
 {\r
-    return (XFA_HWIDGET)GetWidgetByName(wsName, NULL);\r
+    return GetWidgetByName(wsName, NULL);\r
 }\r
 CXFA_WidgetAcc* CXFA_FFDocView::GetWidgetAccByName(FX_WSTR wsName)\r
 {\r
@@ -353,9 +353,9 @@ IXFA_WidgetAccIterator* CXFA_FFDocView::CreateWidgetAccIterator(XFA_WIDGETORDER
     }\r
     return FX_NEW CXFA_WidgetAccIterator(this, pFormRoot);\r
 }\r
-XFA_HWIDGET CXFA_FFDocView::GetFocusWidget()\r
+IXFA_Widget* CXFA_FFDocView::GetFocusWidget()\r
 {\r
-    return (XFA_HWIDGET)m_pFocusWidget;\r
+    return m_pFocusWidget;\r
 }\r
 void CXFA_FFDocView::KillFocus()\r
 {\r
@@ -366,7 +366,7 @@ void CXFA_FFDocView::KillFocus()
     m_pFocusWidget = NULL;\r
     m_pOldFocusWidget = NULL;\r
 }\r
-FX_BOOL CXFA_FFDocView::SetFocus(XFA_HWIDGET hWidget)\r
+FX_BOOL CXFA_FFDocView::SetFocus(IXFA_Widget* hWidget)\r
 {\r
     CXFA_FFWidget* pNewFocus = (CXFA_FFWidget*)hWidget;\r
     if (m_pOldFocusWidget == pNewFocus) {\r
@@ -416,10 +416,10 @@ CXFA_WidgetAcc* CXFA_FFDocView::GetFocusWidgetAcc()
 void CXFA_FFDocView::SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc)\r
 {\r
     CXFA_FFWidget* pNewFocus = pWidgetAcc ? pWidgetAcc->GetNextWidget(NULL) : NULL;\r
-    if (SetFocus((XFA_HWIDGET)pNewFocus)) {\r
+    if (SetFocus(pNewFocus)) {\r
         m_pFocusAcc = pWidgetAcc;\r
         if (m_iStatus >= XFA_DOCVIEW_LAYOUTSTATUS_End) {\r
-            m_pDoc->GetDocProvider()->SetFocusWidget(m_pDoc, (XFA_HWIDGET)m_pFocusWidget);\r
+            m_pDoc->GetDocProvider()->SetFocusWidget(m_pDoc, m_pFocusWidget);\r
         }\r
     }\r
 }\r
@@ -865,15 +865,15 @@ void CXFA_FFDocWidgetIterator::Reset()
     m_ContentIterator.Reset();\r
     m_pCurWidget = NULL;\r
 }\r
-XFA_HWIDGET CXFA_FFDocWidgetIterator::MoveToFirst()\r
+IXFA_Widget* CXFA_FFDocWidgetIterator::MoveToFirst()\r
 {\r
     return NULL;\r
 }\r
-XFA_HWIDGET CXFA_FFDocWidgetIterator::MoveToLast()\r
+IXFA_Widget* CXFA_FFDocWidgetIterator::MoveToLast()\r
 {\r
     return NULL;\r
 }\r
-XFA_HWIDGET CXFA_FFDocWidgetIterator::MoveToNext()\r
+IXFA_Widget* CXFA_FFDocWidgetIterator::MoveToNext()\r
 {\r
     CXFA_Node* pItem = m_pCurWidget ? m_ContentIterator.MoveToNext() : m_ContentIterator.GetCurrent();\r
     while (pItem) {\r
@@ -882,22 +882,22 @@ XFA_HWIDGET CXFA_FFDocWidgetIterator::MoveToNext()
                 if (!m_pCurWidget->IsLoaded() && (m_pCurWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) {\r
                     m_pCurWidget->LoadWidget();\r
                 }\r
-                return (XFA_HWIDGET)m_pCurWidget;\r
+                return m_pCurWidget;\r
             }\r
         }\r
         pItem = m_ContentIterator.MoveToNext();\r
     }\r
     return NULL;\r
 }\r
-XFA_HWIDGET CXFA_FFDocWidgetIterator::MoveToPrevious()\r
+IXFA_Widget* CXFA_FFDocWidgetIterator::MoveToPrevious()\r
 {\r
     return NULL;\r
 }\r
-XFA_HWIDGET CXFA_FFDocWidgetIterator::GetCurrentWidget()\r
+IXFA_Widget* CXFA_FFDocWidgetIterator::GetCurrentWidget()\r
 {\r
     return NULL;\r
 }\r
-FX_BOOL CXFA_FFDocWidgetIterator::SetCurrentWidget(XFA_HWIDGET hWidget)\r
+FX_BOOL CXFA_FFDocWidgetIterator::SetCurrentWidget(IXFA_Widget* hWidget)\r
 {\r
     return FALSE;\r
 }\r