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

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

Issue 1862123003: Rename both As{Byte,Wide}StringC() helpers to AsStringC(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, fix new usage. Created 4 years, 8 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_checksum.cpp ('k') | xfa/fxfa/app/xfa_ffchoicelist.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_ffbarcode.h" 7 #include "xfa/fxfa/app/xfa_ffbarcode.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fwl/core/ifwl_app.h" 10 #include "xfa/fwl/core/ifwl_app.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 CFX_Matrix mt; 160 CFX_Matrix mt;
161 mt.Set(1, 0, 0, 1, rtWidget.left, rtWidget.top); 161 mt.Set(1, 0, 0, 1, rtWidget.left, rtWidget.top);
162 mt.Concat(mtRotate); 162 mt.Concat(mtRotate);
163 m_pNormalWidget->DrawWidget(pGS, &mt); 163 m_pNormalWidget->DrawWidget(pGS, &mt);
164 } 164 }
165 void CXFA_FFBarcode::UpdateWidgetProperty() { 165 void CXFA_FFBarcode::UpdateWidgetProperty() {
166 CXFA_FFTextEdit::UpdateWidgetProperty(); 166 CXFA_FFTextEdit::UpdateWidgetProperty();
167 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget; 167 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget;
168 CFX_WideString wsType = GetDataAcc()->GetBarcodeType(); 168 CFX_WideString wsType = GetDataAcc()->GetBarcodeType();
169 XFA_LPCBARCODETYPEENUMINFO pBarcodeTypeInfo = 169 XFA_LPCBARCODETYPEENUMINFO pBarcodeTypeInfo =
170 XFA_GetBarcodeTypeByName(wsType.AsWideStringC()); 170 XFA_GetBarcodeTypeByName(wsType.AsStringC());
171 pBarCodeWidget->SetType(pBarcodeTypeInfo->eBCType); 171 pBarCodeWidget->SetType(pBarcodeTypeInfo->eBCType);
172 CXFA_WidgetAcc* pAcc = GetDataAcc(); 172 CXFA_WidgetAcc* pAcc = GetDataAcc();
173 int32_t intVal; 173 int32_t intVal;
174 FX_CHAR charVal; 174 FX_CHAR charVal;
175 FX_BOOL boolVal; 175 FX_BOOL boolVal;
176 FX_FLOAT floatVal; 176 FX_FLOAT floatVal;
177 if (pAcc->GetBarcodeAttribute_CharEncoding(intVal)) { 177 if (pAcc->GetBarcodeAttribute_CharEncoding(intVal)) {
178 pBarCodeWidget->SetCharEncoding((BC_CHAR_ENCODING)intVal); 178 pBarCodeWidget->SetCharEncoding((BC_CHAR_ENCODING)intVal);
179 } 179 }
180 if (pAcc->GetBarcodeAttribute_Checksum(intVal)) { 180 if (pAcc->GetBarcodeAttribute_Checksum(intVal)) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 FX_BOOL CXFA_FFBarcode::OnRButtonDown(uint32_t dwFlags, 232 FX_BOOL CXFA_FFBarcode::OnRButtonDown(uint32_t dwFlags,
233 FX_FLOAT fx, 233 FX_FLOAT fx,
234 FX_FLOAT fy) { 234 FX_FLOAT fy) {
235 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget; 235 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget;
236 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) { 236 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) {
237 return FALSE; 237 return FALSE;
238 } 238 }
239 return CXFA_FFTextEdit::OnRButtonDown(dwFlags, fx, fy); 239 return CXFA_FFTextEdit::OnRButtonDown(dwFlags, fx, fy);
240 } 240 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_checksum.cpp ('k') | xfa/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698