| 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/cxfa_eventparam.h" | 10 #include "xfa/fxfa/cxfa_eventparam.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 void OnLayoutItemAdded(CXFA_LayoutProcessor* pLayout, | 39 void OnLayoutItemAdded(CXFA_LayoutProcessor* pLayout, |
| 40 CXFA_LayoutItem* pSender, | 40 CXFA_LayoutItem* pSender, |
| 41 int32_t iPageIdx, | 41 int32_t iPageIdx, |
| 42 uint32_t dwStatus); | 42 uint32_t dwStatus); |
| 43 void OnLayoutItemRemoving(CXFA_LayoutProcessor* pLayout, | 43 void OnLayoutItemRemoving(CXFA_LayoutProcessor* pLayout, |
| 44 CXFA_LayoutItem* pSender); | 44 CXFA_LayoutItem* pSender); |
| 45 | 45 |
| 46 void StartFieldDrawLayout(CXFA_Node* pItem, | 46 void StartFieldDrawLayout(CXFA_Node* pItem, |
| 47 FX_FLOAT& fCalcWidth, | 47 FX_FLOAT& fCalcWidth, |
| 48 FX_FLOAT& fCalcHeight); | 48 FX_FLOAT& fCalcHeight); |
| 49 FX_BOOL FindSplitPos(CXFA_Node* pItem, | 49 bool FindSplitPos(CXFA_Node* pItem, |
| 50 int32_t iBlockIndex, | 50 int32_t iBlockIndex, |
| 51 FX_FLOAT& fCalcHeightPos); | 51 FX_FLOAT& fCalcHeightPos); |
| 52 FX_BOOL RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); | 52 bool RunScript(CXFA_Node* pScript, CXFA_Node* pFormItem); |
| 53 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, | 53 int32_t ExecEventByDeepFirst(CXFA_Node* pFormNode, |
| 54 XFA_EVENTTYPE eEventType, | 54 XFA_EVENTTYPE eEventType, |
| 55 FX_BOOL bIsFormReady = FALSE, | 55 bool bIsFormReady = false, |
| 56 FX_BOOL bRecursive = TRUE, | 56 bool bRecursive = true, |
| 57 CXFA_WidgetAcc* pExclude = nullptr); | 57 CXFA_WidgetAcc* pExclude = nullptr); |
| 58 void AddCalcValidate(CXFA_Node* pNode); | 58 void AddCalcValidate(CXFA_Node* pNode); |
| 59 CXFA_FFDoc* GetHDOC(); | 59 CXFA_FFDoc* GetHDOC(); |
| 60 IXFA_DocEnvironment* GetDocEnvironment() const; | 60 IXFA_DocEnvironment* GetDocEnvironment() const; |
| 61 IXFA_AppProvider* GetAppProvider(); | 61 IXFA_AppProvider* GetAppProvider(); |
| 62 CXFA_FFWidgetHandler* GetWidgetHandler(); | 62 CXFA_FFWidgetHandler* GetWidgetHandler(); |
| 63 CXFA_FFWidget* GetHWidget(CXFA_LayoutItem* pLayoutItem); | 63 CXFA_FFWidget* GetHWidget(CXFA_LayoutItem* pLayoutItem); |
| 64 void OpenDropDownList(CXFA_FFWidget* hWidget); | 64 void OpenDropDownList(CXFA_FFWidget* hWidget); |
| 65 CFX_WideString GetCurrentDateTime(); | 65 CFX_WideString GetCurrentDateTime(); |
| 66 void ResetData(CXFA_WidgetData* pWidgetData = nullptr); | 66 void ResetData(CXFA_WidgetData* pWidgetData = nullptr); |
| 67 int32_t GetLayoutStatus(); | 67 int32_t GetLayoutStatus(); |
| 68 void RunNodeInitialize(CXFA_Node* pNode); | 68 void RunNodeInitialize(CXFA_Node* pNode); |
| 69 void RunSubformIndexChange(CXFA_Node* pSubformNode); | 69 void RunSubformIndexChange(CXFA_Node* pSubformNode); |
| 70 CXFA_Node* GetFocusWidgetNode(); | 70 CXFA_Node* GetFocusWidgetNode(); |
| 71 void SetFocusWidgetNode(CXFA_Node* pNode); | 71 void SetFocusWidgetNode(CXFA_Node* pNode); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 CXFA_FFDoc* const m_pDoc; | 74 CXFA_FFDoc* const m_pDoc; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ | 77 #endif // XFA_FXFA_APP_XFA_FFNOTIFY_H_ |
| OLD | NEW |