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

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

Issue 1280883003: Merge to XFA: Cleanup: Remove dead formfiller code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@xfa
Patch Set: Created 5 years, 4 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
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/formfiller/FFL_FormFiller.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 "../../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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 return FALSE; 323 return FALSE;
324 } 324 }
325 325
326 FX_BOOL CFFL_ComboBox::CanPaste(CPDFSDK_Document* pDocument) { 326 FX_BOOL CFFL_ComboBox::CanPaste(CPDFSDK_Document* pDocument) {
327 ASSERT(pDocument != NULL); 327 ASSERT(pDocument != NULL);
328 328
329 return FALSE; 329 return FALSE;
330 } 330 }
331 331
332 void CFFL_ComboBox::DoCopy(CPDFSDK_Document* pDocument) {
333 ASSERT(pDocument != NULL);
334 }
335
336 void CFFL_ComboBox::DoCut(CPDFSDK_Document* pDocument) {
337 ASSERT(pDocument != NULL);
338 }
339
340 void CFFL_ComboBox::DoPaste(CPDFSDK_Document* pDocument) {
341 ASSERT(pDocument != NULL);
342 }
343
344 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit) { 332 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit) {
345 ASSERT(pEdit != NULL); 333 ASSERT(pEdit != NULL);
346 } 334 }
347 335
348 CFX_WideString CFFL_ComboBox::GetSelectExportText() { 336 CFX_WideString CFFL_ComboBox::GetSelectExportText() {
349 CFX_WideString swRet; 337 CFX_WideString swRet;
350 338
351 int nExport = -1; 339 int nExport = -1;
352 CPDFSDK_PageView* pPageView = GetCurPageView(); 340 CPDFSDK_PageView* pPageView = GetCurPageView();
353 if (CPWL_ComboBox* pComboBox = 341 if (CPWL_ComboBox* pComboBox =
354 (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE)) { 342 (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE)) {
355 nExport = pComboBox->GetSelect(); 343 nExport = pComboBox->GetSelect();
356 } 344 }
357 345
358 if (nExport >= 0) { 346 if (nExport >= 0) {
359 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) { 347 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) {
360 swRet = pFormField->GetOptionValue(nExport); 348 swRet = pFormField->GetOptionValue(nExport);
361 if (swRet.IsEmpty()) 349 if (swRet.IsEmpty())
362 swRet = pFormField->GetOptionLabel(nExport); 350 swRet = pFormField->GetOptionLabel(nExport);
363 } 351 }
364 } 352 }
365 353
366 return swRet; 354 return swRet;
367 } 355 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/formfiller/FFL_FormFiller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698