Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fwl / src / core / include / fwl_contentimp.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_CONTENT_IMP_H\r
8 #define _FWL_CONTENT_IMP_H\r
9 class CFWL_WidgetImp;\r
10 class IFWL_Widget;\r
11 class CFWL_ContentImp;\r
12 class CFWL_ContentImp : public CFWL_WidgetImp\r
13 {\r
14 public:\r
15     CFWL_ContentImp();\r
16     CFWL_ContentImp(const CFWL_WidgetImpProperties &properties);\r
17     virtual ~CFWL_ContentImp();\r
18     virtual FWL_ERR                             InsertWidget(IFWL_Widget *pChild, FX_INT32 nIndex = -1);\r
19     virtual FWL_ERR                             RemoveWidget(IFWL_Widget *pWidget);\r
20     virtual     FWL_ERR                         RemoveAllWidgets();\r
21     virtual FWL_ERR             GetMinSize(FX_FLOAT &fWidth, FX_FLOAT &fHeight);\r
22     virtual FWL_ERR             SetMinSize(FX_FLOAT fWidth, FX_FLOAT fHeight);\r
23     virtual     FWL_ERR         GetMaxSize(FX_FLOAT &fWidth, FX_FLOAT &fHeight);\r
24     virtual FWL_ERR             SetMaxSize(FX_FLOAT fWidth, FX_FLOAT fHeight);\r
25 protected:\r
26     FX_FLOAT m_fWidthMin;\r
27     FX_FLOAT m_fWidthMax;\r
28     FX_FLOAT m_fHeightMax;\r
29     FX_FLOAT m_fHeightMin;\r
30 };\r
31 #endif\r