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

Side by Side Diff: xfa/fxbarcode/cbc_codebase.h

Issue 1816133002: Move xfa/include/fxbarcode/BC_Barcode.h to xfa/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2016 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_FXBARCODE_CBC_CODEBASE_H_
8 #define XFA_FXBARCODE_CBC_CODEBASE_H_
9
10 #include "core/include/fxcrt/fx_system.h"
11 #include "core/include/fxge/fx_dib.h"
12 #include "xfa/fxbarcode/include/BC_Library.h"
13
14 class CBC_Writer;
15 class CBC_Reader;
16 class CFX_DIBitmap;
17 class CFX_RenderDevice;
18
19 class CBC_CodeBase {
20 public:
21 CBC_CodeBase();
22 virtual ~CBC_CodeBase();
23
24 virtual BC_TYPE GetType() = 0;
25 virtual FX_BOOL Encode(const CFX_WideStringC& contents,
26 FX_BOOL isDevice,
27 int32_t& e) = 0;
28 virtual FX_BOOL RenderDevice(CFX_RenderDevice* device,
29 const CFX_Matrix* matirx,
30 int32_t& e) = 0;
31 virtual FX_BOOL RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) = 0;
32 virtual CFX_WideString Decode(uint8_t* buf,
33 int32_t width,
34 int32_t hight,
35 int32_t& e) = 0;
36 virtual CFX_WideString Decode(CFX_DIBitmap* pBitmap, int32_t& e) = 0;
37
38 virtual FX_BOOL SetCharEncoding(int32_t encoding);
39 virtual FX_BOOL SetModuleHeight(int32_t moduleHeight);
40 virtual FX_BOOL SetModuleWidth(int32_t moduleWidth);
41
42 virtual FX_BOOL SetHeight(int32_t height);
43 virtual FX_BOOL SetWidth(int32_t width);
44 virtual void SetBackgroundColor(FX_ARGB backgroundColor);
45 virtual void SetBarcodeColor(FX_ARGB foregroundColor);
46
47 protected:
48 CBC_Writer* m_pBCWriter;
49 CBC_Reader* m_pBCReader;
50 };
51
52 #endif // XFA_FXBARCODE_CBC_CODEBASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698