diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_barcode.h')
-rw-r--r-- | xfa/fwl/core/ifwl_barcode.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xfa/fwl/core/ifwl_barcode.h b/xfa/fwl/core/ifwl_barcode.h index 2a4c9d7fd2..7c6f346708 100644 --- a/xfa/fwl/core/ifwl_barcode.h +++ b/xfa/fwl/core/ifwl_barcode.h @@ -40,7 +40,7 @@ enum FWL_BCDAttribute { class IFWL_Barcode : public IFWL_Edit { public: - class DataProvider : public IFWL_Widget::DataProvider { + class DataProvider { public: virtual BC_CHAR_ENCODING GetCharEncoding() const = 0; virtual int32_t GetModuleHeight() const = 0; @@ -75,11 +75,16 @@ class IFWL_Barcode : public IFWL_Edit { void SetType(BC_TYPE type); bool IsProtectedType() const; + void SetDataProvider(IFWL_Barcode::DataProvider* provider) { + m_pDataProvider = provider; + } + private: void GenerateBarcodeImageCache(); void CreateBarcodeEngine(); std::unique_ptr<CFX_Barcode> m_pBarcodeEngine; + IFWL_Barcode::DataProvider* m_pDataProvider; // Not owned. uint32_t m_dwStatus; BC_TYPE m_type; }; |