1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2014 The PDFium Authors 2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file. 4*3ac0a46fSAndroid Build Coastguard Worker 5*3ac0a46fSAndroid Build Coastguard Worker // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6*3ac0a46fSAndroid Build Coastguard Worker 7*3ac0a46fSAndroid Build Coastguard Worker #include "fxbarcode/BC_Writer.h" 8*3ac0a46fSAndroid Build Coastguard Worker 9*3ac0a46fSAndroid Build Coastguard Worker CBC_Writer::CBC_Writer() = default; 10*3ac0a46fSAndroid Build Coastguard Worker 11*3ac0a46fSAndroid Build Coastguard Worker CBC_Writer::~CBC_Writer() = default; 12*3ac0a46fSAndroid Build Coastguard Worker SetCharEncoding(BC_CHAR_ENCODING encoding)13*3ac0a46fSAndroid Build Coastguard Workervoid CBC_Writer::SetCharEncoding(BC_CHAR_ENCODING encoding) { 14*3ac0a46fSAndroid Build Coastguard Worker m_CharEncoding = encoding; 15*3ac0a46fSAndroid Build Coastguard Worker } 16*3ac0a46fSAndroid Build Coastguard Worker SetModuleHeight(int32_t moduleHeight)17*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetModuleHeight(int32_t moduleHeight) { 18*3ac0a46fSAndroid Build Coastguard Worker if (moduleHeight > 10 || moduleHeight < 1) 19*3ac0a46fSAndroid Build Coastguard Worker return false; 20*3ac0a46fSAndroid Build Coastguard Worker 21*3ac0a46fSAndroid Build Coastguard Worker m_ModuleHeight = moduleHeight; 22*3ac0a46fSAndroid Build Coastguard Worker return true; 23*3ac0a46fSAndroid Build Coastguard Worker } 24*3ac0a46fSAndroid Build Coastguard Worker SetModuleWidth(int32_t moduleWidth)25*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetModuleWidth(int32_t moduleWidth) { 26*3ac0a46fSAndroid Build Coastguard Worker if (moduleWidth > 10 || moduleWidth < 1) 27*3ac0a46fSAndroid Build Coastguard Worker return false; 28*3ac0a46fSAndroid Build Coastguard Worker 29*3ac0a46fSAndroid Build Coastguard Worker m_ModuleWidth = moduleWidth; 30*3ac0a46fSAndroid Build Coastguard Worker return true; 31*3ac0a46fSAndroid Build Coastguard Worker } 32*3ac0a46fSAndroid Build Coastguard Worker SetHeight(int32_t height)33*3ac0a46fSAndroid Build Coastguard Workervoid CBC_Writer::SetHeight(int32_t height) { 34*3ac0a46fSAndroid Build Coastguard Worker m_Height = height; 35*3ac0a46fSAndroid Build Coastguard Worker } 36*3ac0a46fSAndroid Build Coastguard Worker SetWidth(int32_t width)37*3ac0a46fSAndroid Build Coastguard Workervoid CBC_Writer::SetWidth(int32_t width) { 38*3ac0a46fSAndroid Build Coastguard Worker m_Width = width; 39*3ac0a46fSAndroid Build Coastguard Worker } 40*3ac0a46fSAndroid Build Coastguard Worker SetTextLocation(BC_TEXT_LOC location)41*3ac0a46fSAndroid Build Coastguard Workervoid CBC_Writer::SetTextLocation(BC_TEXT_LOC location) {} 42*3ac0a46fSAndroid Build Coastguard Worker SetWideNarrowRatio(int8_t ratio)43*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetWideNarrowRatio(int8_t ratio) { 44*3ac0a46fSAndroid Build Coastguard Worker return false; 45*3ac0a46fSAndroid Build Coastguard Worker } 46*3ac0a46fSAndroid Build Coastguard Worker SetStartChar(char start)47*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetStartChar(char start) { 48*3ac0a46fSAndroid Build Coastguard Worker return false; 49*3ac0a46fSAndroid Build Coastguard Worker } 50*3ac0a46fSAndroid Build Coastguard Worker SetEndChar(char end)51*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetEndChar(char end) { 52*3ac0a46fSAndroid Build Coastguard Worker return false; 53*3ac0a46fSAndroid Build Coastguard Worker } 54*3ac0a46fSAndroid Build Coastguard Worker SetErrorCorrectionLevel(int32_t level)55*3ac0a46fSAndroid Build Coastguard Workerbool CBC_Writer::SetErrorCorrectionLevel(int32_t level) { 56*3ac0a46fSAndroid Build Coastguard Worker return false; 57*3ac0a46fSAndroid Build Coastguard Worker } 58