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 _FXMATH_BARCODE_H_ | 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
8 #define _FXMATH_BARCODE_H_ | 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
| 9 |
9 class IFX_Barcode { | 10 class IFX_Barcode { |
10 public: | 11 public: |
11 virtual ~IFX_Barcode() {} | 12 virtual ~IFX_Barcode() {} |
12 virtual void Release() = 0; | 13 virtual void Release() = 0; |
13 virtual BC_TYPE GetType() = 0; | 14 virtual BC_TYPE GetType() = 0; |
14 virtual FX_BOOL Encode(const CFX_WideStringC& contents, | 15 virtual FX_BOOL Encode(const CFX_WideStringC& contents, |
15 FX_BOOL isDevice, | 16 FX_BOOL isDevice, |
16 int32_t& e) = 0; | 17 int32_t& e) = 0; |
17 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, | 18 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device, |
18 const CFX_Matrix* matirx, | 19 const CFX_Matrix* matirx, |
(...skipping 19 matching lines...) Expand all Loading... |
38 virtual FX_BOOL SetFontColor(FX_ARGB color) = 0; | 39 virtual FX_BOOL SetFontColor(FX_ARGB color) = 0; |
39 virtual FX_BOOL SetTextLocation(BC_TEXT_LOC location) = 0; | 40 virtual FX_BOOL SetTextLocation(BC_TEXT_LOC location) = 0; |
40 virtual FX_BOOL SetWideNarrowRatio(int32_t ratio) = 0; | 41 virtual FX_BOOL SetWideNarrowRatio(int32_t ratio) = 0; |
41 virtual FX_BOOL SetStartChar(FX_CHAR start) = 0; | 42 virtual FX_BOOL SetStartChar(FX_CHAR start) = 0; |
42 virtual FX_BOOL SetEndChar(FX_CHAR end) = 0; | 43 virtual FX_BOOL SetEndChar(FX_CHAR end) = 0; |
43 virtual FX_BOOL SetVersion(int32_t version) = 0; | 44 virtual FX_BOOL SetVersion(int32_t version) = 0; |
44 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; | 45 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0; |
45 virtual FX_BOOL SetTruncated(FX_BOOL truncated) = 0; | 46 virtual FX_BOOL SetTruncated(FX_BOOL truncated) = 0; |
46 }; | 47 }; |
47 IFX_Barcode* FX_Barcode_Create(BC_TYPE type); | 48 IFX_Barcode* FX_Barcode_Create(BC_TYPE type); |
48 #endif | 49 |
| 50 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FXMATH_BARCODE_H_ |
OLD | NEW |