summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfx_barcode.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-14 15:13:11 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-14 15:13:11 -0800
commit3439802410dc2c4aeb49397c987bf5ca0ddfad8b (patch)
treeb321dc4ed2a4d032d36a8b5f532a904c77021817 /xfa/fwl/core/cfx_barcode.cpp
parent137a344ad02056107e2e01d5d55f5e97d21fa74b (diff)
downloadpdfium-3439802410dc2c4aeb49397c987bf5ca0ddfad8b.tar.xz
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
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);
-}