pdfium/fxbarcode/BC_Writer.cpp
K. Moon 832a694e52 Update old-style copyright headers
Updates old-style copyright headers to the new style, by removing "All
rights reserved." Also inserts "The" before "PDFium Authors", which is
required by both styles.

Mechanically generated by this command:
  PATTERN='Copyright \([0-9]\+\) \(The \)\?PDFium Authors. All rights reserved.'
  git grep -l "$PATTERN" \
  | xargs sed "s/$PATTERN/Copyright \1 The PDFium Authors/" -i''

Fixed: pdfium:1884
Change-Id: I6f781d811df8839e2e21b85f716529b813828bcd
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100371
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: K. Moon <kmoon@chromium.org>
2022-10-31 20:11:31 +00:00

58 lines
1.2 KiB
C++

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "fxbarcode/BC_Writer.h"
CBC_Writer::CBC_Writer() = default;
CBC_Writer::~CBC_Writer() = default;
void CBC_Writer::SetCharEncoding(BC_CHAR_ENCODING encoding) {
m_CharEncoding = encoding;
}
bool CBC_Writer::SetModuleHeight(int32_t moduleHeight) {
if (moduleHeight > 10 || moduleHeight < 1)
return false;
m_ModuleHeight = moduleHeight;
return true;
}
bool CBC_Writer::SetModuleWidth(int32_t moduleWidth) {
if (moduleWidth > 10 || moduleWidth < 1)
return false;
m_ModuleWidth = moduleWidth;
return true;
}
void CBC_Writer::SetHeight(int32_t height) {
m_Height = height;
}
void CBC_Writer::SetWidth(int32_t width) {
m_Width = width;
}
void CBC_Writer::SetTextLocation(BC_TEXT_LOC location) {}
bool CBC_Writer::SetWideNarrowRatio(int8_t ratio) {
return false;
}
bool CBC_Writer::SetStartChar(char start) {
return false;
}
bool CBC_Writer::SetEndChar(char end) {
return false;
}
bool CBC_Writer::SetErrorCorrectionLevel(int32_t level) {
return false;
}