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_INCLUDE_FXFA_WIDGET_H_ | 7 #ifndef XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ |
8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ | 8 #define XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 CXFA_FFDoc* GetDoc(); | 46 CXFA_FFDoc* GetDoc(); |
47 CXFA_FFApp* GetApp(); | 47 CXFA_FFApp* GetApp(); |
48 IXFA_AppProvider* GetAppProvider(); | 48 IXFA_AppProvider* GetAppProvider(); |
49 | 49 |
50 int32_t ProcessEvent(int32_t iActivity, CXFA_EventParam* pEventParam); | 50 int32_t ProcessEvent(int32_t iActivity, CXFA_EventParam* pEventParam); |
51 int32_t ProcessEvent(CXFA_Event& event, CXFA_EventParam* pEventParam); | 51 int32_t ProcessEvent(CXFA_Event& event, CXFA_EventParam* pEventParam); |
52 int32_t ProcessCalculate(); | 52 int32_t ProcessCalculate(); |
53 int32_t ProcessValidate(int32_t iFlags = 0); | 53 int32_t ProcessValidate(int32_t iFlags = 0); |
54 int32_t ExecuteScript(CXFA_Script script, | 54 int32_t ExecuteScript(CXFA_Script script, |
55 CXFA_EventParam* pEventParam, | 55 CXFA_EventParam* pEventParam, |
56 FXJSE_HVALUE* pRetValue = NULL); | 56 CFXJSE_Value** pRetValue = nullptr); |
57 | 57 |
58 CXFA_FFWidget* GetNextWidget(CXFA_FFWidget* pWidget); | 58 CXFA_FFWidget* GetNextWidget(CXFA_FFWidget* pWidget); |
59 void StartWidgetLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); | 59 void StartWidgetLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); |
60 FX_BOOL FindSplitPos(int32_t iBlockIndex, FX_FLOAT& fCalcHeight); | 60 FX_BOOL FindSplitPos(int32_t iBlockIndex, FX_FLOAT& fCalcHeight); |
61 FX_BOOL LoadCaption(); | 61 FX_BOOL LoadCaption(); |
62 void LoadText(); | 62 void LoadText(); |
63 FX_BOOL LoadImageImage(); | 63 FX_BOOL LoadImageImage(); |
64 FX_BOOL LoadImageEditImage(); | 64 FX_BOOL LoadImageEditImage(); |
65 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); | 65 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); |
66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); | 66 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); |
67 CXFA_TextLayout* GetCaptionTextLayout(); | 67 CXFA_TextLayout* GetCaptionTextLayout(); |
68 CXFA_TextLayout* GetTextLayout(); | 68 CXFA_TextLayout* GetTextLayout(); |
69 CFX_DIBitmap* GetImageImage(); | 69 CFX_DIBitmap* GetImageImage(); |
70 CFX_DIBitmap* GetImageEditImage(); | 70 CFX_DIBitmap* GetImageEditImage(); |
71 void SetImageImage(CFX_DIBitmap* newImage); | 71 void SetImageImage(CFX_DIBitmap* newImage); |
72 void SetImageEditImage(CFX_DIBitmap* newImage); | 72 void SetImageEditImage(CFX_DIBitmap* newImage); |
73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); | 73 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); |
74 | 74 |
75 CXFA_Node* GetDatasets(); | 75 CXFA_Node* GetDatasets(); |
76 IFX_Font* GetFDEFont(); | 76 IFX_Font* GetFDEFont(); |
77 FX_FLOAT GetFontSize(); | 77 FX_FLOAT GetFontSize(); |
78 FX_ARGB GetTextColor(); | 78 FX_ARGB GetTextColor(); |
79 FX_FLOAT GetLineHeight(); | 79 FX_FLOAT GetLineHeight(); |
80 CXFA_WidgetLayoutData* GetWidgetLayoutData(); | 80 CXFA_WidgetLayoutData* GetWidgetLayoutData(); |
81 | 81 |
82 protected: | 82 protected: |
83 void ProcessScriptTestValidate(CXFA_Validate validate, | 83 void ProcessScriptTestValidate(CXFA_Validate validate, |
84 int32_t iRet, | 84 int32_t iRet, |
85 FXJSE_HVALUE pRetValue, | 85 CFXJSE_Value* pRetValue, |
86 FX_BOOL bVersionFlag); | 86 FX_BOOL bVersionFlag); |
87 int32_t ProcessFormatTestValidate(CXFA_Validate validate, | 87 int32_t ProcessFormatTestValidate(CXFA_Validate validate, |
88 FX_BOOL bVersionFlag); | 88 FX_BOOL bVersionFlag); |
89 int32_t ProcessNullTestValidate(CXFA_Validate validate, | 89 int32_t ProcessNullTestValidate(CXFA_Validate validate, |
90 int32_t iFlags, | 90 int32_t iFlags, |
91 FX_BOOL bVersionFlag); | 91 FX_BOOL bVersionFlag); |
92 void GetValidateCaptionName(CFX_WideString& wsCaptionName, | 92 void GetValidateCaptionName(CFX_WideString& wsCaptionName, |
93 FX_BOOL bVersionFlag); | 93 FX_BOOL bVersionFlag); |
94 void GetValidateMessage(IXFA_AppProvider* pAppProvider, | 94 void GetValidateMessage(IXFA_AppProvider* pAppProvider, |
95 CFX_WideString& wsMessage, | 95 CFX_WideString& wsMessage, |
(...skipping 18 matching lines...) Expand all Loading... |
114 FX_FLOAT& fCalcHeight); | 114 FX_FLOAT& fCalcHeight); |
115 void InitLayoutData(); | 115 void InitLayoutData(); |
116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); | 116 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); |
117 | 117 |
118 CXFA_FFDocView* m_pDocView; | 118 CXFA_FFDocView* m_pDocView; |
119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData; | 119 std::unique_ptr<CXFA_WidgetLayoutData> m_pLayoutData; |
120 uint32_t m_nRecursionDepth; | 120 uint32_t m_nRecursionDepth; |
121 }; | 121 }; |
122 | 122 |
123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ | 123 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ |
OLD | NEW |