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
CBC_EANCode Class Referenceabstract

#include <cbc_eancode.h>

Inheritance diagram for CBC_EANCode:
Collaboration diagram for CBC_EANCode:

Public Member Functions

 CBC_EANCode (std::unique_ptr< CBC_OneDimEANWriter > pWriter)
 ~CBC_EANCode () override
virtual size_t GetMaxLength () const =0
bool Encode (WideStringView contents) override
bool RenderDevice (CFX_RenderDevice *device, const CFX_Matrix &matrix) override
Public Member Functions inherited from CBC_OneCode
 CBC_OneCode (std::unique_ptr< CBC_Writer > pWriter)
 ~CBC_OneCode () override
void SetPrintChecksum (bool checksum)
void SetDataLength (int32_t length)
void SetCalChecksum (bool calc)
bool SetFont (CFX_Font *cFont)
void SetFontSize (float size)
void SetFontStyle (int32_t style)
void SetFontColor (FX_ARGB color)
Public Member Functions inherited from CBC_CodeBase
 CBC_CodeBase (std::unique_ptr< CBC_Writer > pWriter)
virtual ~CBC_CodeBase ()
virtual BC_TYPE GetType ()=0
void SetTextLocation (BC_TEXT_LOC location)
bool SetWideNarrowRatio (int8_t ratio)
bool SetStartChar (char start)
bool SetEndChar (char end)
bool SetErrorCorrectionLevel (int32_t level)
bool SetModuleHeight (int32_t moduleHeight)
bool SetModuleWidth (int32_t moduleWidth)
void SetHeight (int32_t height)
void SetWidth (int32_t width)

Protected Member Functions

CBC_OneDimEANWriterGetOneDimEANWriter ()
WideString Preprocess (WideStringView contents)

Protected Attributes

WideString m_renderContents
Protected Attributes inherited from CBC_CodeBase
std::unique_ptr< CBC_Writerm_pBCWriter

Detailed Description

Definition at line 17 of file cbc_eancode.h.

Constructor & Destructor Documentation

◆ CBC_EANCode()

CBC_EANCode::CBC_EANCode ( std::unique_ptr< CBC_OneDimEANWriter > pWriter)
explicit

Definition at line 14 of file cbc_eancode.cpp.

◆ ~CBC_EANCode()

CBC_EANCode::~CBC_EANCode ( )
overridedefault

Member Function Documentation

◆ Encode()

bool CBC_EANCode::Encode ( WideStringView contents)
overridevirtual

Implements CBC_CodeBase.

Definition at line 23 of file cbc_eancode.cpp.

References CBC_OneDimWriter::CheckContentValidity(), GetOneDimEANWriter(), and CBC_OneDimEANWriter::InitEANWriter().

Here is the call graph for this function:

◆ GetMaxLength()

virtual size_t CBC_EANCode::GetMaxLength ( ) const
pure virtual

Implemented in CBC_EAN13, CBC_EAN8, and CBC_UPCA.

◆ GetOneDimEANWriter()

CBC_OneDimEANWriter * CBC_EANCode::GetOneDimEANWriter ( )
protected

Definition at line 19 of file cbc_eancode.cpp.

Referenced by Encode(), and Preprocess().

Here is the caller graph for this function:

◆ Preprocess()

WideString CBC_EANCode::Preprocess ( WideStringView contents)
protected

Definition at line 41 of file cbc_eancode.cpp.

References CBC_OneDimEANWriter::CalcChecksum(), CBC_OneDimWriter::FilterContents(), fxcrt::WideString::FromUTF8(), GetOneDimEANWriter(), fxcrt::ByteString::operator+=(), and fxcrt::WideString::ToUTF8().

Here is the call graph for this function:

◆ RenderDevice()

bool CBC_EANCode::RenderDevice ( CFX_RenderDevice * device,
const CFX_Matrix & matrix )
overridevirtual

Implements CBC_CodeBase.

Definition at line 35 of file cbc_eancode.cpp.

Member Data Documentation

◆ m_renderContents

WideString CBC_EANCode::m_renderContents
protected

Definition at line 33 of file cbc_eancode.h.


The documentation for this class was generated from the following files: