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 _BC_CODEBASE_H_ | 7 #ifndef _BC_CODEBASE_H_ |
8 #define _BC_CODEBASE_H_ | 8 #define _BC_CODEBASE_H_ |
9 void BC_Library_Init(); | 9 void BC_Library_Init(); |
10 void BC_Library_Destory(); | 10 void BC_Library_Destory(); |
(...skipping 18 matching lines...) Expand all Loading... |
29 BC_CODE128, | 29 BC_CODE128, |
30 BC_CODE128_B, | 30 BC_CODE128_B, |
31 BC_CODE128_C, | 31 BC_CODE128_C, |
32 BC_EAN8, | 32 BC_EAN8, |
33 BC_UPCA, | 33 BC_UPCA, |
34 BC_EAN13, | 34 BC_EAN13, |
35 BC_QR_CODE, | 35 BC_QR_CODE, |
36 BC_PDF417, | 36 BC_PDF417, |
37 BC_DATAMATRIX | 37 BC_DATAMATRIX |
38 }; | 38 }; |
39 class CBC_CodeBase : public CFX_Object | 39 class CBC_CodeBase |
40 { | 40 { |
41 public: | 41 public: |
42 CBC_CodeBase(); | 42 CBC_CodeBase(); |
43 virtual ~CBC_CodeBase(); | 43 virtual ~CBC_CodeBase(); |
44 virtual BC_TYPE GetType() = 0; | 44 virtual BC_TYPE GetType() = 0; |
45 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e) = 0
; | 45 virtual FX_BOOL Encode(FX_WSTR contents, FX_BOOL isDevice, FX_INT32 &e) = 0
; |
46 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, FX_INT32 &e) = 0; | 46 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, const CFX_Matrix
* matirx, FX_INT32 &e) = 0; |
47 virtual FX_BOOL RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32 &e) =
0; | 47 virtual FX_BOOL RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32 &e) =
0; |
48 virtual CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight,
FX_INT32 &e) = 0; | 48 virtual CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight,
FX_INT32 &e) = 0; |
49 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e) = 0; | 49 virtual CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e) = 0; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 FX_BOOL RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); | 240 FX_BOOL RenderDevice(CFX_RenderDevice* device, const CFX
_Matrix* matirx, FX_INT32 &e); |
241 FX_BOOL RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); | 241 FX_BOOL RenderBitmap(CFX_DIBitmap *&pOutBitmap, FX_INT32
&e); |
242 CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); | 242 CFX_WideString Decode(FX_BYTE* buf, FX_INT32 width, FX_INT32 hight, FX_
INT32 &e); |
243 CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); | 243 CFX_WideString Decode(CFX_DIBitmap *pBitmap, FX_INT32 &e); |
244 BC_TYPE GetType() | 244 BC_TYPE GetType() |
245 { | 245 { |
246 return BC_DATAMATRIX; | 246 return BC_DATAMATRIX; |
247 } | 247 } |
248 }; | 248 }; |
249 #endif | 249 #endif |
OLD | NEW |