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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 FX_BOOL CalculateCheckButtonAutoSize(CFX_SizeF& size); | 102 FX_BOOL CalculateCheckButtonAutoSize(CFX_SizeF& size); |
103 FX_BOOL CalculatePushButtonAutoSize(CFX_SizeF& size); | 103 FX_BOOL CalculatePushButtonAutoSize(CFX_SizeF& size); |
104 FX_BOOL CalculateImageEditAutoSize(CFX_SizeF& size); | 104 FX_BOOL CalculateImageEditAutoSize(CFX_SizeF& size); |
105 FX_BOOL CalculateImageAutoSize(CFX_SizeF& size); | 105 FX_BOOL CalculateImageAutoSize(CFX_SizeF& size); |
106 FX_BOOL CalculateTextAutoSize(CFX_SizeF& size); | 106 FX_BOOL CalculateTextAutoSize(CFX_SizeF& size); |
107 FX_FLOAT CalculateWidgetAutoHeight(FX_FLOAT fHeightCalc); | 107 FX_FLOAT CalculateWidgetAutoHeight(FX_FLOAT fHeightCalc); |
108 FX_FLOAT CalculateWidgetAutoWidth(FX_FLOAT fWidthCalc); | 108 FX_FLOAT CalculateWidgetAutoWidth(FX_FLOAT fWidthCalc); |
109 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc); | 109 FX_FLOAT GetWidthWithoutMargin(FX_FLOAT fWidthCalc); |
110 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc); | 110 FX_FLOAT GetHeightWithoutMargin(FX_FLOAT fHeightCalc); |
111 void CalculateTextContentSize(CFX_SizeF& size); | 111 void CalculateTextContentSize(CFX_SizeF& size); |
112 void CalculateAccWidthAndHeight(XFA_ELEMENT eUIType, | 112 void CalculateAccWidthAndHeight(XFA_Element eUIType, |
113 FX_FLOAT& fWidth, | 113 FX_FLOAT& fWidth, |
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 |