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/app/xfa_ffwidget.h" | 7 #include "xfa/fxfa/app/xfa_ffwidget.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/include/fpdfapi/fpdf_page.h" | 11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" |
12 #include "core/include/fxcodec/fx_codec.h" | 12 #include "core/include/fxcodec/fx_codec.h" |
13 #include "xfa/fxfa/app/xfa_ffapp.h" | 13 #include "xfa/fxfa/app/xfa_ffapp.h" |
14 #include "xfa/fxfa/app/xfa_ffdoc.h" | 14 #include "xfa/fxfa/app/xfa_ffdoc.h" |
15 #include "xfa/fxfa/app/xfa_ffdocview.h" | 15 #include "xfa/fxfa/app/xfa_ffdocview.h" |
16 #include "xfa/fxfa/app/xfa_ffpageview.h" | 16 #include "xfa/fxfa/app/xfa_ffpageview.h" |
17 #include "xfa/fxfa/app/xfa_textlayout.h" | 17 #include "xfa/fxfa/app/xfa_textlayout.h" |
18 #include "xfa/include/fxgraphics/fx_graphics.h" | 18 #include "xfa/include/fxgraphics/fx_graphics.h" |
19 | 19 |
20 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, | 20 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, |
21 CXFA_WidgetAcc* pDataAcc) | 21 CXFA_WidgetAcc* pDataAcc) |
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1952 iType != XFA_ELEMENT_Rectangle) { | 1952 iType != XFA_ELEMENT_Rectangle) { |
1953 return; | 1953 return; |
1954 } | 1954 } |
1955 CXFA_StrokeArray strokes; | 1955 CXFA_StrokeArray strokes; |
1956 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { | 1956 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { |
1957 box.GetStrokes(strokes); | 1957 box.GetStrokes(strokes); |
1958 } | 1958 } |
1959 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1959 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1960 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); | 1960 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); |
1961 } | 1961 } |
OLD | NEW |