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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 bExit = TRUE; | 1074 bExit = TRUE; |
1075 m_bNotifying = FALSE; | 1075 m_bNotifying = FALSE; |
1076 return; | 1076 return; |
1077 } | 1077 } |
1078 } | 1078 } |
1079 | 1079 |
1080 m_bNotifying = FALSE; | 1080 m_bNotifying = FALSE; |
1081 } | 1081 } |
1082 } | 1082 } |
1083 } | 1083 } |
OLD | NEW |