| 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_APP_XFA_FFWIDGET_H_ | 7 #ifndef XFA_FXFA_APP_XFA_FFWIDGET_H_ |
| 8 #define XFA_FXFA_APP_XFA_FFWIDGET_H_ | 8 #define XFA_FXFA_APP_XFA_FFWIDGET_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 XFA_WIDGETITEM_NextSibling, | 29 XFA_WIDGETITEM_NextSibling, |
| 30 XFA_WIDGETITEM_PrevSibling, | 30 XFA_WIDGETITEM_PrevSibling, |
| 31 }; | 31 }; |
| 32 class CXFA_CalcData { | 32 class CXFA_CalcData { |
| 33 public: | 33 public: |
| 34 CXFA_CalcData() : m_iRefCount(0) {} | 34 CXFA_CalcData() : m_iRefCount(0) {} |
| 35 ~CXFA_CalcData() { m_Globals.RemoveAll(); } | 35 ~CXFA_CalcData() { m_Globals.RemoveAll(); } |
| 36 CFX_PtrArray m_Globals; | 36 CFX_PtrArray m_Globals; |
| 37 int32_t m_iRefCount; | 37 int32_t m_iRefCount; |
| 38 }; | 38 }; |
| 39 class CXFA_FFWidget : public IXFA_Widget, | 39 class CXFA_FFWidget : public CFX_PrivateData, public CXFA_ContentLayoutItem { |
| 40 public CFX_PrivateData, | |
| 41 public CXFA_ContentLayoutItem { | |
| 42 public: | 40 public: |
| 43 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 41 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 44 virtual ~CXFA_FFWidget(); | 42 virtual ~CXFA_FFWidget(); |
| 45 IXFA_PageView* GetPageView(); | 43 CXFA_FFPageView* GetPageView(); |
| 46 void SetPageView(IXFA_PageView* pPageView); | 44 void SetPageView(CXFA_FFPageView* pPageView); |
| 47 void GetWidgetRect(CFX_RectF& rtWidget); | 45 void GetWidgetRect(CFX_RectF& rtWidget); |
| 48 CFX_RectF ReCacheWidgetRect(); | 46 CFX_RectF ReCacheWidgetRect(); |
| 49 uint32_t GetStatus(); | 47 uint32_t GetStatus(); |
| 50 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); | 48 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); |
| 51 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, | 49 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, |
| 52 uint32_t dwStatus, | 50 uint32_t dwStatus, |
| 53 FX_BOOL bDrawFocus = FALSE); | 51 FX_BOOL bDrawFocus = FALSE); |
| 54 CXFA_WidgetAcc* GetDataAcc(); | 52 CXFA_WidgetAcc* GetDataAcc(); |
| 55 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); | 53 FX_BOOL GetToolTip(CFX_WideString& wsToolTip); |
| 56 virtual void RenderWidget(CFX_Graphics* pGS, | 54 virtual void RenderWidget(CFX_Graphics* pGS, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); | 176 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); |
| 179 #define XFA_DRAWBOX_ForceRound 1 | 177 #define XFA_DRAWBOX_ForceRound 1 |
| 180 #define XFA_DRAWBOX_Lowered3D 2 | 178 #define XFA_DRAWBOX_Lowered3D 2 |
| 181 void XFA_DrawBox(CXFA_Box box, | 179 void XFA_DrawBox(CXFA_Box box, |
| 182 CFX_Graphics* pGS, | 180 CFX_Graphics* pGS, |
| 183 const CFX_RectF& rtWidget, | 181 const CFX_RectF& rtWidget, |
| 184 CFX_Matrix* pMatrix, | 182 CFX_Matrix* pMatrix, |
| 185 uint32_t dwFlags = 0); | 183 uint32_t dwFlags = 0); |
| 186 | 184 |
| 187 #endif // XFA_FXFA_APP_XFA_FFWIDGET_H_ | 185 #endif // XFA_FXFA_APP_XFA_FFWIDGET_H_ |
| OLD | NEW |