Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
BC_OnedUPCAWriter.h
Go to the documentation of this file.
1// Copyright 2014 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_ONED_BC_ONEDUPCAWRITER_H_
8#define FXBARCODE_ONED_BC_ONEDUPCAWRITER_H_
9
10#include <memory>
11
12#include "core/fxcrt/fx_string.h"
13#include "fxbarcode/BC_Library.h"
14#include "fxbarcode/oned/BC_OnedEANWriter.h"
15
16class CBC_OnedEAN13Writer;
17class CFX_Matrix;
19
20class CBC_OnedUPCAWriter final : public CBC_OneDimEANWriter {
21 public:
23 ~CBC_OnedUPCAWriter() override;
24
25 // CBC_OneDimEANWriter:
26 DataVector<uint8_t> Encode(const ByteString& contents) override;
27 bool CheckContentValidity(WideStringView contents) override;
28 WideString FilterContents(WideStringView contents) override;
29 void InitEANWriter() override;
30 int32_t CalcChecksum(const ByteString& contents) override;
31
32 private:
33 bool ShowChars(WideStringView contents,
34 CFX_RenderDevice* device,
35 const CFX_Matrix& matrix,
36 int32_t barWidth) override;
37
38 std::unique_ptr<CBC_OnedEAN13Writer> m_subWriter;
39};
40
41#endif // FXBARCODE_ONED_BC_ONEDUPCAWRITER_H_
BC_TYPE
Definition BC_Library.h:25
bool CheckContentValidity(WideStringView contents) override
DataVector< uint8_t > Encode(const ByteString &contents) override
~CBC_OnedUPCAWriter() override
bool ShowChars(WideStringView contents, CFX_RenderDevice *device, const CFX_Matrix &matrix, int32_t barWidth) override
WideString FilterContents(WideStringView contents) override
void InitEANWriter() override
int32_t CalcChecksum(const ByteString &contents) override
~CBC_UPCA() override
BC_TYPE GetType() override
Definition cbc_upca.cpp:32
size_t GetMaxLength() const override
Definition cbc_upca.cpp:36