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

Side by Side Diff: xfa/fxfa/app/xfa_fffield.cpp

Issue 1983683003: Remove some c_str() calls from StringCs in xfa docs. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 | « xfa/fxfa/app/xfa_ffdocview.cpp ('k') | xfa/fxfa/app/xfa_fftext.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 "xfa/fxfa/app/xfa_fffield.h" 7 #include "xfa/fxfa/app/xfa_fffield.h"
8 8
9 #include "xfa/fwl/basewidget/ifwl_edit.h" 9 #include "xfa/fwl/basewidget/ifwl_edit.h"
10 #include "xfa/fwl/core/cfwl_message.h" 10 #include "xfa/fwl/core/cfwl_message.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 return 1; 718 return 1;
719 } 719 }
720 IXFA_AppProvider* pAppProvider = GetApp()->GetAppProvider(); 720 IXFA_AppProvider* pAppProvider = GetApp()->GetAppProvider();
721 if (pAppProvider) { 721 if (pAppProvider) {
722 CFX_WideString wsMessage; 722 CFX_WideString wsMessage;
723 CFX_WideString wsWarning; 723 CFX_WideString wsWarning;
724 pAppProvider->LoadString(XFA_IDS_NotModifyField, wsWarning); 724 pAppProvider->LoadString(XFA_IDS_NotModifyField, wsWarning);
725 wsMessage += wsWarning; 725 wsMessage += wsWarning;
726 CFX_WideString wsTitle; 726 CFX_WideString wsTitle;
727 pAppProvider->LoadString(XFA_IDS_CalcOverride, wsTitle); 727 pAppProvider->LoadString(XFA_IDS_CalcOverride, wsTitle);
728 pAppProvider->MsgBox(wsMessage.AsStringC(), wsTitle.AsStringC(), 728 pAppProvider->MsgBox(wsMessage, wsTitle, XFA_MBICON_Warning,
729 XFA_MBICON_Warning, XFA_MB_OK); 729 XFA_MB_OK);
730 } 730 }
731 } 731 }
732 return 0; 732 return 0;
733 case XFA_ATTRIBUTEENUM_Warning: { 733 case XFA_ATTRIBUTEENUM_Warning: {
734 if (version <= XFA_VERSION_204) { 734 if (version <= XFA_VERSION_204) {
735 CXFA_Script script = calc.GetScript(); 735 CXFA_Script script = calc.GetScript();
736 if (!script) { 736 if (!script) {
737 return 1; 737 return 1;
738 } 738 }
739 CFX_WideString wsExpression; 739 CFX_WideString wsExpression;
(...skipping 10 matching lines...) Expand all
750 CFX_WideString wsMessage; 750 CFX_WideString wsMessage;
751 calc.GetMessageText(wsMessage); 751 calc.GetMessageText(wsMessage);
752 if (!wsMessage.IsEmpty()) { 752 if (!wsMessage.IsEmpty()) {
753 wsMessage += L"\r\n"; 753 wsMessage += L"\r\n";
754 } 754 }
755 CFX_WideString wsWarning; 755 CFX_WideString wsWarning;
756 pAppProvider->LoadString(XFA_IDS_ModifyField, wsWarning); 756 pAppProvider->LoadString(XFA_IDS_ModifyField, wsWarning);
757 wsMessage += wsWarning; 757 wsMessage += wsWarning;
758 CFX_WideString wsTitle; 758 CFX_WideString wsTitle;
759 pAppProvider->LoadString(XFA_IDS_CalcOverride, wsTitle); 759 pAppProvider->LoadString(XFA_IDS_CalcOverride, wsTitle);
760 if (pAppProvider->MsgBox(wsMessage.AsStringC(), wsTitle.AsStringC(), 760 if (pAppProvider->MsgBox(wsMessage, wsTitle, XFA_MBICON_Warning,
761 XFA_MBICON_Warning,
762 XFA_MB_YesNo) == XFA_IDYes) { 761 XFA_MB_YesNo) == XFA_IDYes) {
763 pAcc->GetNode()->SetFlag(XFA_NODEFLAG_UserInteractive, false); 762 pAcc->GetNode()->SetFlag(XFA_NODEFLAG_UserInteractive, false);
764 return 1; 763 return 1;
765 } 764 }
766 } 765 }
767 return 0; 766 return 0;
768 } 767 }
769 case XFA_ATTRIBUTEENUM_Ignore: 768 case XFA_ATTRIBUTEENUM_Ignore:
770 return 0; 769 return 0;
771 case XFA_ATTRIBUTEENUM_Disabled: 770 case XFA_ATTRIBUTEENUM_Disabled:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); 820 m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam);
822 break; 821 break;
823 } 822 }
824 default: 823 default:
825 break; 824 break;
826 } 825 }
827 } 826 }
828 827
829 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics, 828 void CXFA_FFField::OnDrawWidget(CFX_Graphics* pGraphics,
830 const CFX_Matrix* pMatrix) {} 829 const CFX_Matrix* pMatrix) {}
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdocview.cpp ('k') | xfa/fxfa/app/xfa_fftext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698