7#ifndef XFA_FWL_CFWL_BARCODE_H_
8#define XFA_FWL_CFWL_BARCODE_H_
14#include "fxbarcode/BC_Library.h"
15#include "third_party/abseil-cpp/absl/types/optional.h"
16#include "xfa/fwl/cfwl_edit.h"
33 void SetText(
const WideString& wsText)
override;
52 enum class Status : uint8_t {
58 explicit CFWL_Barcode(CFWL_App* pApp);
60 void GenerateBarcodeImageCache();
61 void CreateBarcodeEngine();
64 Status m_eStatus = Status::kNormal;
65 absl::optional<BC_TEXT_LOC> m_eTextLocation;
66 absl::optional<BC_CHAR_ENCODING> m_eCharEncoding;
67 absl::optional<
bool> m_bCalChecksum;
68 absl::optional<
bool> m_bPrintChecksum;
69 absl::optional<
char> m_cStartChar;
70 absl::optional<
char> m_cEndChar;
71 absl::optional<int8_t> m_nWideNarrowRatio;
72 absl::optional<int32_t> m_nModuleHeight;
73 absl::optional<int32_t> m_nModuleWidth;
74 absl::optional<int32_t> m_nDataLength;
75 absl::optional<int32_t> m_nECLevel;
76 std::unique_ptr<CFX_Barcode> m_pBarcodeEngine;
void SetDataLength(int32_t dataLength)
FWL_Type GetClassID() const override
void SetType(BC_TYPE type)
void SetCalChecksum(bool calChecksum)
void SetWideNarrowRatio(int8_t ratio)
void OnProcessEvent(CFWL_Event *pEvent) override
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
void SetPrintChecksum(bool printChecksum)
void SetTextLocation(BC_TEXT_LOC location)
void SetStartChar(char startChar)
void SetText(const WideString &wsText) override
void SetEndChar(char endChar)
void SetModuleHeight(int32_t height)
void SetErrorCorrectionLevel(int32_t ecLevel)
void SetTextSkipNotify(const WideString &wsText) override
void SetModuleWidth(int32_t width)
bool IsProtectedType() const
void SetCharEncoding(BC_CHAR_ENCODING encoding)
virtual void SetText(const WideString &wsText)
void SetLimit(int32_t nLimit)
const CFX_RectF & GetRTClient() const
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
CFWL_Edit(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
void OnProcessEvent(CFWL_Event *pEvent) override
virtual void SetTextSkipNotify(const WideString &wsText)
void Concat(const CFX_Matrix &right)
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED