• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The PDFium Authors
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 
SetModuleHeight(int32_t moduleHeight)13 bool CBC_Writer::SetModuleHeight(int32_t moduleHeight) {
14   if (moduleHeight > 10 || moduleHeight < 1)
15     return false;
16 
17   m_ModuleHeight = moduleHeight;
18   return true;
19 }
20 
SetModuleWidth(int32_t moduleWidth)21 bool CBC_Writer::SetModuleWidth(int32_t moduleWidth) {
22   if (moduleWidth > 10 || moduleWidth < 1)
23     return false;
24 
25   m_ModuleWidth = moduleWidth;
26   return true;
27 }
28 
SetHeight(int32_t height)29 void CBC_Writer::SetHeight(int32_t height) {
30   m_Height = height;
31 }
32 
SetWidth(int32_t width)33 void CBC_Writer::SetWidth(int32_t width) {
34   m_Width = width;
35 }
36 
SetTextLocation(BC_TEXT_LOC location)37 void CBC_Writer::SetTextLocation(BC_TEXT_LOC location) {}
38 
SetWideNarrowRatio(int8_t ratio)39 bool CBC_Writer::SetWideNarrowRatio(int8_t ratio) {
40   return false;
41 }
42 
SetStartChar(char start)43 bool CBC_Writer::SetStartChar(char start) {
44   return false;
45 }
46 
SetEndChar(char end)47 bool CBC_Writer::SetEndChar(char end) {
48   return false;
49 }
50 
SetErrorCorrectionLevel(int32_t level)51 bool CBC_Writer::SetErrorCorrectionLevel(int32_t level) {
52   return false;
53 }
54