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/include/formfiller/FFL_CheckBox.h" | 7 #include "fpdfsdk/include/formfiller/FFL_CheckBox.h" |
8 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h" | 8 #include "fpdfsdk/include/formfiller/FFL_ComboBox.h" |
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
10 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" | 10 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 CPDF_Rect rcAnnot; | 50 CPDF_Rect rcAnnot; |
51 pPDFAnnot->GetRect(rcAnnot); | 51 pPDFAnnot->GetRect(rcAnnot); |
52 | 52 |
53 CPDF_Rect rcWin = CPWL_Utils::InflateRect(rcAnnot, 1); | 53 CPDF_Rect rcWin = CPWL_Utils::InflateRect(rcAnnot, 1); |
54 return rcWin.GetOutterRect(); | 54 return rcWin.GetOutterRect(); |
55 } | 55 } |
56 | 56 |
57 void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, | 57 void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, |
58 /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, | 58 /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, |
59 CFX_RenderDevice* pDevice, | 59 CFX_RenderDevice* pDevice, |
60 CPDF_Matrix* pUser2Device, | 60 CFX_Matrix* pUser2Device, |
61 /*const CRect& rcWindow,*/ FX_DWORD dwFlags) { | 61 /*const CRect& rcWindow,*/ FX_DWORD dwFlags) { |
62 ASSERT(pPageView != NULL); | 62 ASSERT(pPageView != NULL); |
63 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; | 63 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; |
64 | 64 |
65 if (IsVisible(pWidget)) { | 65 if (IsVisible(pWidget)) { |
66 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { | 66 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { |
67 if (pFormFiller->IsValid()) { | 67 if (pFormFiller->IsValid()) { |
68 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 68 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
69 pAnnot->GetPDFPage(); | 69 pAnnot->GetPDFPage(); |
70 | 70 |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 bExit = TRUE; | 872 bExit = TRUE; |
873 m_bNotifying = FALSE; | 873 m_bNotifying = FALSE; |
874 return; | 874 return; |
875 } | 875 } |
876 } | 876 } |
877 | 877 |
878 m_bNotifying = FALSE; | 878 m_bNotifying = FALSE; |
879 } | 879 } |
880 } | 880 } |
881 } | 881 } |
OLD | NEW |