• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef _FXFA_FORMFILLER_BARCODE_IMP_H
8 #define _FXFA_FORMFILLER_BARCODE_IMP_H
9 class CXFA_FFTextEdit;
10 class CXFA_FFBarcode : public CXFA_FFTextEdit {
11  public:
12   CXFA_FFBarcode(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
13   virtual ~CXFA_FFBarcode();
14   virtual FX_BOOL LoadWidget();
15   virtual void RenderWidget(CFX_Graphics* pGS,
16                             CFX_Matrix* pMatrix = NULL,
17                             FX_DWORD dwStatus = 0,
18                             int32_t iRotate = 0);
19   virtual void UpdateWidgetProperty();
20   virtual FX_BOOL OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
21   virtual FX_BOOL OnRButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
22 };
23 enum XFA_BARCODETYPEENUM {
24   XFA_BARCODETYPE_aztec,
25   XFA_BARCODETYPE_codabar,
26   XFA_BARCODETYPE_code11,
27   XFA_BARCODETYPE_code128,
28   XFA_BARCODETYPE_code128A,
29   XFA_BARCODETYPE_code128B,
30   XFA_BARCODETYPE_code128C,
31   XFA_BARCODETYPE_code128SSCC,
32   XFA_BARCODETYPE_code2Of5Industrial,
33   XFA_BARCODETYPE_code2Of5Interleaved,
34   XFA_BARCODETYPE_code2Of5Matrix,
35   XFA_BARCODETYPE_code2Of5Standard,
36   XFA_BARCODETYPE_code3Of9,
37   XFA_BARCODETYPE_code3Of9extended,
38   XFA_BARCODETYPE_code49,
39   XFA_BARCODETYPE_code93,
40   XFA_BARCODETYPE_dataMatrix,
41   XFA_BARCODETYPE_ean13,
42   XFA_BARCODETYPE_ean13add2,
43   XFA_BARCODETYPE_ean13add5,
44   XFA_BARCODETYPE_ean13pwcd,
45   XFA_BARCODETYPE_ean8,
46   XFA_BARCODETYPE_ean8add2,
47   XFA_BARCODETYPE_ean8add5,
48   XFA_BARCODETYPE_fim,
49   XFA_BARCODETYPE_logmars,
50   XFA_BARCODETYPE_maxicode,
51   XFA_BARCODETYPE_msi,
52   XFA_BARCODETYPE_pdf417,
53   XFA_BARCODETYPE_pdf417macro,
54   XFA_BARCODETYPE_plessey,
55   XFA_BARCODETYPE_postAUSCust2,
56   XFA_BARCODETYPE_postAUSCust3,
57   XFA_BARCODETYPE_postAUSReplyPaid,
58   XFA_BARCODETYPE_postAUSStandard,
59   XFA_BARCODETYPE_postUKRM4SCC,
60   XFA_BARCODETYPE_postUS5Zip,
61   XFA_BARCODETYPE_postUSDPBC,
62   XFA_BARCODETYPE_postUSIMB,
63   XFA_BARCODETYPE_postUSStandard,
64   XFA_BARCODETYPE_QRCode,
65   XFA_BARCODETYPE_rfid,
66   XFA_BARCODETYPE_rss14,
67   XFA_BARCODETYPE_rss14Expanded,
68   XFA_BARCODETYPE_rss14Limited,
69   XFA_BARCODETYPE_rss14Stacked,
70   XFA_BARCODETYPE_rss14StackedOmni,
71   XFA_BARCODETYPE_rss14Truncated,
72   XFA_BARCODETYPE_telepen,
73   XFA_BARCODETYPE_ucc128,
74   XFA_BARCODETYPE_ucc128random,
75   XFA_BARCODETYPE_ucc128sscc,
76   XFA_BARCODETYPE_upcA,
77   XFA_BARCODETYPE_upcAadd2,
78   XFA_BARCODETYPE_upcAadd5,
79   XFA_BARCODETYPE_upcApwcd,
80   XFA_BARCODETYPE_upcE,
81   XFA_BARCODETYPE_upcEadd2,
82   XFA_BARCODETYPE_upcEadd5,
83   XFA_BARCODETYPE_upcean2,
84   XFA_BARCODETYPE_upcean5,
85   XFA_BARCODETYPE_upsMaxicode
86 };
87 struct XFA_BARCODETYPEENUMINFO {
88   uint32_t uHash;
89   const FX_WCHAR* pName;
90   XFA_BARCODETYPEENUM eName;
91   BC_TYPE eBCType;
92 };
93 typedef XFA_BARCODETYPEENUMINFO const* XFA_LPCBARCODETYPEENUMINFO;
94 extern const XFA_BARCODETYPEENUMINFO g_XFABarCodeTypeEnumData[];
95 #endif
96