Dan Sinclair | a98600a | 2016-03-21 15:15:56 -0400 | [diff] [blame] | 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_ONECODE_H_ |
| 8 | #define XFA_FXBARCODE_CBC_ONECODE_H_ |
| 9 | |
Dan Sinclair | a8a28e0 | 2016-03-23 15:41:39 -0400 | [diff] [blame] | 10 | #include "core/fxcrt/include/fx_string.h" |
| 11 | #include "core/fxcrt/include/fx_system.h" |
Dan Sinclair | a98600a | 2016-03-21 15:15:56 -0400 | [diff] [blame] | 12 | #include "xfa/fxbarcode/cbc_codebase.h" |
| 13 | |
| 14 | class CFX_DIBitmap; |
| 15 | class CFX_Font; |
| 16 | class CFX_RenderDevice; |
| 17 | |
| 18 | class CBC_OneCode : public CBC_CodeBase { |
| 19 | public: |
| 20 | CBC_OneCode(); |
thestig | fbe14b9 | 2016-05-02 13:31:10 -0700 | [diff] [blame] | 21 | ~CBC_OneCode() override; |
Dan Sinclair | a98600a | 2016-03-21 15:15:56 -0400 | [diff] [blame] | 22 | |
| 23 | virtual FX_BOOL CheckContentValidity(const CFX_WideStringC& contents); |
| 24 | virtual CFX_WideString FilterContents(const CFX_WideStringC& contents); |
| 25 | |
| 26 | virtual void SetPrintChecksum(FX_BOOL checksum); |
| 27 | virtual void SetDataLength(int32_t length); |
| 28 | virtual void SetCalChecksum(FX_BOOL calc); |
| 29 | virtual FX_BOOL SetFont(CFX_Font* cFont); |
| 30 | virtual void SetFontSize(FX_FLOAT size); |
| 31 | virtual void SetFontStyle(int32_t style); |
| 32 | virtual void SetFontColor(FX_ARGB color); |
| 33 | }; |
| 34 | |
| 35 | #endif // XFA_FXBARCODE_CBC_ONECODE_H_ |