Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffbarcode.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FXFA_FORMFILLER_BARCODE_IMP_H\r
8 #define _FXFA_FORMFILLER_BARCODE_IMP_H\r
9 class CXFA_FFTextEdit;\r
10 class CXFA_FFBarcode : public CXFA_FFTextEdit\r
11 {\r
12 public:\r
13     CXFA_FFBarcode(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);\r
14     virtual ~CXFA_FFBarcode();\r
15     virtual FX_BOOL     LoadWidget();\r
16     virtual void        RenderWidget(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL, FX_DWORD dwStatus = 0, int32_t iRotate = 0);\r
17     virtual void        UpdateWidgetProperty();\r
18     virtual FX_BOOL     OnLButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);\r
19     virtual FX_BOOL     OnRButtonDown(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);\r
20 };\r
21 enum XFA_BARCODETYPEENUM {\r
22     XFA_BARCODETYPE_aztec,\r
23     XFA_BARCODETYPE_codabar,\r
24     XFA_BARCODETYPE_code11,\r
25     XFA_BARCODETYPE_code128,\r
26     XFA_BARCODETYPE_code128A,\r
27     XFA_BARCODETYPE_code128B,\r
28     XFA_BARCODETYPE_code128C,\r
29     XFA_BARCODETYPE_code128SSCC,\r
30     XFA_BARCODETYPE_code2Of5Industrial,\r
31     XFA_BARCODETYPE_code2Of5Interleaved,\r
32     XFA_BARCODETYPE_code2Of5Matrix,\r
33     XFA_BARCODETYPE_code2Of5Standard,\r
34     XFA_BARCODETYPE_code3Of9,\r
35     XFA_BARCODETYPE_code3Of9extended,\r
36     XFA_BARCODETYPE_code49,\r
37     XFA_BARCODETYPE_code93,\r
38     XFA_BARCODETYPE_dataMatrix,\r
39     XFA_BARCODETYPE_ean13,\r
40     XFA_BARCODETYPE_ean13add2,\r
41     XFA_BARCODETYPE_ean13add5,\r
42     XFA_BARCODETYPE_ean13pwcd,\r
43     XFA_BARCODETYPE_ean8,\r
44     XFA_BARCODETYPE_ean8add2,\r
45     XFA_BARCODETYPE_ean8add5,\r
46     XFA_BARCODETYPE_fim,\r
47     XFA_BARCODETYPE_logmars,\r
48     XFA_BARCODETYPE_maxicode,\r
49     XFA_BARCODETYPE_msi,\r
50     XFA_BARCODETYPE_pdf417,\r
51     XFA_BARCODETYPE_pdf417macro,\r
52     XFA_BARCODETYPE_plessey,\r
53     XFA_BARCODETYPE_postAUSCust2,\r
54     XFA_BARCODETYPE_postAUSCust3,\r
55     XFA_BARCODETYPE_postAUSReplyPaid,\r
56     XFA_BARCODETYPE_postAUSStandard,\r
57     XFA_BARCODETYPE_postUKRM4SCC,\r
58     XFA_BARCODETYPE_postUS5Zip,\r
59     XFA_BARCODETYPE_postUSDPBC,\r
60     XFA_BARCODETYPE_postUSIMB,\r
61     XFA_BARCODETYPE_postUSStandard,\r
62     XFA_BARCODETYPE_QRCode,\r
63     XFA_BARCODETYPE_rfid,\r
64     XFA_BARCODETYPE_rss14,\r
65     XFA_BARCODETYPE_rss14Expanded,\r
66     XFA_BARCODETYPE_rss14Limited,\r
67     XFA_BARCODETYPE_rss14Stacked,\r
68     XFA_BARCODETYPE_rss14StackedOmni,\r
69     XFA_BARCODETYPE_rss14Truncated,\r
70     XFA_BARCODETYPE_telepen,\r
71     XFA_BARCODETYPE_ucc128,\r
72     XFA_BARCODETYPE_ucc128random,\r
73     XFA_BARCODETYPE_ucc128sscc,\r
74     XFA_BARCODETYPE_upcA,\r
75     XFA_BARCODETYPE_upcAadd2,\r
76     XFA_BARCODETYPE_upcAadd5,\r
77     XFA_BARCODETYPE_upcApwcd,\r
78     XFA_BARCODETYPE_upcE,\r
79     XFA_BARCODETYPE_upcEadd2,\r
80     XFA_BARCODETYPE_upcEadd5,\r
81     XFA_BARCODETYPE_upcean2,\r
82     XFA_BARCODETYPE_upcean5,\r
83     XFA_BARCODETYPE_upsMaxicode\r
84 };\r
85 struct XFA_BARCODETYPEENUMINFO {\r
86     uint32_t                                    uHash;\r
87     FX_LPCWSTR                                  pName;\r
88     XFA_BARCODETYPEENUM                 eName;\r
89     BC_TYPE                                             eBCType;\r
90 };\r
91 typedef XFA_BARCODETYPEENUMINFO const * XFA_LPCBARCODETYPEENUMINFO;\r
92 extern const XFA_BARCODETYPEENUMINFO g_XFABarCodeTypeEnumData[];\r
93 #endif\r