summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfx_barcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/cfx_barcode.cpp')
-rw-r--r--xfa/fwl/core/cfx_barcode.cpp42
1 files changed, 2 insertions, 40 deletions
diff --git a/xfa/fwl/core/cfx_barcode.cpp b/xfa/fwl/core/cfx_barcode.cpp
index 35a5f32e28..8d9517903c 100644
--- a/xfa/fwl/core/cfx_barcode.cpp
+++ b/xfa/fwl/core/cfx_barcode.cpp
@@ -78,24 +78,7 @@ bool CFX_Barcode::SetHeight(int32_t height) {
bool CFX_Barcode::SetWidth(int32_t width) {
return m_pBCEngine ? m_pBCEngine->SetWidth(width) : false;
}
-bool CFX_Barcode::CheckContentValidity(const CFX_WideStringC& contents) {
- switch (GetType()) {
- case BC_CODE39:
- case BC_CODABAR:
- case BC_CODE128:
- case BC_CODE128_B:
- case BC_CODE128_C:
- case BC_EAN8:
- case BC_EAN13:
- case BC_UPCA:
- return m_pBCEngine
- ? static_cast<CBC_OneCode*>(m_pBCEngine.get())
- ->CheckContentValidity(contents)
- : true;
- default:
- return true;
- }
-}
+
bool CFX_Barcode::SetPrintChecksum(bool checksum) {
switch (GetType()) {
case BC_CODE39:
@@ -185,24 +168,7 @@ bool CFX_Barcode::SetFontSize(FX_FLOAT size) {
return false;
}
}
-bool CFX_Barcode::SetFontStyle(int32_t style) {
- switch (GetType()) {
- case BC_CODE39:
- case BC_CODABAR:
- case BC_CODE128:
- case BC_CODE128_B:
- case BC_CODE128_C:
- case BC_EAN8:
- case BC_EAN13:
- case BC_UPCA:
- return m_pBCEngine ? (static_cast<CBC_OneCode*>(m_pBCEngine.get())
- ->SetFontStyle(style),
- true)
- : false;
- default:
- return false;
- }
-}
+
bool CFX_Barcode::SetFontColor(FX_ARGB color) {
switch (GetType()) {
case BC_CODE39:
@@ -332,7 +298,3 @@ bool CFX_Barcode::RenderDevice(CFX_RenderDevice* device,
int32_t& e) {
return m_pBCEngine && m_pBCEngine->RenderDevice(device, matrix, e);
}
-
-bool CFX_Barcode::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) {
- return m_pBCEngine && m_pBCEngine->RenderBitmap(pOutBitmap, e);
-}