1 // Copyright 2017 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 #ifndef XFA_FXFA_PARSER_CXFA_BARCODE_H_
8 #define XFA_FXFA_PARSER_CXFA_BARCODE_H_
9 
10 #include "third_party/base/optional.h"
11 #include "xfa/fxfa/parser/cxfa_node.h"
12 
13 class CXFA_Barcode final : public CXFA_Node {
14  public:
15   CXFA_Barcode(CXFA_Document* doc, XFA_PacketType packet);
16   ~CXFA_Barcode() override;
17 
18   XFA_FFWidgetType GetDefaultFFWidgetType() const override;
19 
20   WideString GetBarcodeType();
21   Optional<WideString> GetCharEncoding();
22   Optional<bool> GetChecksum();
23   Optional<int32_t> GetDataLength();
24   Optional<char> GetStartChar();
25   Optional<char> GetEndChar();
26   Optional<int32_t> GetECLevel();
27   Optional<int32_t> GetModuleWidth();
28   Optional<int32_t> GetModuleHeight();
29   Optional<bool> GetPrintChecksum();
30   Optional<XFA_AttributeValue> GetTextLocation();
31   Optional<bool> GetTruncate();
32   Optional<int8_t> GetWideNarrowRatio();
33 };
34 
35 #endif  // XFA_FXFA_PARSER_CXFA_BARCODE_H_
36