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

Side by Side Diff: xfa/src/fxfa/app/xfa_ffnotify.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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/src/fxfa/app/xfa_ffimageedit.cpp ('k') | xfa/src/fxfa/app/xfa_ffnotify.cpp » ('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_SRC_FXFA_APP_XFA_FFNOTIFY_H_
8 #define XFA_SRC_FXFA_APP_XFA_FFNOTIFY_H_
9
10 #include "xfa/src/fxfa/parser/xfa_document.h"
11
12 class CXFA_FFNotify : public IXFA_Notify {
13 public:
14 CXFA_FFNotify(CXFA_FFDoc* pDoc);
15 ~CXFA_FFNotify();
16
17 virtual void OnPageEvent(IXFA_LayoutPage* pSender,
18 XFA_PAGEEVENT eEvent,
19 void* pParam = NULL);
20
21 virtual void OnNodeEvent(CXFA_Node* pSender,
22 XFA_NODEEVENT eEvent,
23 void* pParam = NULL,
24 void* pParam2 = NULL,
25 void* pParam3 = NULL,
26 void* pParam4 = NULL);
27 virtual void OnWidgetDataEvent(CXFA_WidgetData* pSender,
28 FX_DWORD dwEvent,
29 void* pParam = NULL,
30 void* pAdditional = NULL,
31 void* pAdditional2 = NULL);
32 virtual CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode);
33 virtual void OnLayoutEvent(IXFA_DocLayout* pLayout,
34 CXFA_LayoutItem* pSender,
35 XFA_LAYOUTEVENT eEvent,
36 void* pParam = NULL,
37 void* pParam2 = NULL);
38
39 virtual void StartFieldDrawLayout(CXFA_Node* pItem,
40 FX_FLOAT& fCalcWidth,
41 FX_FLOAT& fCalcHeight);
42 virtual FX_BOOL FindSplitPos(CXFA_Node* pItem,
43 int32_t iBlockIndex,
44 FX_FLOAT& fCalcHeightPos);
45 virtual FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem);
46 virtual int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode,
47 XFA_EVENTTYPE eEventType,
48 FX_BOOL bIsFormReady = FALSE,
49 FX_BOOL bRecursive = TRUE,
50 CXFA_WidgetAcc* pExclude = NULL);
51 virtual void AddCalcValidate(CXFA_Node* pNode);
52 virtual IXFA_Doc* GetHDOC();
53 virtual IXFA_DocProvider* GetDocProvider();
54 virtual IXFA_AppProvider* GetAppProvider();
55 virtual IXFA_WidgetHandler* GetWidgetHandler();
56 virtual IXFA_Widget* GetHWidget(CXFA_LayoutItem* pLayoutItem);
57 virtual void OpenDropDownList(IXFA_Widget* hWidget);
58 virtual CFX_WideString GetCurrentDateTime();
59 virtual void ResetData(CXFA_WidgetData* pWidgetData = NULL);
60 virtual int32_t GetLayoutStatus();
61 virtual void RunNodeInitialize(CXFA_Node* pNode);
62 virtual void RunSubformIndexChange(CXFA_Node* pSubformNode);
63 virtual CXFA_Node* GetFocusWidgetNode();
64 virtual void SetFocusWidgetNode(CXFA_Node* pNode);
65
66 protected:
67 void OnNodeReady(CXFA_Node* pNode);
68 void OnValueChanging(CXFA_Node* pSender, void* pParam, void* pParam2);
69 void OnValueChanged(CXFA_Node* pSender,
70 void* pParam,
71 void* pParam2,
72 void* pParam3,
73 void* pParam4);
74 void OnChildAdded(CXFA_Node* pSender, void* pParam, void* pParam2);
75 void OnChildRemoved(CXFA_Node* pSender, void* pParam, void* pParam2);
76 void OnLayoutItemAdd(CXFA_FFDocView* pDocView,
77 IXFA_DocLayout* pLayout,
78 CXFA_LayoutItem* pSender,
79 void* pParam,
80 void* pParam2);
81 void OnLayoutItemRemoving(CXFA_FFDocView* pDocView,
82 IXFA_DocLayout* pLayout,
83 CXFA_LayoutItem* pSender,
84 void* pParam,
85 void* pParam2);
86 void OnLayoutItemRectChanged(CXFA_FFDocView* pDocView,
87 IXFA_DocLayout* pLayout,
88 CXFA_LayoutItem* pSender,
89 void* pParam,
90 void* pParam2);
91 void OnLayoutItemStatustChanged(CXFA_FFDocView* pDocView,
92 IXFA_DocLayout* pLayout,
93 CXFA_LayoutItem* pSender,
94 void* pParam,
95 void* pParam2);
96 CXFA_FFDoc* m_pDoc;
97 };
98
99 #endif // XFA_SRC_FXFA_APP_XFA_FFNOTIFY_H_
OLDNEW
« no previous file with comments | « xfa/src/fxfa/app/xfa_ffimageedit.cpp ('k') | xfa/src/fxfa/app/xfa_ffnotify.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698