Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: xfa/fwl/basewidget/ifx_barcode.h

Issue 1890443002: Remove IFX_Barcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/basewidget/fxmath_barcodeimp.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_BASEWIDGET_IFX_BARCODE_H_
8 #define XFA_FWL_BASEWIDGET_IFX_BARCODE_H_
9
10 #include "core/fxcrt/include/fx_string.h"
11 #include "core/fxcrt/include/fx_system.h"
12 #include "core/fxge/include/fx_dib.h"
13 #include "xfa/fxbarcode/include/BC_Library.h"
14
15 class CFX_Font;
16 class CFX_Matrix;
17 class CFX_RenderDevice;
18
19 class IFX_Barcode {
20 public:
21 virtual ~IFX_Barcode() {}
22
23 virtual void Release() = 0;
24
25 virtual BC_TYPE GetType() = 0;
26 virtual FX_BOOL Encode(const CFX_WideStringC& contents,
27 FX_BOOL isDevice,
28 int32_t& e) = 0;
29 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device,
30 const CFX_Matrix* matirx,
31 int32_t& e) = 0;
32 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0;
33 virtual CFX_WideString Decode(uint8_t* buf,
34 int32_t width,
35 int32_t height,
36 int32_t& errorCode) = 0;
37 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& errorCode) = 0;
38 virtual FX_BOOL SetCharEncoding(BC_CHAR_ENCODING encoding) = 0;
39 virtual FX_BOOL SetModuleHeight(int32_t moduleHeight) = 0;
40 virtual FX_BOOL SetModuleWidth(int32_t moduleWidth) = 0;
41 virtual FX_BOOL SetHeight(int32_t height) = 0;
42 virtual FX_BOOL SetWidth(int32_t width) = 0;
43 virtual FX_BOOL CheckContentValidity(const CFX_WideStringC& contents) = 0;
44 virtual FX_BOOL SetPrintChecksum(FX_BOOL checksum) = 0;
45 virtual FX_BOOL SetDataLength(int32_t length) = 0;
46 virtual FX_BOOL SetCalChecksum(int32_t state) = 0;
47 virtual FX_BOOL SetFont(CFX_Font* pFont) = 0;
48 virtual FX_BOOL SetFontSize(FX_FLOAT size) = 0;
49 virtual FX_BOOL SetFontStyle(int32_t style) = 0;
50 virtual FX_BOOL SetFontColor(FX_ARGB color) = 0;
51 virtual FX_BOOL SetTextLocation(BC_TEXT_LOC location) = 0;
52 virtual FX_BOOL SetWideNarrowRatio(int32_t ratio) = 0;
53 virtual FX_BOOL SetStartChar(FX_CHAR start) = 0;
54 virtual FX_BOOL SetEndChar(FX_CHAR end) = 0;
55 virtual FX_BOOL SetVersion(int32_t version) = 0;
56 virtual FX_BOOL SetErrorCorrectionLevel(int32_t level) = 0;
57 virtual FX_BOOL SetTruncated(FX_BOOL truncated) = 0;
58 };
59
60 IFX_Barcode* FX_Barcode_Create(BC_TYPE type);
61
62 #endif // XFA_FWL_BASEWIDGET_IFX_BARCODE_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fxmath_barcodeimp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698