• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
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 FXBARCODE_CBC_ONECODE_H_
8 #define FXBARCODE_CBC_ONECODE_H_
9 
10 #include <stdint.h>
11 
12 #include <memory>
13 
14 #include "core/fxge/dib/fx_dib.h"
15 #include "fxbarcode/cbc_codebase.h"
16 
17 class CBC_OneDimWriter;
18 class CFX_Font;
19 
20 class CBC_OneCode : public CBC_CodeBase {
21  public:
22   explicit CBC_OneCode(std::unique_ptr<CBC_Writer> pWriter);
23   ~CBC_OneCode() override;
24 
25   void SetPrintChecksum(bool checksum);
26   void SetDataLength(int32_t length);
27   void SetCalChecksum(bool calc);
28   bool SetFont(CFX_Font* cFont);
29   void SetFontSize(float size);
30   void SetFontStyle(int32_t style);
31   void SetFontColor(FX_ARGB color);
32 
33  private:
34   CBC_OneDimWriter* GetOneDimWriter();
35 };
36 
37 #endif  // FXBARCODE_CBC_ONECODE_H_
38