| 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/fxmath_barcodeimp.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" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 continue; | 379 continue; |
| 380 } | 380 } |
| 381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); | 381 CFX_WideString ret = pTmpEngine->Decode(pBitmap, errorCode); |
| 382 if (errorCode == BCExceptionNO) { | 382 if (errorCode == BCExceptionNO) { |
| 383 return ret; | 383 return ret; |
| 384 } | 384 } |
| 385 } | 385 } |
| 386 errorCode = BCExceptionUnSupportedBarcode; | 386 errorCode = BCExceptionUnSupportedBarcode; |
| 387 return CFX_WideString(); | 387 return CFX_WideString(); |
| 388 } | 388 } |
| 389 IFX_Barcode* FX_Barcode_Create(BC_TYPE type) { | |
| 390 CFX_Barcode* pBarcode = new CFX_Barcode; | |
| 391 if (pBarcode->Create(type)) { | |
| 392 return pBarcode; | |
| 393 } | |
| 394 pBarcode->Release(); | |
| 395 return NULL; | |
| 396 } | |
| OLD | NEW |