Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: xfa/fxfa/include/xfa_ffpageview.h

Issue 2383593002: Move xfa/fxfa/include to xfa/fxfa (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/include/xfa_ffdocview.h ('k') | xfa/fxfa/include/xfa_ffwidget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_
8 #define XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_
9
10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h"
11 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h"
12 #include "xfa/fxfa/parser/cxfa_traversestrategy_layoutitem.h"
13
14 class CXFA_FFWidget;
15 class CXFA_FFDocView;
16
17 class CXFA_FFPageView : public CXFA_ContainerLayoutItem {
18 public:
19 CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea);
20 ~CXFA_FFPageView() override;
21
22 CXFA_FFDocView* GetDocView() const;
23 void GetPageViewRect(CFX_RectF& rtPage) const;
24 void GetDisplayMatrix(CFX_Matrix& mt,
25 const CFX_Rect& rtDisp,
26 int32_t iRotate) const;
27 IXFA_WidgetIterator* CreateWidgetIterator(
28 uint32_t dwTraverseWay = XFA_TRAVERSEWAY_Form,
29 uint32_t dwWidgetFilter = XFA_WidgetStatus_Visible |
30 XFA_WidgetStatus_Viewable);
31
32 protected:
33 CXFA_FFDocView* const m_pDocView;
34 };
35
36 typedef CXFA_NodeIteratorTemplate<CXFA_LayoutItem,
37 CXFA_TraverseStrategy_LayoutItem>
38 CXFA_LayoutItemIterator;
39
40 class CXFA_FFPageWidgetIterator : public IXFA_WidgetIterator {
41 public:
42 CXFA_FFPageWidgetIterator(CXFA_FFPageView* pPageView, uint32_t dwFilter);
43 ~CXFA_FFPageWidgetIterator() override;
44
45 void Reset() override;
46 CXFA_FFWidget* MoveToFirst() override;
47 CXFA_FFWidget* MoveToLast() override;
48 CXFA_FFWidget* MoveToNext() override;
49 CXFA_FFWidget* MoveToPrevious() override;
50 CXFA_FFWidget* GetCurrentWidget() override;
51 FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override;
52
53 protected:
54 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem);
55
56 CXFA_FFPageView* m_pPageView;
57 CXFA_FFWidget* m_hCurWidget;
58 uint32_t m_dwFilter;
59 FX_BOOL m_bIgnorerelevant;
60 CXFA_LayoutItemIterator m_sIterator;
61 };
62 typedef CFX_ArrayTemplate<CXFA_FFWidget*> CXFA_WidgetArray;
63
64 class CXFA_TabParam {
65 public:
66 CXFA_TabParam();
67 ~CXFA_TabParam();
68
69 CXFA_FFWidget* m_pWidget;
70 CXFA_WidgetArray m_Children;
71 };
72
73 class CXFA_FFTabOrderPageWidgetIterator : public IXFA_WidgetIterator {
74 public:
75 CXFA_FFTabOrderPageWidgetIterator(CXFA_FFPageView* pPageView,
76 uint32_t dwFilter);
77 ~CXFA_FFTabOrderPageWidgetIterator() override;
78
79 void Reset() override;
80 CXFA_FFWidget* MoveToFirst() override;
81 CXFA_FFWidget* MoveToLast() override;
82 CXFA_FFWidget* MoveToNext() override;
83 CXFA_FFWidget* MoveToPrevious() override;
84 CXFA_FFWidget* GetCurrentWidget() override;
85 FX_BOOL SetCurrentWidget(CXFA_FFWidget* hWidget) override;
86
87 protected:
88 CXFA_FFWidget* GetTraverseWidget(CXFA_FFWidget* pWidget);
89 CXFA_FFWidget* FindWidgetByName(const CFX_WideString& wsWidgetName,
90 CXFA_FFWidget* pRefWidget);
91 void CreateTabOrderWidgetArray();
92 void CreateSpaceOrderWidgetArray(CXFA_WidgetArray& WidgetArray);
93 CXFA_FFWidget* GetWidget(CXFA_LayoutItem* pLayoutItem);
94 void OrderContainer(CXFA_LayoutItemIterator* sIterator,
95 CXFA_LayoutItem* pContainerItem,
96 CXFA_TabParam* pContainer,
97 FX_BOOL& bCurrentItem,
98 FX_BOOL& bContentArea,
99 FX_BOOL bMarsterPage = FALSE);
100
101 CXFA_WidgetArray m_TabOrderWidgetArray;
102 CXFA_FFPageView* m_pPageView;
103 uint32_t m_dwFilter;
104 int32_t m_iCurWidget;
105 FX_BOOL m_bIgnorerelevant;
106 };
107
108 #endif // XFA_FXFA_INCLUDE_XFA_FFPAGEVIEW_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/include/xfa_ffdocview.h ('k') | xfa/fxfa/include/xfa_ffwidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698