OLD | NEW |
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/fwl/basewidget/fxmath_barcodeimp.h" | 7 #include "xfa/fwl/basewidget/cfx_barcode.h" |
8 | 8 |
9 #include "xfa/fxbarcode/cbc_codabar.h" | 9 #include "xfa/fxbarcode/cbc_codabar.h" |
10 #include "xfa/fxbarcode/cbc_code128.h" | 10 #include "xfa/fxbarcode/cbc_code128.h" |
11 #include "xfa/fxbarcode/cbc_code39.h" | 11 #include "xfa/fxbarcode/cbc_code39.h" |
12 #include "xfa/fxbarcode/cbc_codebase.h" | 12 #include "xfa/fxbarcode/cbc_codebase.h" |
13 #include "xfa/fxbarcode/cbc_datamatrix.h" | 13 #include "xfa/fxbarcode/cbc_datamatrix.h" |
14 #include "xfa/fxbarcode/cbc_ean13.h" | 14 #include "xfa/fxbarcode/cbc_ean13.h" |
15 #include "xfa/fxbarcode/cbc_ean8.h" | 15 #include "xfa/fxbarcode/cbc_ean8.h" |
16 #include "xfa/fxbarcode/cbc_pdf417i.h" | 16 #include "xfa/fxbarcode/cbc_pdf417i.h" |
17 #include "xfa/fxbarcode/cbc_qrcode.h" | 17 #include "xfa/fxbarcode/cbc_qrcode.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 continue; | 368 continue; |
369 } | 369 } |
370 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); | 370 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); |
371 if (errorCode == BCExceptionNO) { | 371 if (errorCode == BCExceptionNO) { |
372 return ret; | 372 return ret; |
373 } | 373 } |
374 } | 374 } |
375 errorCode = BCExceptionUnSupportedBarcode; | 375 errorCode = BCExceptionUnSupportedBarcode; |
376 return CFX_WideString(); | 376 return CFX_WideString(); |
377 } | 377 } |
OLD | NEW |