| 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Norma
l, NULL); | 916 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Norma
l, NULL); |
| 917 } | 917 } |
| 918 | 918 |
| 919 | 919 |
| 920 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFS
DK_Annot* pAnnot, | 920 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFS
DK_Annot* pAnnot, |
| 921 CFX_RenderDevic
e* pDevice, CPDF_Matrix* pUser2Device, | 921 CFX_RenderDevic
e* pDevice, CPDF_Matrix* pUser2Device, |
| 922 /*const CRect&
rcWindow, */FX_DWORD dwFlags) | 922 /*const CRect&
rcWindow, */FX_DWORD dwFlags) |
| 923 { | 923 { |
| 924 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 924 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
| 925 } | 925 } |
| OLD | NEW |