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_FXFA_SRC_APP_XFA_FFFIELD_H_ | 7 #ifndef XFA_SRC_FXFA_SRC_APP_XFA_FFFIELD_H_ |
8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFFIELD_H_ | 8 #define XFA_SRC_FXFA_SRC_APP_XFA_FFFIELD_H_ |
9 | 9 |
10 #include "xfa/include/fwl/adapter/fwl_sdadapterimp.h" | 10 #include "xfa/include/fwl/adapter/fwl_sdadapterimp.h" |
11 #include "xfa/include/fwl/core/fwl_widget.h" | 11 #include "xfa/include/fwl/core/fwl_widget.h" |
12 #include "xfa/include/fwl/lightwidget/widget.h" | 12 #include "xfa/include/fwl/lightwidget/widget.h" |
13 #include "xfa/src/fxfa/src/app/xfa_ffpageview.h" | 13 #include "xfa/src/fxfa/src/app/xfa_ffpageview.h" |
14 #include "xfa/src/fxfa/src/app/xfa_ffwidget.h" | 14 #include "xfa/src/fxfa/src/app/xfa_ffwidget.h" |
15 | 15 |
16 #define XFA_MINUI_HEIGHT 4.32f | 16 #define XFA_MINUI_HEIGHT 4.32f |
17 #define XFA_DEFAULTUI_HEIGHT 2.0f | 17 #define XFA_DEFAULTUI_HEIGHT 2.0f |
18 | 18 |
19 class CXFA_TextLayout; | |
20 | 19 |
21 class CXFA_FFField : public CXFA_FFWidget, public IFWL_WidgetDelegate { | 20 class CXFA_FFField : public CXFA_FFWidget, public IFWL_WidgetDelegate { |
22 public: | 21 public: |
23 CXFA_FFField(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 22 CXFA_FFField(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
24 virtual ~CXFA_FFField(); | 23 virtual ~CXFA_FFField(); |
25 | 24 |
26 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, | 25 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, |
27 FX_DWORD dwStatus, | 26 FX_DWORD dwStatus, |
28 FX_BOOL bDrawFocus = FALSE); | 27 FX_BOOL bDrawFocus = FALSE); |
29 virtual void RenderWidget(CFX_Graphics* pGS, | 28 virtual void RenderWidget(CFX_Graphics* pGS, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 92 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
94 const CFX_Matrix* pMatrix = NULL); | 93 const CFX_Matrix* pMatrix = NULL); |
95 | 94 |
96 protected: | 95 protected: |
97 CFWL_Widget* m_pNormalWidget; | 96 CFWL_Widget* m_pNormalWidget; |
98 CFX_RectF m_rtUI; | 97 CFX_RectF m_rtUI; |
99 CFX_RectF m_rtCaption; | 98 CFX_RectF m_rtCaption; |
100 }; | 99 }; |
101 | 100 |
102 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFFIELD_H_ | 101 #endif // XFA_SRC_FXFA_SRC_APP_XFA_FFFIELD_H_ |
OLD | NEW |