OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ |
8 #define XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/xfa_doclayout.h" | 10 #include "xfa/fxfa/parser/xfa_doclayout.h" |
11 | 11 |
12 class CXFA_FFWidget; | 12 class CXFA_FFWidget; |
13 class CXFA_FFDocView; | 13 class CXFA_FFDocView; |
14 | 14 |
15 class CXFA_FFPageView : public CXFA_ContainerLayoutItem { | 15 class CXFA_FFPageView : public CXFA_ContainerLayoutItem { |
16 public: | 16 public: |
17 CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea); | 17 CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea); |
18 ~CXFA_FFPageView() override; | 18 ~CXFA_FFPageView() override; |
19 | 19 |
20 CXFA_FFDocView* GetDocView() const; | 20 CXFA_FFDocView* GetDocView() const; |
21 int32_t GetPageViewIndex() const; | 21 int32_t GetPageViewIndex() const; |
22 void GetPageViewRect(CFX_RectF& rtPage) const; | 22 void GetPageViewRect(CFX_RectF& rtPage) const; |
23 void GetDisplayMatrix(CFX_Matrix& mt, | 23 void GetDisplayMatrix(CFX_Matrix& mt, |
24 const CFX_Rect& rtDisp, | 24 const CFX_Rect& rtDisp, |
25 int32_t iRotate) const; | 25 int32_t iRotate) const; |
26 IXFA_WidgetIterator* CreateWidgetIterator( | 26 IXFA_WidgetIterator* CreateWidgetIterator( |
27 uint32_t dwTraverseWay = XFA_TRAVERSEWAY_Form, | 27 uint32_t dwTraverseWay = XFA_TRAVERSEWAY_Form, |
28 uint32_t dwWidgetFilter = XFA_WIDGETFILTER_Visible | | 28 uint32_t dwWidgetFilter = XFA_WidgetStatus_Visible | |
29 XFA_WIDGETFILTER_Viewable | | 29 XFA_WidgetStatus_Viewable); |
30 XFA_WIDGETFILTER_AllType); | |
31 | 30 |
32 protected: | 31 protected: |
33 CXFA_FFDocView* const m_pDocView; | 32 CXFA_FFDocView* const m_pDocView; |
34 }; | 33 }; |
35 | 34 |
36 typedef CXFA_NodeIteratorTemplate<CXFA_LayoutItem, | 35 typedef CXFA_NodeIteratorTemplate<CXFA_LayoutItem, |
37 CXFA_TraverseStrategy_LayoutItem> | 36 CXFA_TraverseStrategy_LayoutItem> |
38 CXFA_LayoutItemIterator; | 37 CXFA_LayoutItemIterator; |
39 | 38 |
40 class CXFA_FFPageWidgetIterator : public IXFA_WidgetIterator { | 39 class CXFA_FFPageWidgetIterator : public IXFA_WidgetIterator { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 FX_BOOL bMarsterPage = FALSE); | 96 FX_BOOL bMarsterPage = FALSE); |
98 | 97 |
99 CXFA_WidgetArray m_TabOrderWidgetArray; | 98 CXFA_WidgetArray m_TabOrderWidgetArray; |
100 CXFA_FFPageView* m_pPageView; | 99 CXFA_FFPageView* m_pPageView; |
101 uint32_t m_dwFilter; | 100 uint32_t m_dwFilter; |
102 int32_t m_iCurWidget; | 101 int32_t m_iCurWidget; |
103 FX_BOOL m_bIgnorerelevant; | 102 FX_BOOL m_bIgnorerelevant; |
104 }; | 103 }; |
105 | 104 |
106 #endif // XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ | 105 #endif // XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_ |
OLD | NEW |