| 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_XFA_FFWIDGET_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ |
| 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 class CXFA_CalcData { | 34 class CXFA_CalcData { |
| 35 public: | 35 public: |
| 36 CXFA_CalcData() : m_iRefCount(0) {} | 36 CXFA_CalcData() : m_iRefCount(0) {} |
| 37 ~CXFA_CalcData() { m_Globals.RemoveAll(); } | 37 ~CXFA_CalcData() { m_Globals.RemoveAll(); } |
| 38 | 38 |
| 39 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_Globals; | 39 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_Globals; |
| 40 int32_t m_iRefCount; | 40 int32_t m_iRefCount; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 class CXFA_FFWidget : public CFX_PrivateData, public CXFA_ContentLayoutItem { | 43 class CXFA_FFWidget : public CXFA_ContentLayoutItem { |
| 44 public: | 44 public: |
| 45 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); | 45 CXFA_FFWidget(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
| 46 virtual ~CXFA_FFWidget(); | 46 virtual ~CXFA_FFWidget(); |
| 47 CXFA_FFPageView* GetPageView(); | 47 CXFA_FFPageView* GetPageView(); |
| 48 void SetPageView(CXFA_FFPageView* pPageView); | 48 void SetPageView(CXFA_FFPageView* pPageView); |
| 49 void GetWidgetRect(CFX_RectF& rtWidget); | 49 void GetWidgetRect(CFX_RectF& rtWidget); |
| 50 CFX_RectF ReCacheWidgetRect(); | 50 CFX_RectF ReCacheWidgetRect(); |
| 51 uint32_t GetStatus(); | 51 uint32_t GetStatus(); |
| 52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); | 52 void ModifyStatus(uint32_t dwAdded, uint32_t dwRemoved); |
| 53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, | 53 virtual FX_BOOL GetBBox(CFX_RectF& rtBox, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); | 177 FX_BOOL XFA_IsCreateWidget(XFA_ELEMENT iType); |
| 178 #define XFA_DRAWBOX_ForceRound 1 | 178 #define XFA_DRAWBOX_ForceRound 1 |
| 179 #define XFA_DRAWBOX_Lowered3D 2 | 179 #define XFA_DRAWBOX_Lowered3D 2 |
| 180 void XFA_DrawBox(CXFA_Box box, | 180 void XFA_DrawBox(CXFA_Box box, |
| 181 CFX_Graphics* pGS, | 181 CFX_Graphics* pGS, |
| 182 const CFX_RectF& rtWidget, | 182 const CFX_RectF& rtWidget, |
| 183 CFX_Matrix* pMatrix, | 183 CFX_Matrix* pMatrix, |
| 184 uint32_t dwFlags = 0); | 184 uint32_t dwFlags = 0); |
| 185 | 185 |
| 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ | 186 #endif // XFA_FXFA_INCLUDE_XFA_FFWIDGET_H_ |
| OLD | NEW |