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 #ifndef XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ | 7 #ifndef XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ |
8 #define XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ | 8 #define XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_string.h" |
| 11 #include "core/include/fxcrt/fx_system.h" |
| 12 #include "xfa/fxbarcode/include/BC_Library.h" |
10 #include "xfa/include/fwl/basewidget/fxmath_barcode.h" | 13 #include "xfa/include/fwl/basewidget/fxmath_barcode.h" |
11 | 14 |
| 15 class CBC_CodeBase; |
| 16 |
12 class CFX_Barcode : public IFX_Barcode { | 17 class CFX_Barcode : public IFX_Barcode { |
13 public: | 18 public: |
14 CFX_Barcode(); | 19 CFX_Barcode(); |
15 ~CFX_Barcode(); | 20 ~CFX_Barcode(); |
| 21 |
16 FX_BOOL Crreate(BC_TYPE type); | 22 FX_BOOL Crreate(BC_TYPE type); |
17 virtual void Release(); | 23 virtual void Release(); |
18 virtual BC_TYPE GetType(); | 24 virtual BC_TYPE GetType(); |
19 virtual FX_BOOL Encode(const CFX_WideStringC& contents, | 25 virtual FX_BOOL Encode(const CFX_WideStringC& contents, |
20 FX_BOOL isDevice, | 26 FX_BOOL isDevice, |
21 int32_t& e); | 27 int32_t& e); |
22 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, | 28 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, |
23 const CFX_Matrix* matirx, | 29 const CFX_Matrix* matirx, |
24 int32_t& e); | 30 int32_t& e); |
25 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e); | 31 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e); |
(...skipping 21 matching lines...) Expand all Loading... |
47 virtual FX_BOOL SetEndChar(FX_CHAR end); | 53 virtual FX_BOOL SetEndChar(FX_CHAR end); |
48 virtual FX_BOOL SetVersion(int32_t version); | 54 virtual FX_BOOL SetVersion(int32_t version); |
49 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level); | 55 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level); |
50 virtual FX_BOOL SetTruncated(FX_BOOL truncated); | 56 virtual FX_BOOL SetTruncated(FX_BOOL truncated); |
51 | 57 |
52 protected: | 58 protected: |
53 CBC_CodeBase* m_pBCEngine; | 59 CBC_CodeBase* m_pBCEngine; |
54 }; | 60 }; |
55 | 61 |
56 #endif // XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ | 62 #endif // XFA_FWL_BASEWIDGET_FXMATH_BARCODEIMP_H_ |
OLD | NEW |