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/include/xfa_ffwidget.h" | 7 #include "xfa/fxfa/xfa_ffwidget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectholder.h" | 12 #include "core/fpdfapi/fpdf_page/cpdf_pageobjectholder.h" |
13 #include "core/fxcodec/codec/ccodec_progressivedecoder.h" | 13 #include "core/fxcodec/codec/ccodec_progressivedecoder.h" |
14 #include "core/fxcodec/fx_codec.h" | 14 #include "core/fxcodec/fx_codec.h" |
15 #include "core/fxge/cfx_gemodule.h" | 15 #include "core/fxge/cfx_gemodule.h" |
16 #include "core/fxge/cfx_pathdata.h" | 16 #include "core/fxge/cfx_pathdata.h" |
17 #include "core/fxge/cfx_renderdevice.h" | 17 #include "core/fxge/cfx_renderdevice.h" |
18 #include "xfa/fxfa/app/xfa_textlayout.h" | 18 #include "xfa/fxfa/app/xfa_textlayout.h" |
19 #include "xfa/fxfa/include/cxfa_eventparam.h" | 19 #include "xfa/fxfa/cxfa_eventparam.h" |
20 #include "xfa/fxfa/include/fxfa_widget.h" | 20 #include "xfa/fxfa/fxfa_widget.h" |
21 #include "xfa/fxfa/include/xfa_ffapp.h" | |
22 #include "xfa/fxfa/include/xfa_ffdoc.h" | |
23 #include "xfa/fxfa/include/xfa_ffdocview.h" | |
24 #include "xfa/fxfa/include/xfa_ffpageview.h" | |
25 #include "xfa/fxfa/parser/cxfa_corner.h" | 21 #include "xfa/fxfa/parser/cxfa_corner.h" |
| 22 #include "xfa/fxfa/xfa_ffapp.h" |
| 23 #include "xfa/fxfa/xfa_ffdoc.h" |
| 24 #include "xfa/fxfa/xfa_ffdocview.h" |
| 25 #include "xfa/fxfa/xfa_ffpageview.h" |
26 #include "xfa/fxgraphics/cfx_color.h" | 26 #include "xfa/fxgraphics/cfx_color.h" |
27 #include "xfa/fxgraphics/cfx_graphics.h" | 27 #include "xfa/fxgraphics/cfx_graphics.h" |
28 #include "xfa/fxgraphics/cfx_path.h" | 28 #include "xfa/fxgraphics/cfx_path.h" |
29 #include "xfa/fxgraphics/cfx_pattern.h" | 29 #include "xfa/fxgraphics/cfx_pattern.h" |
30 #include "xfa/fxgraphics/cfx_shading.h" | 30 #include "xfa/fxgraphics/cfx_shading.h" |
31 | 31 |
32 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, | 32 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, |
33 CXFA_WidgetAcc* pDataAcc) | 33 CXFA_WidgetAcc* pDataAcc) |
34 : CXFA_ContentLayoutItem(pDataAcc->GetNode()), | 34 : CXFA_ContentLayoutItem(pDataAcc->GetNode()), |
35 m_pPageView(pPageView), | 35 m_pPageView(pPageView), |
(...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 } | 2044 } |
2045 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 2045 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
2046 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 2046 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
2047 } | 2047 } |
2048 | 2048 |
2049 CXFA_CalcData::CXFA_CalcData() : m_iRefCount(0) {} | 2049 CXFA_CalcData::CXFA_CalcData() : m_iRefCount(0) {} |
2050 | 2050 |
2051 CXFA_CalcData::~CXFA_CalcData() { | 2051 CXFA_CalcData::~CXFA_CalcData() { |
2052 m_Globals.RemoveAll(); | 2052 m_Globals.RemoveAll(); |
2053 } | 2053 } |
OLD | NEW |