summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_barcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/ifwl_barcode.h')
-rw-r--r--xfa/fwl/core/ifwl_barcode.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fwl/core/ifwl_barcode.h b/xfa/fwl/core/ifwl_barcode.h
index 28025fc8bc..1d88c32259 100644
--- a/xfa/fwl/core/ifwl_barcode.h
+++ b/xfa/fwl/core/ifwl_barcode.h
@@ -9,6 +9,7 @@
#include <memory>
+#include "xfa/fwl/core/ifwl_dataprovider.h"
#include "xfa/fwl/core/ifwl_edit.h"
#include "xfa/fwl/core/ifwl_scrollbar.h"
#include "xfa/fxbarcode/BC_Library.h"
@@ -37,7 +38,7 @@ enum FWL_BCDAttribute {
FWL_BCDATTRIBUTE_TRUNCATED = 1 << 12
};
-class IFWL_BarcodeDP : public IFWL_EditDP {
+class IFWL_BarcodeDP : public IFWL_DataProvider {
public:
virtual BC_CHAR_ENCODING GetCharEncoding() const = 0;
virtual int32_t GetModuleHeight() const = 0;
@@ -66,9 +67,11 @@ class IFWL_Barcode : public IFWL_Edit {
void Update() override;
void DrawWidget(CFX_Graphics* pGraphics,
const CFX_Matrix* pMatrix = nullptr) override;
- FWL_Error SetText(const CFX_WideString& wsText) override;
void OnProcessEvent(CFWL_Event* pEvent) override;
+ // IFWL_Edit
+ void SetText(const CFX_WideString& wsText) override;
+
void SetType(BC_TYPE type);
bool IsProtectedType();