| 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/include/fxfa/xfa_ffwidget.h" | 7 #include "xfa/fxfa/include/xfa_ffwidget.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" | 11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" |
| 12 #include "core/fxcodec/include/fx_codec.h" | 12 #include "core/fxcodec/include/fx_codec.h" |
| 13 #include "xfa/fxfa/app/xfa_textlayout.h" | 13 #include "xfa/fxfa/app/xfa_textlayout.h" |
| 14 #include "xfa/fxfa/include/xfa_ffapp.h" |
| 15 #include "xfa/fxfa/include/xfa_ffdoc.h" |
| 16 #include "xfa/fxfa/include/xfa_ffdocview.h" |
| 17 #include "xfa/fxfa/include/xfa_ffpageview.h" |
| 14 #include "xfa/fxfa/parser/cxfa_corner.h" | 18 #include "xfa/fxfa/parser/cxfa_corner.h" |
| 15 #include "xfa/fxgraphics/cfx_color.h" | 19 #include "xfa/fxgraphics/cfx_color.h" |
| 16 #include "xfa/fxgraphics/cfx_path.h" | 20 #include "xfa/fxgraphics/cfx_path.h" |
| 17 #include "xfa/fxgraphics/cfx_pattern.h" | 21 #include "xfa/fxgraphics/cfx_pattern.h" |
| 18 #include "xfa/fxgraphics/cfx_shading.h" | 22 #include "xfa/fxgraphics/cfx_shading.h" |
| 19 #include "xfa/fxgraphics/include/cfx_graphics.h" | 23 #include "xfa/fxgraphics/include/cfx_graphics.h" |
| 20 #include "xfa/include/fxfa/xfa_ffapp.h" | |
| 21 #include "xfa/include/fxfa/xfa_ffdoc.h" | |
| 22 #include "xfa/include/fxfa/xfa_ffdocview.h" | |
| 23 #include "xfa/include/fxfa/xfa_ffpageview.h" | |
| 24 | 24 |
| 25 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, | 25 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, |
| 26 CXFA_WidgetAcc* pDataAcc) | 26 CXFA_WidgetAcc* pDataAcc) |
| 27 : CXFA_ContentLayoutItem(pDataAcc->GetNode()), | 27 : CXFA_ContentLayoutItem(pDataAcc->GetNode()), |
| 28 m_pPageView(pPageView), | 28 m_pPageView(pPageView), |
| 29 m_pDataAcc(pDataAcc) { | 29 m_pDataAcc(pDataAcc) { |
| 30 m_rtWidget.Set(0, 0, 0, 0); | 30 m_rtWidget.Set(0, 0, 0, 0); |
| 31 } | 31 } |
| 32 CXFA_FFWidget::~CXFA_FFWidget() {} | 32 CXFA_FFWidget::~CXFA_FFWidget() {} |
| 33 CXFA_FFPageView* CXFA_FFWidget::GetPageView() { | 33 CXFA_FFPageView* CXFA_FFWidget::GetPageView() { |
| (...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1957 iType != XFA_ELEMENT_Rectangle) { | 1957 iType != XFA_ELEMENT_Rectangle) { |
| 1958 return; | 1958 return; |
| 1959 } | 1959 } |
| 1960 CXFA_StrokeArray strokes; | 1960 CXFA_StrokeArray strokes; |
| 1961 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { | 1961 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { |
| 1962 box.GetStrokes(strokes); | 1962 box.GetStrokes(strokes); |
| 1963 } | 1963 } |
| 1964 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1964 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
| 1965 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1965 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
| 1966 } | 1966 } |
| OLD | NEW |