7
8
9
10
11
12
13
14
15
16
17
18
19
20
22#include "fxbarcode/cbc_code39.h"
26#include "core/fxcrt/fx_coordinates.h"
27#include "fxbarcode/oned/BC_OnedCode39Writer.h"
34bool CBC_Code39::
Encode(WideStringView contents) {
35 auto* pWriter = GetOnedCode39Writer();
40 m_renderContents = pWriter->RenderTextContents(contents);
41 ByteString byteString = filtercontents
.ToUTF8();
42 return pWriter->RenderResult(m_renderContents.AsStringView(),
43 pWriter->Encode(byteString));
48 auto* pWriter = GetOnedCode39Writer();
50 if (!pWriter->encodedContents(m_renderContents.AsStringView(), &renderCon))
59CBC_OnedCode39Writer* CBC_Code39::GetOnedCode39Writer() {
60 return static_cast<CBC_OnedCode39Writer*>(m_pBCWriter.get());
bool Encode(WideStringView contents) override
bool RenderDevice(CFX_RenderDevice *device, const CFX_Matrix &matrix) override
BC_TYPE GetType() override
bool RenderDeviceResult(CFX_RenderDevice *device, const CFX_Matrix &matrix, WideStringView contents)
bool CheckContentValidity(WideStringView contents) override
WideString FilterContents(WideStringView contents) override
ByteString ToUTF8() const