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

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

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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_ffapp.cpp ('k') | xfa/fxfa/app/xfa_ffcheckbutton.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 m_pNormalWidget->LockUpdate(); 134 m_pNormalWidget->LockUpdate();
135 CFX_WideString wsText; 135 CFX_WideString wsText;
136 m_pDataAcc->GetValue(wsText, XFA_VALUEPICTURE_Display); 136 m_pDataAcc->GetValue(wsText, XFA_VALUEPICTURE_Display);
137 pFWLBarcode->SetText(wsText); 137 pFWLBarcode->SetText(wsText);
138 UpdateWidgetProperty(); 138 UpdateWidgetProperty();
139 m_pNormalWidget->UnlockUpdate(); 139 m_pNormalWidget->UnlockUpdate();
140 return CXFA_FFField::LoadWidget(); 140 return CXFA_FFField::LoadWidget();
141 } 141 }
142 void CXFA_FFBarcode::RenderWidget(CFX_Graphics* pGS, 142 void CXFA_FFBarcode::RenderWidget(CFX_Graphics* pGS,
143 CFX_Matrix* pMatrix, 143 CFX_Matrix* pMatrix,
144 FX_DWORD dwStatus, 144 uint32_t dwStatus,
145 int32_t iRotate) { 145 int32_t iRotate) {
146 if (!IsMatchVisibleStatus(dwStatus)) { 146 if (!IsMatchVisibleStatus(dwStatus)) {
147 return; 147 return;
148 } 148 }
149 CFX_Matrix mtRotate; 149 CFX_Matrix mtRotate;
150 GetRotateMatrix(mtRotate); 150 GetRotateMatrix(mtRotate);
151 if (pMatrix) { 151 if (pMatrix) {
152 mtRotate.Concat(*pMatrix); 152 mtRotate.Concat(*pMatrix);
153 } 153 }
154 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus); 154 CXFA_FFWidget::RenderWidget(pGS, &mtRotate, dwStatus);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 if (pAcc->GetBarcodeAttribute_WideNarrowRatio(floatVal)) { 210 if (pAcc->GetBarcodeAttribute_WideNarrowRatio(floatVal)) {
211 pBarCodeWidget->SetWideNarrowRatio((int32_t)floatVal); 211 pBarCodeWidget->SetWideNarrowRatio((int32_t)floatVal);
212 } 212 }
213 if (pBarcodeTypeInfo->eName == XFA_BARCODETYPE_code3Of9 || 213 if (pBarcodeTypeInfo->eName == XFA_BARCODETYPE_code3Of9 ||
214 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_ean8 || 214 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_ean8 ||
215 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_ean13 || 215 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_ean13 ||
216 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_upcA) { 216 pBarcodeTypeInfo->eName == XFA_BARCODETYPE_upcA) {
217 pBarCodeWidget->SetPrintChecksum(TRUE); 217 pBarCodeWidget->SetPrintChecksum(TRUE);
218 } 218 }
219 } 219 }
220 FX_BOOL CXFA_FFBarcode::OnLButtonDown(FX_DWORD dwFlags, 220 FX_BOOL CXFA_FFBarcode::OnLButtonDown(uint32_t dwFlags,
221 FX_FLOAT fx, 221 FX_FLOAT fx,
222 FX_FLOAT fy) { 222 FX_FLOAT fy) {
223 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget; 223 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget;
224 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) { 224 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) {
225 return FALSE; 225 return FALSE;
226 } 226 }
227 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) { 227 if (m_pDataAcc->GetAccess() != XFA_ATTRIBUTEENUM_Open) {
228 return FALSE; 228 return FALSE;
229 } 229 }
230 return CXFA_FFTextEdit::OnLButtonDown(dwFlags, fx, fy); 230 return CXFA_FFTextEdit::OnLButtonDown(dwFlags, fx, fy);
231 } 231 }
232 FX_BOOL CXFA_FFBarcode::OnRButtonDown(FX_DWORD 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_ffapp.cpp ('k') | xfa/fxfa/app/xfa_ffcheckbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698