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_CODE39_H_ 8 #define FXBARCODE_CBC_CODE39_H_ 9 10 #include "core/fxcrt/widestring.h" 11 #include "fxbarcode/BC_Library.h" 12 #include "fxbarcode/cbc_onecode.h" 13 14 class CBC_OnedCode39Writer; 15 class CFX_Matrix; 16 class CFX_RenderDevice; 17 18 class CBC_Code39 final : public CBC_OneCode { 19 public: 20 CBC_Code39(); 21 ~CBC_Code39() override; 22 23 // CBC_OneCode: 24 BC_TYPE GetType() override; 25 bool Encode(WideStringView contents) override; 26 bool RenderDevice(CFX_RenderDevice* device, 27 const CFX_Matrix& matrix) override; 28 29 private: 30 CBC_OnedCode39Writer* GetOnedCode39Writer(); 31 32 WideString m_renderContents; 33 }; 34 35 #endif // FXBARCODE_CBC_CODE39_H_ 36