From 3439802410dc2c4aeb49397c987bf5ca0ddfad8b Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 14 Nov 2016 15:13:11 -0800 Subject: Cleanup fwl_* classes and cfx_* classes in fwl. This CL cleans up the classes in the fwl_* and cfx_* files in fwl/core. Review-Url: https://codereview.chromium.org/2503513002 --- xfa/fwl/core/cfx_barcode.cpp | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) (limited to 'xfa/fwl/core/cfx_barcode.cpp') 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(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(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); -} -- cgit v1.2.3