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_XFA_FFPAGEVIEW_H_ | 7 #ifndef XFA_FXFA_XFA_FFPAGEVIEW_H_ |
8 #define XFA_FXFA_XFA_FFPAGEVIEW_H_ | 8 #define XFA_FXFA_XFA_FFPAGEVIEW_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h" | 10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 public: | 41 public: |
42 CXFA_FFPageWidgetIterator(CXFA_FFPageView* pPageView, uint32_t dwFilter); | 42 CXFA_FFPageWidgetIterator(CXFA_FFPageView* pPageView, uint32_t dwFilter); |
43 ~CXFA_FFPageWidgetIterator() override; | 43 ~CXFA_FFPageWidgetIterator() override; |
44 | 44 |
45 void Reset() override; | 45 void Reset() override; |
46 CXFA_FFWidget* MoveToFirst() override; | 46 CXFA_FFWidget* MoveToFirst() override; |
47 CXFA_FFWidget* MoveToLast() override; | 47 CXFA_FFWidget* MoveToLast() override; |
48 CXFA_FFWidget* MoveToNext() override; | 48 CXFA_FFWidget* MoveToNext() override; |
49 CXFA_FFWidget* MoveToPrevious() override; | 49 CXFA_FFWidget* MoveToPrevious() override; |
50 CXFA_FFWidget* GetCurrentWidget() override; | 50 CXFA_FFWidget* GetCurrentWidget() override; |
51 FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override; | 51 bool SetCurrentWidget(CXFA_FFWidget* hWidget) override; |
52 | 52 |
53 protected: | 53 protected: |
54 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); | 54 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); |
55 | 55 |
56 CXFA_FFPageView* m_pPageView; | 56 CXFA_FFPageView* m_pPageView; |
57 CXFA_FFWidget* m_hCurWidget; | 57 CXFA_FFWidget* m_hCurWidget; |
58 uint32_t m_dwFilter; | 58 uint32_t m_dwFilter; |
59 FX_BOOL m_bIgnorerelevant; | 59 bool m_bIgnorerelevant; |
60 CXFA_LayoutItemIterator m_sIterator; | 60 CXFA_LayoutItemIterator m_sIterator; |
61 }; | 61 }; |
62 typedef CFX_ArrayTemplate<CXFA_FFWidget*> CXFA_WidgetArray; | 62 typedef CFX_ArrayTemplate<CXFA_FFWidget*> CXFA_WidgetArray; |
63 | 63 |
64 class CXFA_TabParam { | 64 class CXFA_TabParam { |
65 public: | 65 public: |
66 CXFA_TabParam(); | 66 CXFA_TabParam(); |
67 ~CXFA_TabParam(); | 67 ~CXFA_TabParam(); |
68 | 68 |
69 CXFA_FFWidget* m_pWidget; | 69 CXFA_FFWidget* m_pWidget; |
70 CXFA_WidgetArray m_Children; | 70 CXFA_WidgetArray m_Children; |
71 }; | 71 }; |
72 | 72 |
73 class CXFA_FFTabOrderPageWidgetIterator : public IXFA_WidgetIterator { | 73 class CXFA_FFTabOrderPageWidgetIterator : public IXFA_WidgetIterator { |
74 public: | 74 public: |
75 CXFA_FFTabOrderPageWidgetIterator(CXFA_FFPageView* pPageView, | 75 CXFA_FFTabOrderPageWidgetIterator(CXFA_FFPageView* pPageView, |
76 uint32_t dwFilter); | 76 uint32_t dwFilter); |
77 ~CXFA_FFTabOrderPageWidgetIterator() override; | 77 ~CXFA_FFTabOrderPageWidgetIterator() override; |
78 | 78 |
79 void Reset() override; | 79 void Reset() override; |
80 CXFA_FFWidget* MoveToFirst() override; | 80 CXFA_FFWidget* MoveToFirst() override; |
81 CXFA_FFWidget* MoveToLast() override; | 81 CXFA_FFWidget* MoveToLast() override; |
82 CXFA_FFWidget* MoveToNext() override; | 82 CXFA_FFWidget* MoveToNext() override; |
83 CXFA_FFWidget* MoveToPrevious() override; | 83 CXFA_FFWidget* MoveToPrevious() override; |
84 CXFA_FFWidget* GetCurrentWidget() override; | 84 CXFA_FFWidget* GetCurrentWidget() override; |
85 FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override; | 85 bool SetCurrentWidget(CXFA_FFWidget* hWidget) override; |
86 | 86 |
87 protected: | 87 protected: |
88 CXFA_FFWidget* GetTraverseWidget(CXFA_FFWidget* pWidget); | 88 CXFA_FFWidget* GetTraverseWidget(CXFA_FFWidget* pWidget); |
89 CXFA_FFWidget* FindWidgetByName(const CFX_WideString& wsWidgetName, | 89 CXFA_FFWidget* FindWidgetByName(const CFX_WideString& wsWidgetName, |
90 CXFA_FFWidget* pRefWidget); | 90 CXFA_FFWidget* pRefWidget); |
91 void CreateTabOrderWidgetArray(); | 91 void CreateTabOrderWidgetArray(); |
92 void CreateSpaceOrderWidgetArray(CXFA_WidgetArray& WidgetArray); | 92 void CreateSpaceOrderWidgetArray(CXFA_WidgetArray& WidgetArray); |
93 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); | 93 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem); |
94 void OrderContainer(CXFA_LayoutItemIterator* sIterator, | 94 void OrderContainer(CXFA_LayoutItemIterator* sIterator, |
95 CXFA_LayoutItem* pContainerItem, | 95 CXFA_LayoutItem* pContainerItem, |
96 CXFA_TabParam* pContainer, | 96 CXFA_TabParam* pContainer, |
97 FX_BOOL& bCurrentItem, | 97 bool& bCurrentItem, |
98 FX_BOOL& bContentArea, | 98 bool& bContentArea, |
99 FX_BOOL bMarsterPage = FALSE); | 99 bool bMarsterPage = false); |
100 | 100 |
101 CXFA_WidgetArray m_TabOrderWidgetArray; | 101 CXFA_WidgetArray m_TabOrderWidgetArray; |
102 CXFA_FFPageView* m_pPageView; | 102 CXFA_FFPageView* m_pPageView; |
103 uint32_t m_dwFilter; | 103 uint32_t m_dwFilter; |
104 int32_t m_iCurWidget; | 104 int32_t m_iCurWidget; |
105 FX_BOOL m_bIgnorerelevant; | 105 bool m_bIgnorerelevant; |
106 }; | 106 }; |
107 | 107 |
108 #endif // XFA_FXFA_XFA_FFPAGEVIEW_H_ | 108 #endif // XFA_FXFA_XFA_FFPAGEVIEW_H_ |
OLD | NEW |