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

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

Issue 1283493004: Cleanup: Mark methods with the override keyword. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
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
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 nCharacters, TRUE); 293 nCharacters, TRUE);
294 294
295 pEdit->SetEditNotify(this); 295 pEdit->SetEditNotify(this);
296 } 296 }
297 } 297 }
298 298
299 void CFFL_ComboBox::OnKillFocus(CPWL_Wnd* pWnd) { 299 void CFFL_ComboBox::OnKillFocus(CPWL_Wnd* pWnd) {
300 ASSERT(m_pApp != NULL); 300 ASSERT(m_pApp != NULL);
301 } 301 }
302 302
303 FX_BOOL CFFL_ComboBox::CanCopy(CPDFSDK_Document* pDocument) {
304 ASSERT(pDocument != NULL);
305
306 return FALSE;
307 }
308
309 FX_BOOL CFFL_ComboBox::CanCut(CPDFSDK_Document* pDocument) {
310 ASSERT(pDocument != NULL);
311
312 return FALSE;
313 }
314
315 FX_BOOL CFFL_ComboBox::CanPaste(CPDFSDK_Document* pDocument) {
316 ASSERT(pDocument != NULL);
317
318 return FALSE;
319 }
320
321 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit) { 303 void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit) {
322 ASSERT(pEdit != NULL); 304 ASSERT(pEdit != NULL);
323 } 305 }
324 306
325 CFX_WideString CFFL_ComboBox::GetSelectExportText() { 307 CFX_WideString CFFL_ComboBox::GetSelectExportText() {
326 CFX_WideString swRet; 308 CFX_WideString swRet;
327 309
328 int nExport = -1; 310 int nExport = -1;
329 CPDFSDK_PageView* pPageView = GetCurPageView(); 311 CPDFSDK_PageView* pPageView = GetCurPageView();
330 if (CPWL_ComboBox* pComboBox = 312 if (CPWL_ComboBox* pComboBox =
331 (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE)) { 313 (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE)) {
332 nExport = pComboBox->GetSelect(); 314 nExport = pComboBox->GetSelect();
333 } 315 }
334 316
335 if (nExport >= 0) { 317 if (nExport >= 0) {
336 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) { 318 if (CPDF_FormField* pFormField = m_pWidget->GetFormField()) {
337 swRet = pFormField->GetOptionValue(nExport); 319 swRet = pFormField->GetOptionValue(nExport);
338 if (swRet.IsEmpty()) 320 if (swRet.IsEmpty())
339 swRet = pFormField->GetOptionLabel(nExport); 321 swRet = pFormField->GetOptionLabel(nExport);
340 } 322 }
341 } 323 }
342 324
343 return swRet; 325 return swRet;
344 } 326 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698