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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 FX_BOOL LoadImageEditImage(); | 66 FX_BOOL LoadImageEditImage(); |
67 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); | 67 void GetImageDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); |
68 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); | 68 void GetImageEditDpi(int32_t& iImageXDpi, int32_t& iImageYDpi); |
69 CXFA_TextLayout* GetCaptionTextLayout(); | 69 CXFA_TextLayout* GetCaptionTextLayout(); |
70 CXFA_TextLayout* GetTextLayout(); | 70 CXFA_TextLayout* GetTextLayout(); |
71 CFX_DIBitmap* GetImageImage(); | 71 CFX_DIBitmap* GetImageImage(); |
72 CFX_DIBitmap* GetImageEditImage(); | 72 CFX_DIBitmap* GetImageEditImage(); |
73 void SetImageImage(CFX_DIBitmap* newImage); | 73 void SetImageImage(CFX_DIBitmap* newImage); |
74 void SetImageEditImage(CFX_DIBitmap* newImage); | 74 void SetImageEditImage(CFX_DIBitmap* newImage); |
75 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); | 75 void UpdateUIDisplay(CXFA_FFWidget* pExcept = NULL); |
76 void NotifyEvent(uint32_t dwEvent, | |
77 CXFA_FFWidget* pWidget = NULL, | |
78 void* pParam = NULL, | |
79 void* pAdditional = NULL); | |
80 | 76 |
81 CXFA_Node* GetDatasets(); | 77 CXFA_Node* GetDatasets(); |
82 IFX_Font* GetFDEFont(); | 78 IFX_Font* GetFDEFont(); |
83 FX_FLOAT GetFontSize(); | 79 FX_FLOAT GetFontSize(); |
84 FX_ARGB GetTextColor(); | 80 FX_ARGB GetTextColor(); |
85 FX_FLOAT GetLineHeight(); | 81 FX_FLOAT GetLineHeight(); |
86 CXFA_WidgetLayoutData* GetWidgetLayoutData(); | 82 CXFA_WidgetLayoutData* GetWidgetLayoutData(); |
87 | 83 |
88 protected: | 84 protected: |
89 void ProcessScriptTestValidate(CXFA_Validate validate, | 85 void ProcessScriptTestValidate(CXFA_Validate validate, |
(...skipping 29 matching lines...) Expand all Loading... |
119 FX_FLOAT& fWidth, | 115 FX_FLOAT& fWidth, |
120 FX_FLOAT& fCalcHeight); | 116 FX_FLOAT& fCalcHeight); |
121 void InitLayoutData(); | 117 void InitLayoutData(); |
122 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); | 118 void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); |
123 CXFA_FFDocView* m_pDocView; | 119 CXFA_FFDocView* m_pDocView; |
124 CXFA_WidgetLayoutData* m_pLayoutData; | 120 CXFA_WidgetLayoutData* m_pLayoutData; |
125 uint32_t m_nRecursionDepth; | 121 uint32_t m_nRecursionDepth; |
126 }; | 122 }; |
127 | 123 |
128 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ | 124 #endif // XFA_FXFA_INCLUDE_FXFA_WIDGET_H_ |
OLD | NEW |