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

Side by Side Diff: fpdfsdk/cpdfsdk_widget.cpp

Issue 2318423002: Fix spelling of "Formated" in several variables (Closed)
Patch Set: Created 4 years, 3 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/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widgethandler.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/cpdfsdk_widget.h" 7 #include "fpdfsdk/include/cpdfsdk_widget.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 FX_BOOL CPDFSDK_Widget::IsAppModified() const { 731 FX_BOOL CPDFSDK_Widget::IsAppModified() const {
732 return m_bAppModified; 732 return m_bAppModified;
733 } 733 }
734 734
735 #ifdef PDF_ENABLE_XFA 735 #ifdef PDF_ENABLE_XFA
736 void CPDFSDK_Widget::ResetAppearance(FX_BOOL bValueChanged) { 736 void CPDFSDK_Widget::ResetAppearance(FX_BOOL bValueChanged) {
737 switch (GetFieldType()) { 737 switch (GetFieldType()) {
738 case FIELDTYPE_TEXTFIELD: 738 case FIELDTYPE_TEXTFIELD:
739 case FIELDTYPE_COMBOBOX: { 739 case FIELDTYPE_COMBOBOX: {
740 FX_BOOL bFormated = FALSE; 740 FX_BOOL bFormatted = FALSE;
741 CFX_WideString sValue = OnFormat(bFormated); 741 CFX_WideString sValue = OnFormat(bFormatted);
742 ResetAppearance(bFormated ? sValue.c_str() : nullptr, TRUE); 742 ResetAppearance(bFormatted ? sValue.c_str() : nullptr, TRUE);
743 break; 743 break;
744 } 744 }
745 default: 745 default:
746 ResetAppearance(nullptr, FALSE); 746 ResetAppearance(nullptr, FALSE);
747 break; 747 break;
748 } 748 }
749 } 749 }
750 #endif // PDF_ENABLE_XFA 750 #endif // PDF_ENABLE_XFA
751 751
752 void CPDFSDK_Widget::ResetAppearance(const FX_WCHAR* sValue, 752 void CPDFSDK_Widget::ResetAppearance(const FX_WCHAR* sValue,
(...skipping 25 matching lines...) Expand all
778 ResetAppearance_ListBox(); 778 ResetAppearance_ListBox();
779 break; 779 break;
780 case FIELDTYPE_TEXTFIELD: 780 case FIELDTYPE_TEXTFIELD:
781 ResetAppearance_TextField(sValue); 781 ResetAppearance_TextField(sValue);
782 break; 782 break;
783 } 783 }
784 784
785 m_pAnnot->ClearCachedAP(); 785 m_pAnnot->ClearCachedAP();
786 } 786 }
787 787
788 CFX_WideString CPDFSDK_Widget::OnFormat(FX_BOOL& bFormated) { 788 CFX_WideString CPDFSDK_Widget::OnFormat(FX_BOOL& bFormatted) {
789 CPDF_FormField* pFormField = GetFormField(); 789 CPDF_FormField* pFormField = GetFormField();
790 ASSERT(pFormField); 790 ASSERT(pFormField);
791 return m_pInterForm->OnFormat(pFormField, bFormated); 791 return m_pInterForm->OnFormat(pFormField, bFormatted);
792 } 792 }
793 793
794 void CPDFSDK_Widget::ResetFieldAppearance(FX_BOOL bValueChanged) { 794 void CPDFSDK_Widget::ResetFieldAppearance(FX_BOOL bValueChanged) {
795 CPDF_FormField* pFormField = GetFormField(); 795 CPDF_FormField* pFormField = GetFormField();
796 ASSERT(pFormField); 796 ASSERT(pFormField);
797 m_pInterForm->ResetFieldAppearance(pFormField, nullptr, bValueChanged); 797 m_pInterForm->ResetFieldAppearance(pFormField, nullptr, bValueChanged);
798 } 798 }
799 799
800 void CPDFSDK_Widget::DrawAppearance(CFX_RenderDevice* pDevice, 800 void CPDFSDK_Widget::DrawAppearance(CFX_RenderDevice* pDevice,
801 const CFX_Matrix* pUser2Device, 801 const CFX_Matrix* pUser2Device,
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 return FALSE; 1946 return FALSE;
1947 1947
1948 if (!IsVisible()) 1948 if (!IsVisible())
1949 return FALSE; 1949 return FALSE;
1950 1950
1951 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY) 1951 if ((GetFieldFlags() & FIELDFLAG_READONLY) == FIELDFLAG_READONLY)
1952 return FALSE; 1952 return FALSE;
1953 1953
1954 return TRUE; 1954 return TRUE;
1955 } 1955 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widgethandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698