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_SRC_FWL_SRC_CORE_FWL_CONTENTIMP_H_ | 7 #ifndef XFA_SRC_FWL_CORE_FWL_CONTENTIMP_H_ |
8 #define XFA_SRC_FWL_SRC_CORE_FWL_CONTENTIMP_H_ | 8 #define XFA_SRC_FWL_CORE_FWL_CONTENTIMP_H_ |
9 | 9 |
10 #include "xfa/src/fwl/src/core/fwl_widgetimp.h" | 10 #include "xfa/src/fwl/core/fwl_widgetimp.h" |
11 | 11 |
12 class IFWL_Widget; | 12 class IFWL_Widget; |
13 | 13 |
14 class CFWL_ContentImp : public CFWL_WidgetImp { | 14 class CFWL_ContentImp : public CFWL_WidgetImp { |
15 public: | 15 public: |
16 CFWL_ContentImp(const CFWL_WidgetImpProperties& properties, | 16 CFWL_ContentImp(const CFWL_WidgetImpProperties& properties, |
17 IFWL_Widget* pOuter); | 17 IFWL_Widget* pOuter); |
18 | 18 |
19 virtual ~CFWL_ContentImp(); | 19 virtual ~CFWL_ContentImp(); |
20 virtual FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); | 20 virtual FWL_ERR InsertWidget(IFWL_Widget* pChild, int32_t nIndex = -1); |
21 virtual FWL_ERR RemoveWidget(IFWL_Widget* pWidget); | 21 virtual FWL_ERR RemoveWidget(IFWL_Widget* pWidget); |
22 virtual FWL_ERR RemoveAllWidgets(); | 22 virtual FWL_ERR RemoveAllWidgets(); |
23 FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | 23 FWL_ERR GetMinSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
24 FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | 24 FWL_ERR SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight); |
25 FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | 25 FWL_ERR GetMaxSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
26 FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight); | 26 FWL_ERR SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight); |
27 | 27 |
28 protected: | 28 protected: |
29 FX_FLOAT m_fWidthMin; | 29 FX_FLOAT m_fWidthMin; |
30 FX_FLOAT m_fWidthMax; | 30 FX_FLOAT m_fWidthMax; |
31 FX_FLOAT m_fHeightMin; | 31 FX_FLOAT m_fHeightMin; |
32 FX_FLOAT m_fHeightMax; | 32 FX_FLOAT m_fHeightMax; |
33 }; | 33 }; |
34 | 34 |
35 #endif // XFA_SRC_FWL_SRC_CORE_FWL_CONTENTIMP_H_ | 35 #endif // XFA_SRC_FWL_CORE_FWL_CONTENTIMP_H_ |
OLD | NEW |