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

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

Issue 1196853002: Cleanup: Remove dead formfiller code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 6 months 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
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 "../../include/formfiller/FormFiller.h" 7 #include "../../include/formfiller/FormFiller.h"
8 #include "../../include/formfiller/FFL_FormFiller.h" 8 #include "../../include/formfiller/FFL_FormFiller.h"
9 #include "../../include/formfiller/FFL_IFormFiller.h" 9 #include "../../include/formfiller/FFL_IFormFiller.h"
10 #include "../../include/formfiller/FFL_CBA_Fontmap.h" 10 #include "../../include/formfiller/FFL_CBA_Fontmap.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 return FALSE; 369 return FALSE;
370 } 370 }
371 371
372 FX_BOOL CFFL_ComboBox::CanPaste(CPDFSDK_Document* pDocument) 372 FX_BOOL CFFL_ComboBox::CanPaste(CPDFSDK_Document* pDocument)
373 { 373 {
374 ASSERT(pDocument != NULL); 374 ASSERT(pDocument != NULL);
375 375
376 return FALSE; 376 return FALSE;
377 } 377 }
378 378
379 void CFFL_ComboBox::DoCopy(CPDFSDK_Document* pDocument)
380 {
381 ASSERT(pDocument != NULL);
382 }
383
384 void CFFL_ComboBox::DoCut(CPDFSDK_Document* pDocument)
385 {
386 ASSERT(pDocument != NULL);
387 }
388
389 void CFFL_ComboBox::DoPaste(CPDFSDK_Document* pDocument)
390 {
391 ASSERT(pDocument != NULL);
392 }
393
394 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit) 379 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit)
395 { 380 {
396 ASSERT(pEdit != NULL); 381 ASSERT(pEdit != NULL);
397 } 382 }
398 383
399 CFX_WideString CFFL_ComboBox::GetSelectExportText() 384 CFX_WideString CFFL_ComboBox::GetSelectExportText()
400 { 385 {
401 CFX_WideString swRet; 386 CFX_WideString swRet;
402 387
403 int nExport = -1; 388 int nExport = -1;
404 CPDFSDK_PageView *pPageView = GetCurPageView(); 389 CPDFSDK_PageView *pPageView = GetCurPageView();
405 if (CPWL_ComboBox * pComboBox = (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE)) 390 if (CPWL_ComboBox * pComboBox = (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE))
406 { 391 {
407 nExport = pComboBox->GetSelect(); 392 nExport = pComboBox->GetSelect();
408 } 393 }
409 394
410 if (nExport >= 0) 395 if (nExport >= 0)
411 { 396 {
412 if (CPDF_FormField * pFormField = m_pWidget->GetFormField()) 397 if (CPDF_FormField * pFormField = m_pWidget->GetFormField())
413 { 398 {
414 swRet = pFormField->GetOptionValue(nExport); 399 swRet = pFormField->GetOptionValue(nExport);
415 if (swRet.IsEmpty()) 400 if (swRet.IsEmpty())
416 swRet = pFormField->GetOptionLabel(nExport); 401 swRet = pFormField->GetOptionLabel(nExport);
417 } 402 }
418 } 403 }
419 404
420 return swRet; 405 return swRet;
421 } 406 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698