From ef55c79650768a731c22038acd36b2a741706ed6 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 9 Jan 2018 10:47:23 -0500 Subject: Move barcode code from WidgetAcc to Node This CL moves the barcode related code from CXFA_WidgetAcc to CXFA_Node. Change-Id: Id3f5f30222535a69a0bf4d59416e57d452c7d8e8 Reviewed-on: https://pdfium-review.googlesource.com/22551 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_node.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_node.h') diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 7bf0654b58..1f11a2372f 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -15,6 +15,7 @@ #include "core/fxcrt/fx_string.h" #include "core/fxcrt/ifx_locale.h" #include "core/fxge/fx_dib.h" +#include "fxbarcode/BC_Library.h" #include "fxjs/xfa/cjx_node.h" #include "third_party/base/optional.h" #include "xfa/fxfa/parser/cxfa_object.h" @@ -279,6 +280,21 @@ class CXFA_Node : public CXFA_Object { CXFA_Script* script, CXFA_EventParam* pEventParam); + // TODO(dsinclair): Figure out how to move this to cxfa_barcode. + WideString GetBarcodeType(); + Optional GetBarcodeAttribute_CharEncoding(); + Optional GetBarcodeAttribute_Checksum(); + Optional GetBarcodeAttribute_DataLength(); + Optional GetBarcodeAttribute_StartChar(); + Optional GetBarcodeAttribute_EndChar(); + Optional GetBarcodeAttribute_ECLevel(); + Optional GetBarcodeAttribute_ModuleWidth(); + Optional GetBarcodeAttribute_ModuleHeight(); + Optional GetBarcodeAttribute_PrintChecksum(); + Optional GetBarcodeAttribute_TextLocation(); + Optional GetBarcodeAttribute_Truncate(); + Optional GetBarcodeAttribute_WideNarrowRatio(); + protected: CXFA_Node(CXFA_Document* pDoc, XFA_PacketType ePacket, -- cgit v1.2.3