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 "fpdfsdk/formfiller/cffl_iformfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_iformfiller.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) | 39 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) |
40 return pFormFiller->GetViewBBox(pPageView, pAnnot); | 40 return pFormFiller->GetViewBBox(pPageView, pAnnot); |
41 | 41 |
42 ASSERT(pPageView); | 42 ASSERT(pPageView); |
43 | 43 |
44 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); | 44 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); |
45 CFX_FloatRect rcAnnot; | 45 CFX_FloatRect rcAnnot; |
46 pPDFAnnot->GetRect(rcAnnot); | 46 pPDFAnnot->GetRect(rcAnnot); |
47 | 47 |
48 CFX_FloatRect rcWin = CPWL_Utils::InflateRect(rcAnnot, 1); | 48 CFX_FloatRect rcWin = CPWL_Utils::InflateRect(rcAnnot, 1); |
49 return rcWin.GetOutterRect(); | 49 return rcWin.GetOuterRect(); |
50 } | 50 } |
51 | 51 |
52 void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, | 52 void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, |
53 CPDFSDK_Annot* pAnnot, | 53 CPDFSDK_Annot* pAnnot, |
54 CFX_RenderDevice* pDevice, | 54 CFX_RenderDevice* pDevice, |
55 CFX_Matrix* pUser2Device, | 55 CFX_Matrix* pUser2Device, |
56 uint32_t dwFlags) { | 56 uint32_t dwFlags) { |
57 ASSERT(pPageView); | 57 ASSERT(pPageView); |
58 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; | 58 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; |
59 | 59 |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 bExit = TRUE; | 999 bExit = TRUE; |
1000 m_bNotifying = FALSE; | 1000 m_bNotifying = FALSE; |
1001 return; | 1001 return; |
1002 } | 1002 } |
1003 } | 1003 } |
1004 | 1004 |
1005 m_bNotifying = FALSE; | 1005 m_bNotifying = FALSE; |
1006 } | 1006 } |
1007 } | 1007 } |
1008 } | 1008 } |
OLD | NEW |