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