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 | 7 |
8 #include "../../include/formfiller/FFL_FormFiller.h" | 8 #include "../../include/formfiller/FFL_FormFiller.h" |
9 #include "../../include/formfiller/FFL_Notify.h" | 9 #include "../../include/formfiller/FFL_Notify.h" |
10 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | 10 #include "../../include/formfiller/FFL_CBA_Fontmap.h" |
11 | 11 |
12 #define GetRed(rgb)» » » ((FX_BYTE)(rgb)) | 12 #define GetRed(rgb)» » » ((uint8_t)(rgb)) |
13 #define GetGreen(rgb)» » ((FX_BYTE)(((FX_WORD)(rgb)) >> 8)) | 13 #define GetGreen(rgb)» » ((uint8_t)(((FX_WORD)(rgb)) >> 8)) |
14 #define GetBlue(rgb)» » ((FX_BYTE)((rgb)>>16)) | 14 #define GetBlue(rgb)» » ((uint8_t)((rgb)>>16)) |
15 | 15 |
16 #define FFL_HINT_ELAPSE 800 | 16 #define FFL_HINT_ELAPSE 800 |
17 | 17 |
18 /* ------------------------- CFFL_FormFiller ------------------------- */ | 18 /* ------------------------- CFFL_FormFiller ------------------------- */ |
19 | 19 |
20 CFFL_FormFiller::CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnno
t) | 20 CFFL_FormFiller::CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnno
t) |
21 :m_pApp(pApp), | 21 :m_pApp(pApp), |
22 m_pAnnot(pAnnot), | 22 m_pAnnot(pAnnot), |
23 m_bValid(FALSE), | 23 m_bValid(FALSE), |
24 m_ptOldPos(0,0) | 24 m_ptOldPos(0,0) |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Norma
l, NULL); | 921 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Norma
l, NULL); |
922 } | 922 } |
923 | 923 |
924 | 924 |
925 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFS
DK_Annot* pAnnot, | 925 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFS
DK_Annot* pAnnot, |
926 CFX_RenderDevic
e* pDevice, CPDF_Matrix* pUser2Device, | 926 CFX_RenderDevic
e* pDevice, CPDF_Matrix* pUser2Device, |
927 /*const CRect&
rcWindow, */FX_DWORD dwFlags) | 927 /*const CRect&
rcWindow, */FX_DWORD dwFlags) |
928 { | 928 { |
929 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 929 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
930 } | 930 } |
OLD | NEW |