Index: xfa/include/fxfa/xfa_ffpageview.h |
diff --git a/xfa/fxfa/app/xfa_ffpageview.h b/xfa/include/fxfa/xfa_ffpageview.h |
similarity index 66% |
rename from xfa/fxfa/app/xfa_ffpageview.h |
rename to xfa/include/fxfa/xfa_ffpageview.h |
index 20818e71075bb8d9d9dd75e380ef7766be602120..cce1cc13e1a3ae8cae587b2a9297fde24490fcc2 100644 |
--- a/xfa/fxfa/app/xfa_ffpageview.h |
+++ b/xfa/include/fxfa/xfa_ffpageview.h |
@@ -4,33 +4,32 @@ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
-#ifndef XFA_FXFA_APP_XFA_FFPAGEVIEW_H_ |
-#define XFA_FXFA_APP_XFA_FFPAGEVIEW_H_ |
+#ifndef XFA_INCLUDE_FXFA_XFA_FFPAGEVIEW_H_ |
+#define XFA_INCLUDE_FXFA_XFA_FFPAGEVIEW_H_ |
#include "xfa/fxfa/parser/xfa_doclayout.h" |
class CXFA_FFWidget; |
class CXFA_FFDocView; |
-class CXFA_FFPageView : public CXFA_ContainerLayoutItem, public IXFA_PageView { |
+class CXFA_FFPageView : public CXFA_ContainerLayoutItem { |
public: |
CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea); |
~CXFA_FFPageView() override; |
- // IFXA_PageView: |
- IXFA_DocView* GetDocView() override; |
- int32_t GetPageViewIndex() override; |
- void GetPageViewRect(CFX_RectF& rtPage) override; |
+ CXFA_FFDocView* GetDocView(); |
+ int32_t GetPageViewIndex(); |
+ void GetPageViewRect(CFX_RectF& rtPage); |
void GetDisplayMatrix(CFX_Matrix& mt, |
const CFX_Rect& rtDisp, |
- int32_t iRotate) override; |
- int32_t LoadPageView(IFX_Pause* pPause = NULL) override; |
- void UnloadPageView() override; |
- IXFA_Widget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy) override; |
+ int32_t iRotate); |
+ int32_t LoadPageView(IFX_Pause* pPause = NULL); |
+ void UnloadPageView(); |
+ CXFA_FFWidget* GetWidgetByPos(FX_FLOAT fx, FX_FLOAT fy); |
IXFA_WidgetIterator* CreateWidgetIterator( |
uint32_t dwTraverseWay = XFA_TRAVERSEWAY_Form, |
uint32_t dwWidgetFilter = XFA_WIDGETFILTER_Visible | |
XFA_WIDGETFILTER_Viewable | |
- XFA_WIDGETFILTER_AllType) override; |
+ XFA_WIDGETFILTER_AllType); |
FX_BOOL IsPageViewLoaded(); |
@@ -45,20 +44,22 @@ class CXFA_FFPageWidgetIterator : public IXFA_WidgetIterator { |
public: |
CXFA_FFPageWidgetIterator(CXFA_FFPageView* pPageView, uint32_t dwFilter); |
virtual ~CXFA_FFPageWidgetIterator(); |
- virtual void Release() { delete this; } |
- virtual void Reset(); |
- virtual IXFA_Widget* MoveToFirst(); |
- virtual IXFA_Widget* MoveToLast(); |
- virtual IXFA_Widget* MoveToNext(); |
- virtual IXFA_Widget* MoveToPrevious(); |
- virtual IXFA_Widget* GetCurrentWidget(); |
- virtual FX_BOOL SetCurrentWidget(IXFA_Widget* hWidget); |
+ void Release() override { delete this; } |
+ |
+ void Reset() override; |
+ CXFA_FFWidget* MoveToFirst() override; |
+ CXFA_FFWidget* MoveToLast() override; |
+ CXFA_FFWidget* MoveToNext() override; |
+ CXFA_FFWidget* MoveToPrevious() override; |
+ CXFA_FFWidget* GetCurrentWidget() override; |
+ FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override; |
protected: |
- IXFA_Widget* GetWidget(CXFA_LayoutItem* pLayoutItem); |
+ CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); |
+ |
CXFA_FFPageView* m_pPageView; |
- IXFA_Widget* m_hCurWidget; |
+ CXFA_FFWidget* m_hCurWidget; |
uint32_t m_dwFilter; |
FX_BOOL m_bIgnorerelevant; |
CXFA_LayoutItemIterator m_sIterator; |
@@ -78,22 +79,17 @@ class CXFA_FFTabOrderPageWidgetIterator : public IXFA_WidgetIterator { |
uint32_t dwFilter); |
virtual ~CXFA_FFTabOrderPageWidgetIterator(); |
- virtual void Release(); |
+ void Release() override; |
- virtual void Reset(); |
- virtual IXFA_Widget* MoveToFirst(); |
- virtual IXFA_Widget* MoveToLast(); |
- virtual IXFA_Widget* MoveToNext(); |
- virtual IXFA_Widget* MoveToPrevious(); |
- virtual IXFA_Widget* GetCurrentWidget(); |
- virtual FX_BOOL SetCurrentWidget(IXFA_Widget* hWidget); |
+ void Reset() override; |
+ CXFA_FFWidget* MoveToFirst() override; |
+ CXFA_FFWidget* MoveToLast() override; |
+ CXFA_FFWidget* MoveToNext() override; |
+ CXFA_FFWidget* MoveToPrevious() override; |
+ CXFA_FFWidget* GetCurrentWidget() override; |
+ FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override; |
protected: |
- CXFA_WidgetArray m_TabOrderWidgetArray; |
- CXFA_FFPageView* m_pPageView; |
- uint32_t m_dwFilter; |
- int32_t m_iCurWidget; |
- FX_BOOL m_bIgnorerelevant; |
CXFA_FFWidget* GetTraverseWidget(CXFA_FFWidget* pWidget); |
CXFA_FFWidget* FindWidgetByName(const CFX_WideStringC& wsWidgetName, |
CXFA_FFWidget* pRefWidget); |
@@ -106,6 +102,12 @@ class CXFA_FFTabOrderPageWidgetIterator : public IXFA_WidgetIterator { |
FX_BOOL& bCurrentItem, |
FX_BOOL& bContentArea, |
FX_BOOL bMarsterPage = FALSE); |
+ |
+ CXFA_WidgetArray m_TabOrderWidgetArray; |
+ CXFA_FFPageView* m_pPageView; |
+ uint32_t m_dwFilter; |
+ int32_t m_iCurWidget; |
+ FX_BOOL m_bIgnorerelevant; |
}; |
-#endif // XFA_FXFA_APP_XFA_FFPAGEVIEW_H_ |
+#endif // XFA_INCLUDE_FXFA_XFA_FFPAGEVIEW_H_ |