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_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ | 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ | 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
9 | 9 |
10 #include "xfa/include/fxbarcode/BC_BarCode.h" | 10 #include "core/include/fxcrt/fx_string.h" |
| 11 #include "core/include/fxcrt/fx_system.h" |
| 12 #include "core/include/fxge/fx_dib.h" |
| 13 #include "xfa/fxbarcode/include/BC_Library.h" |
| 14 |
| 15 class CFX_Font; |
| 16 class CFX_Matrix; |
| 17 class CFX_RenderDevice; |
11 | 18 |
12 class IFX_Barcode { | 19 class IFX_Barcode { |
13 public: | 20 public: |
14 virtual ~IFX_Barcode() {} | 21 virtual ~IFX_Barcode() {} |
| 22 |
15 virtual void Release() = 0; | 23 virtual void Release() = 0; |
| 24 |
16 virtual BC_TYPE GetType() = 0; | 25 virtual BC_TYPE GetType() = 0; |
17 virtual FX_BOOL Encode(const CFX_WideStringC& contents, | 26 virtual FX_BOOL Encode(const CFX_WideStringC& contents, |
18 FX_BOOL isDevice, | 27 FX_BOOL isDevice, |
19 int32_t& e) = 0; | 28 int32_t& e) = 0; |
20 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, | 29 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, |
21 const CFX_Matrix* matirx, | 30 const CFX_Matrix* matirx, |
22 int32_t& e) = 0; | 31 int32_t& e) = 0; |
23 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0; | 32 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0; |
24 virtual CFX_WideString Decode(uint8_t* buf, | 33 virtual CFX_WideString Decode(uint8_t* buf, |
25 int32_t width, | 34 int32_t width, |
(...skipping 14 matching lines...) Expand all Loading... |
40 virtual FX_BOOL SetFontStyle(int32_t style) = 0; | 49 virtual FX_BOOL SetFontStyle(int32_t style) = 0; |
41 virtual FX_BOOL SetFontColor(FX_ARGB color) = 0; | 50 virtual FX_BOOL SetFontColor(FX_ARGB color) = 0; |
42 virtual FX_BOOL SetTextLocation(BC_TEXT_LOC location) = 0; | 51 virtual FX_BOOL SetTextLocation(BC_TEXT_LOC location) = 0; |
43 virtual FX_BOOL SetWideNarrowRatio(int32_t ratio) = 0; | 52 virtual FX_BOOL SetWideNarrowRatio(int32_t ratio) = 0; |
44 virtual FX_BOOL SetStartChar(FX_CHAR start) = 0; | 53 virtual FX_BOOL SetStartChar(FX_CHAR start) = 0; |
45 virtual FX_BOOL SetEndChar(FX_CHAR end) = 0; | 54 virtual FX_BOOL SetEndChar(FX_CHAR end) = 0; |
46 virtual FX_BOOL SetVersion(int32_t version) = 0; | 55 virtual FX_BOOL SetVersion(int32_t version) = 0; |
47 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; | 56 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; |
48 virtual FX_BOOL SetTruncated(FX_BOOL truncated) = 0; | 57 virtual FX_BOOL SetTruncated(FX_BOOL truncated) = 0; |
49 }; | 58 }; |
| 59 |
50 IFX_Barcode* FX_Barcode_Create(BC_TYPE type); | 60 IFX_Barcode* FX_Barcode_Create(BC_TYPE type); |
51 | 61 |
52 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ | 62 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
OLD | NEW |