| 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_CBA_Fontmap.h" | 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h" |
| 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" | 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
| 9 | 9 |
| 10 #define GetRed(rgb) ((uint8_t)(rgb)) | 10 #define GetRed(rgb) ((uint8_t)(rgb)) |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 } | 555 } |
| 556 return TRUE; | 556 return TRUE; |
| 557 } | 557 } |
| 558 | 558 |
| 559 FX_BOOL CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView) { | 559 FX_BOOL CFFL_FormFiller::IsDataChanged(CPDFSDK_PageView* pPageView) { |
| 560 return FALSE; | 560 return FALSE; |
| 561 } | 561 } |
| 562 | 562 |
| 563 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView) {} | 563 void CFFL_FormFiller::SaveData(CPDFSDK_PageView* pPageView) {} |
| 564 | 564 |
| 565 #ifdef PDF_ENABLE_XFA |
| 565 FX_BOOL CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) { | 566 FX_BOOL CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) { |
| 566 return FALSE; | 567 return FALSE; |
| 567 } | 568 } |
| 568 | 569 |
| 570 #endif |
| 569 void CFFL_FormFiller::SetChangeMark() { | 571 void CFFL_FormFiller::SetChangeMark() { |
| 570 m_pApp->FFI_OnChange(); | 572 m_pApp->FFI_OnChange(); |
| 571 } | 573 } |
| 572 | 574 |
| 573 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, | 575 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, |
| 574 CPDF_AAction::AActionType type, | 576 CPDF_AAction::AActionType type, |
| 575 PDFSDK_FieldAction& fa) { | 577 PDFSDK_FieldAction& fa) { |
| 576 fa.sValue = m_pWidget->GetValue(); | 578 fa.sValue = m_pWidget->GetValue(); |
| 577 } | 579 } |
| 578 | 580 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); | 717 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); |
| 716 } | 718 } |
| 717 | 719 |
| 718 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, | 720 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 719 CPDFSDK_Annot* pAnnot, | 721 CPDFSDK_Annot* pAnnot, |
| 720 CFX_RenderDevice* pDevice, | 722 CFX_RenderDevice* pDevice, |
| 721 CPDF_Matrix* pUser2Device, | 723 CPDF_Matrix* pUser2Device, |
| 722 FX_DWORD dwFlags) { | 724 FX_DWORD dwFlags) { |
| 723 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); | 725 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); |
| 724 } | 726 } |
| OLD | NEW |