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 #include "xfa/fxfa/xfa_ffwidget.h" | 7 #include "xfa/fxfa/xfa_ffwidget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 28 matching lines...) Expand all Loading... |
39 m_rtWidget.Set(0, 0, 0, 0); | 39 m_rtWidget.Set(0, 0, 0, 0); |
40 } | 40 } |
41 CXFA_FFWidget::~CXFA_FFWidget() {} | 41 CXFA_FFWidget::~CXFA_FFWidget() {} |
42 CXFA_FFPageView* CXFA_FFWidget::GetPageView() { | 42 CXFA_FFPageView* CXFA_FFWidget::GetPageView() { |
43 return m_pPageView; | 43 return m_pPageView; |
44 } | 44 } |
45 void CXFA_FFWidget::SetPageView(CXFA_FFPageView* pPageView) { | 45 void CXFA_FFWidget::SetPageView(CXFA_FFPageView* pPageView) { |
46 m_pPageView = pPageView; | 46 m_pPageView = pPageView; |
47 } | 47 } |
48 | 48 |
49 const IFWL_App* CXFA_FFWidget::GetFWLApp() { | 49 const CFWL_App* CXFA_FFWidget::GetFWLApp() { |
50 return GetPageView()->GetDocView()->GetDoc()->GetApp()->GetFWLApp(); | 50 return GetPageView()->GetDocView()->GetDoc()->GetApp()->GetFWLApp(); |
51 } | 51 } |
52 | 52 |
53 void CXFA_FFWidget::GetWidgetRect(CFX_RectF& rtWidget) { | 53 void CXFA_FFWidget::GetWidgetRect(CFX_RectF& rtWidget) { |
54 if ((m_dwStatus & XFA_WidgetStatus_RectCached) == 0) { | 54 if ((m_dwStatus & XFA_WidgetStatus_RectCached) == 0) { |
55 m_dwStatus |= XFA_WidgetStatus_RectCached; | 55 m_dwStatus |= XFA_WidgetStatus_RectCached; |
56 GetRect(m_rtWidget); | 56 GetRect(m_rtWidget); |
57 } | 57 } |
58 rtWidget = m_rtWidget; | 58 rtWidget = m_rtWidget; |
59 } | 59 } |
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 } | 2045 } |
2046 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 2046 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
2047 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 2047 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
2048 } | 2048 } |
2049 | 2049 |
2050 CXFA_CalcData::CXFA_CalcData() : m_iRefCount(0) {} | 2050 CXFA_CalcData::CXFA_CalcData() : m_iRefCount(0) {} |
2051 | 2051 |
2052 CXFA_CalcData::~CXFA_CalcData() { | 2052 CXFA_CalcData::~CXFA_CalcData() { |
2053 m_Globals.RemoveAll(); | 2053 m_Globals.RemoveAll(); |
2054 } | 2054 } |
OLD | NEW |