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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = nullptr); |
74 | 74 |
75 CXFA_Node* GetDatasets(); | 75 CXFA_Node* GetDatasets(); |
76 CFGAS_GEFont* GetFDEFont(); | 76 CFGAS_GEFont* 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, |
(...skipping 30 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 |