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_APP_XFA_FFNOTIFY_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
8 #define XFA_FXFA_APP_XFA_FFNOTIFY_H_ | 8 #define XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/xfa_document.h" | 10 #include "xfa/fxfa/parser/xfa_document.h" |
(...skipping 14 matching lines...) Expand all Loading... | |
25 void* pParam = NULL, | 25 void* pParam = NULL, |
26 void* pParam2 = NULL, | 26 void* pParam2 = NULL, |
27 void* pParam3 = NULL, | 27 void* pParam3 = NULL, |
28 void* pParam4 = NULL); | 28 void* pParam4 = NULL); |
29 void OnWidgetDataEvent(CXFA_WidgetData* pSender, | 29 void OnWidgetDataEvent(CXFA_WidgetData* pSender, |
30 uint32_t dwEvent, | 30 uint32_t dwEvent, |
31 void* pParam = NULL, | 31 void* pParam = NULL, |
32 void* pAdditional = NULL, | 32 void* pAdditional = NULL, |
33 void* pAdditional2 = NULL); | 33 void* pAdditional2 = NULL); |
34 CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode); | 34 CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode); |
35 void OnLayoutEvent(CXFA_LayoutProcessor* pLayout, | 35 void OnLayoutItemAdd(CXFA_LayoutProcessor* pLayout, |
36 CXFA_LayoutItem* pSender, | 36 CXFA_LayoutItem* pSender, |
37 XFA_LAYOUTEVENT eEvent, | 37 int32_t iPageIdx, |
38 void* pParam = NULL, | 38 uint32_t dwStatus); |
39 void* pParam2 = NULL); | 39 void OnLayoutItemRemoving(CXFA_LayoutProcessor* pLayout, |
Tom Sepez
2016/04/14 22:45:44
nit: verb tense. OnLayoutItemAdded/Removed to mat
Lei Zhang
2016/04/15 01:16:40
Added / Removing (since it's called right before t
| |
40 CXFA_LayoutItem* pSender); | |
40 | 41 |
41 void StartFieldDrawLayout(CXFA_Node* pItem, | 42 void StartFieldDrawLayout(CXFA_Node* pItem, |
42 FX_FLOAT& fCalcWidth, | 43 FX_FLOAT& fCalcWidth, |
43 FX_FLOAT& fCalcHeight); | 44 FX_FLOAT& fCalcHeight); |
44 FX_BOOL FindSplitPos(CXFA_Node* pItem, | 45 FX_BOOL FindSplitPos(CXFA_Node* pItem, |
45 int32_t iBlockIndex, | 46 int32_t iBlockIndex, |
46 FX_FLOAT& fCalcHeightPos); | 47 FX_FLOAT& fCalcHeightPos); |
47 FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); | 48 FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); |
48 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, | 49 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, |
49 XFA_EVENTTYPE eEventType, | 50 XFA_EVENTTYPE eEventType, |
(...skipping 18 matching lines...) Expand all Loading... | |
68 protected: | 69 protected: |
69 void OnNodeReady(CXFA_Node* pNode); | 70 void OnNodeReady(CXFA_Node* pNode); |
70 void OnValueChanging(CXFA_Node* pSender, void* pParam, void* pParam2); | 71 void OnValueChanging(CXFA_Node* pSender, void* pParam, void* pParam2); |
71 void OnValueChanged(CXFA_Node* pSender, | 72 void OnValueChanged(CXFA_Node* pSender, |
72 void* pParam, | 73 void* pParam, |
73 void* pParam2, | 74 void* pParam2, |
74 void* pParam3, | 75 void* pParam3, |
75 void* pParam4); | 76 void* pParam4); |
76 void OnChildAdded(CXFA_Node* pSender, void* pParam, void* pParam2); | 77 void OnChildAdded(CXFA_Node* pSender, void* pParam, void* pParam2); |
77 void OnChildRemoved(CXFA_Node* pSender, void* pParam, void* pParam2); | 78 void OnChildRemoved(CXFA_Node* pSender, void* pParam, void* pParam2); |
78 void OnLayoutItemAdd(CXFA_FFDocView* pDocView, | 79 |
79 CXFA_LayoutProcessor* pLayout, | 80 CXFA_FFDoc* const m_pDoc; |
80 CXFA_LayoutItem* pSender, | |
81 void* pParam, | |
82 void* pParam2); | |
83 void OnLayoutItemRemoving(CXFA_FFDocView* pDocView, | |
84 CXFA_LayoutProcessor* pLayout, | |
85 CXFA_LayoutItem* pSender, | |
86 void* pParam, | |
87 void* pParam2); | |
88 void OnLayoutItemRectChanged(CXFA_FFDocView* pDocView, | |
89 CXFA_LayoutProcessor* pLayout, | |
90 CXFA_LayoutItem* pSender, | |
91 void* pParam, | |
92 void* pParam2); | |
93 void OnLayoutItemStatustChanged(CXFA_FFDocView* pDocView, | |
94 CXFA_LayoutProcessor* pLayout, | |
95 CXFA_LayoutItem* pSender, | |
96 void* pParam, | |
97 void* pParam2); | |
98 CXFA_FFDoc* m_pDoc; | |
99 }; | 81 }; |
100 | 82 |
101 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ | 83 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
OLD | NEW |