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 10 #include "core/fxcrt/fx_string.h" 11 #include "core/fxcrt/fx_system.h" 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 explicit CBC_OneCode(CBC_Writer* pWriter); 21 ~CBC_OneCode() override; 22 23 virtual bool CheckContentValidity(const CFX_WideStringC& contents); 24 virtual CFX_WideString FilterContents(const CFX_WideStringC& contents); 25 26 virtual void SetPrintChecksum(bool checksum); 27 virtual void SetDataLength(int32_t length); 28 virtual void SetCalChecksum(bool calc); 29 virtual 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_ 36