Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1272)

Side by Side Diff: fpdfsdk/src/formfiller/FFL_FormFiller.cpp

Issue 1399273003: fpdfsdk/ differences with XFA (for didactic purposes only). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Regenerate after taking juns patch Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
566 FX_BOOL CFFL_FormFiller::IsFieldFull(CPDFSDK_PageView* pPageView) {
567 return FALSE;
568 }
569
570 #endif
565 void CFFL_FormFiller::SetChangeMark() { 571 void CFFL_FormFiller::SetChangeMark() {
566 m_pApp->FFI_OnChange(); 572 m_pApp->FFI_OnChange();
567 } 573 }
568 574
569 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, 575 void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView,
570 CPDF_AAction::AActionType type, 576 CPDF_AAction::AActionType type,
571 PDFSDK_FieldAction& fa) { 577 PDFSDK_FieldAction& fa) {
572 fa.sValue = m_pWidget->GetValue(); 578 fa.sValue = m_pWidget->GetValue();
573 } 579 }
574 580
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); 717 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
712 } 718 }
713 719
714 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView, 720 void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView* pPageView,
715 CPDFSDK_Annot* pAnnot, 721 CPDFSDK_Annot* pAnnot,
716 CFX_RenderDevice* pDevice, 722 CFX_RenderDevice* pDevice,
717 CPDF_Matrix* pUser2Device, 723 CPDF_Matrix* pUser2Device,
718 FX_DWORD dwFlags) { 724 FX_DWORD dwFlags) {
719 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags); 725 OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
720 } 726 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_IFormFiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698