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

Side by Side Diff: xfa/fxfa/xfa_ffdocview.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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/xfa_ffdochandler.h ('k') | xfa/fxfa/xfa_ffpageview.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FFDOCVIEW_H_ 7 #ifndef XFA_FXFA_XFA_FFDOCVIEW_H_
8 #define XFA_FXFA_XFA_FFDOCVIEW_H_ 8 #define XFA_FXFA_XFA_FFDOCVIEW_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 CXFA_FFPageView* GetPageView(int32_t nIndex); 50 CXFA_FFPageView* GetPageView(int32_t nIndex);
51 51
52 void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc); 52 void ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc);
53 int32_t ProcessWidgetEvent(CXFA_EventParam* pParam, 53 int32_t ProcessWidgetEvent(CXFA_EventParam* pParam,
54 CXFA_WidgetAcc* pWidgetAcc); 54 CXFA_WidgetAcc* pWidgetAcc);
55 CXFA_FFWidgetHandler* GetWidgetHandler(); 55 CXFA_FFWidgetHandler* GetWidgetHandler();
56 CXFA_WidgetAccIterator* CreateWidgetAccIterator( 56 CXFA_WidgetAccIterator* CreateWidgetAccIterator(
57 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder); 57 XFA_WIDGETORDER eOrder = XFA_WIDGETORDER_PreOrder);
58 CXFA_FFWidget* GetFocusWidget(); 58 CXFA_FFWidget* GetFocusWidget();
59 void KillFocus(); 59 void KillFocus();
60 FX_BOOL SetFocus(CXFA_FFWidget* hWidget); 60 bool SetFocus(CXFA_FFWidget* hWidget);
61 CXFA_FFWidget* GetWidgetByName(const CFX_WideString& wsName, 61 CXFA_FFWidget* GetWidgetByName(const CFX_WideString& wsName,
62 CXFA_FFWidget* pRefWidget); 62 CXFA_FFWidget* pRefWidget);
63 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideString& wsName, 63 CXFA_WidgetAcc* GetWidgetAccByName(const CFX_WideString& wsName,
64 CXFA_WidgetAcc* pRefWidgetAcc); 64 CXFA_WidgetAcc* pRefWidgetAcc);
65 CXFA_LayoutProcessor* GetXFALayout() const; 65 CXFA_LayoutProcessor* GetXFALayout() const;
66 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, uint32_t dwEvent); 66 void OnPageEvent(CXFA_ContainerLayoutItem* pSender, uint32_t dwEvent);
67 void LockUpdate(); 67 void LockUpdate();
68 void UnlockUpdate(); 68 void UnlockUpdate();
69 FX_BOOL IsUpdateLocked(); 69 bool IsUpdateLocked();
70 void ClearInvalidateList(); 70 void ClearInvalidateList();
71 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate); 71 void AddInvalidateRect(CXFA_FFWidget* pWidget, const CFX_RectF& rtInvalidate);
72 void AddInvalidateRect(CXFA_FFPageView* pPageView, 72 void AddInvalidateRect(CXFA_FFPageView* pPageView,
73 const CFX_RectF& rtInvalidate); 73 const CFX_RectF& rtInvalidate);
74 void RunInvalidate(); 74 void RunInvalidate();
75 void RunDocClose(); 75 void RunDocClose();
76 void DestroyDocView(); 76 void DestroyDocView();
77 77
78 FX_BOOL InitValidate(CXFA_Node* pNode); 78 bool InitValidate(CXFA_Node* pNode);
79 FX_BOOL RunValidate(); 79 bool RunValidate();
80 80
81 void SetChangeMark(); 81 void SetChangeMark();
82 82
83 void AddValidateWidget(CXFA_WidgetAcc* pWidget); 83 void AddValidateWidget(CXFA_WidgetAcc* pWidget);
84 void AddCalculateNodeNotify(CXFA_Node* pNodeChange); 84 void AddCalculateNodeNotify(CXFA_Node* pNodeChange);
85 void AddCalculateWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); 85 void AddCalculateWidgetAcc(CXFA_WidgetAcc* pWidgetAcc);
86 int32_t RunCalculateWidgets(); 86 int32_t RunCalculateWidgets();
87 FX_BOOL IsStaticNotify(); 87 bool IsStaticNotify();
88 FX_BOOL RunLayout(); 88 bool RunLayout();
89 void RunSubformIndexChange(); 89 void RunSubformIndexChange();
90 void AddNewFormNode(CXFA_Node* pNode); 90 void AddNewFormNode(CXFA_Node* pNode);
91 void AddIndexChangedSubform(CXFA_Node* pNode); 91 void AddIndexChangedSubform(CXFA_Node* pNode);
92 CXFA_WidgetAcc* GetFocusWidgetAcc(); 92 CXFA_WidgetAcc* GetFocusWidgetAcc();
93 void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); 93 void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc);
94 void DeleteLayoutItem(CXFA_FFWidget* pWidget); 94 void DeleteLayoutItem(CXFA_FFWidget* pWidget);
95 int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode, 95 int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode,
96 XFA_EVENTTYPE eEventType, 96 XFA_EVENTTYPE eEventType,
97 FX_BOOL bIsFormReady, 97 bool bIsFormReady,
98 FX_BOOL bRecursive, 98 bool bRecursive,
99 CXFA_Node* pExclude); 99 CXFA_Node* pExclude);
100 FX_BOOL m_bLayoutEvent; 100 bool m_bLayoutEvent;
101 CFX_WideStringArray m_arrNullTestMsg; 101 CFX_WideStringArray m_arrNullTestMsg;
102 CXFA_FFWidget* m_pListFocusWidget; 102 CXFA_FFWidget* m_pListFocusWidget;
103 FX_BOOL m_bInLayoutStatus; 103 bool m_bInLayoutStatus;
104 104
105 protected: 105 protected:
106 FX_BOOL RunEventLayoutReady(); 106 bool RunEventLayoutReady();
107 void RunBindItems(); 107 void RunBindItems();
108 FX_BOOL InitCalculate(CXFA_Node* pNode); 108 bool InitCalculate(CXFA_Node* pNode);
109 void InitLayout(CXFA_Node* pNode); 109 void InitLayout(CXFA_Node* pNode);
110 void RunCalculateRecursive(int32_t& iIndex); 110 void RunCalculateRecursive(int32_t& iIndex);
111 void ShowNullTestMsg(); 111 void ShowNullTestMsg();
112 FX_BOOL ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc); 112 bool ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc);
113 CXFA_Node* GetRootSubform(); 113 CXFA_Node* GetRootSubform();
114 114
115 CXFA_FFDoc* const m_pDoc; 115 CXFA_FFDoc* const m_pDoc;
116 std::unique_ptr<CXFA_FFWidgetHandler> m_pWidgetHandler; 116 std::unique_ptr<CXFA_FFWidgetHandler> m_pWidgetHandler;
117 CXFA_LayoutProcessor* m_pXFADocLayout; // not owned. 117 CXFA_LayoutProcessor* m_pXFADocLayout; // not owned.
118 CXFA_WidgetAcc* m_pFocusAcc; // not owned. 118 CXFA_WidgetAcc* m_pFocusAcc; // not owned.
119 CXFA_FFWidget* m_pFocusWidget; // not owned. 119 CXFA_FFWidget* m_pFocusWidget; // not owned.
120 CXFA_FFWidget* m_pOldFocusWidget; // not owned. 120 CXFA_FFWidget* m_pOldFocusWidget; // not owned.
121 std::map<CXFA_FFPageView*, std::unique_ptr<CFX_RectF>> m_mapPageInvalidate; 121 std::map<CXFA_FFPageView*, std::unique_ptr<CFX_RectF>> m_mapPageInvalidate;
122 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_ValidateAccs; 122 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_ValidateAccs;
(...skipping 10 matching lines...) Expand all
133 public: 133 public:
134 CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView, CXFA_Node* pTravelRoot); 134 CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView, CXFA_Node* pTravelRoot);
135 ~CXFA_WidgetAccIterator(); 135 ~CXFA_WidgetAccIterator();
136 136
137 void Reset(); 137 void Reset();
138 CXFA_WidgetAcc* MoveToFirst(); 138 CXFA_WidgetAcc* MoveToFirst();
139 CXFA_WidgetAcc* MoveToLast(); 139 CXFA_WidgetAcc* MoveToLast();
140 CXFA_WidgetAcc* MoveToNext(); 140 CXFA_WidgetAcc* MoveToNext();
141 CXFA_WidgetAcc* MoveToPrevious(); 141 CXFA_WidgetAcc* MoveToPrevious();
142 CXFA_WidgetAcc* GetCurrentWidgetAcc(); 142 CXFA_WidgetAcc* GetCurrentWidgetAcc();
143 FX_BOOL SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget); 143 bool SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget);
144 void SkipTree(); 144 void SkipTree();
145 145
146 protected: 146 protected:
147 CXFA_ContainerIterator m_ContentIterator; 147 CXFA_ContainerIterator m_ContentIterator;
148 CXFA_FFDocView* const m_pDocView; 148 CXFA_FFDocView* const m_pDocView;
149 CXFA_WidgetAcc* m_pCurWidgetAcc; // not owned. 149 CXFA_WidgetAcc* m_pCurWidgetAcc; // not owned.
150 }; 150 };
151 151
152 #endif // XFA_FXFA_XFA_FFDOCVIEW_H_ 152 #endif // XFA_FXFA_XFA_FFDOCVIEW_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/xfa_ffdochandler.h ('k') | xfa/fxfa/xfa_ffpageview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698