Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: xfa/fwl/basewidget/ifwl_barcode.h

Issue 1938163002: More define cleanup. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/basewidget/fwl_spinbuttonimp.cpp ('k') | xfa/fwl/core/cfwl_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
9 9
10 #include "xfa/fxbarcode/include/BC_Library.h" 10 #include "xfa/fxbarcode/include/BC_Library.h"
11 #include "xfa/fwl/basewidget/ifwl_edit.h" 11 #include "xfa/fwl/basewidget/ifwl_edit.h"
12 12
13 class CFWL_WidgetImpProperties; 13 class CFWL_WidgetImpProperties;
14 14
15 #define FWL_CLASS_Barcode L"FWL_BARCODE" 15 #define FWL_CLASS_Barcode L"FWL_BARCODE"
16 #define FWL_CLASSHASH_Barcode 366886968 16 #define FWL_CLASSHASH_Barcode 366886968
17 #define FWL_BCDATTRIBUTE_CHARENCODING (1L << 0) 17
18 #define FWL_BCDATTRIBUTE_MODULEHEIGHT (1L << 1) 18 enum FWL_BCDAttribute {
19 #define FWL_BCDATTRIBUTE_MODULEWIDTH (1L << 2) 19 FWL_BCDATTRIBUTE_NONE = 0,
20 #define FWL_BCDATTRIBUTE_DATALENGTH (1L << 3) 20 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0,
21 #define FWL_BCDATTRIBUTE_CALCHECKSUM (1L << 4) 21 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1,
22 #define FWL_BCDATTRIBUTE_PRINTCHECKSUM (1L << 5) 22 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2,
23 #define FWL_BCDATTRIBUTE_TEXTLOCATION (1L << 6) 23 FWL_BCDATTRIBUTE_DATALENGTH = 1 << 3,
24 #define FWL_BCDATTRIBUTE_WIDENARROWRATIO (1L << 7) 24 FWL_BCDATTRIBUTE_CALCHECKSUM = 1 << 4,
25 #define FWL_BCDATTRIBUTE_STARTCHAR (1L << 8) 25 FWL_BCDATTRIBUTE_PRINTCHECKSUM = 1 << 5,
26 #define FWL_BCDATTRIBUTE_ENDCHAR (1L << 9) 26 FWL_BCDATTRIBUTE_TEXTLOCATION = 1 << 6,
27 #define FWL_BCDATTRIBUTE_VERSION (1L << 10) 27 FWL_BCDATTRIBUTE_WIDENARROWRATIO = 1 << 7,
28 #define FWL_BCDATTRIBUTE_ECLEVEL (1L << 11) 28 FWL_BCDATTRIBUTE_STARTCHAR = 1 << 8,
29 #define FWL_BCDATTRIBUTE_TRUNCATED (1L << 12) 29 FWL_BCDATTRIBUTE_ENDCHAR = 1 << 9,
30 FWL_BCDATTRIBUTE_VERSION = 1 << 10,
31 FWL_BCDATTRIBUTE_ECLEVEL = 1 << 11,
32 FWL_BCDATTRIBUTE_TRUNCATED = 1 << 12
33 };
30 34
31 class IFWL_BarcodeDP : public IFWL_EditDP { 35 class IFWL_BarcodeDP : public IFWL_EditDP {
32 public: 36 public:
33 virtual BC_CHAR_ENCODING GetCharEncoding() = 0; 37 virtual BC_CHAR_ENCODING GetCharEncoding() = 0;
34 virtual int32_t GetModuleHeight() = 0; 38 virtual int32_t GetModuleHeight() = 0;
35 virtual int32_t GetModuleWidth() = 0; 39 virtual int32_t GetModuleWidth() = 0;
36 virtual int32_t GetDataLength() = 0; 40 virtual int32_t GetDataLength() = 0;
37 virtual int32_t GetCalChecksum() = 0; 41 virtual int32_t GetCalChecksum() = 0;
38 virtual FX_BOOL GetPrintChecksum() = 0; 42 virtual FX_BOOL GetPrintChecksum() = 0;
39 virtual BC_TEXT_LOC GetTextLocation() = 0; 43 virtual BC_TEXT_LOC GetTextLocation() = 0;
(...skipping 10 matching lines...) Expand all
50 public: 54 public:
51 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); 55 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties);
52 void SetType(BC_TYPE type); 56 void SetType(BC_TYPE type);
53 FX_BOOL IsProtectedType(); 57 FX_BOOL IsProtectedType();
54 58
55 protected: 59 protected:
56 IFWL_Barcode(); 60 IFWL_Barcode();
57 }; 61 };
58 62
59 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ 63 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_spinbuttonimp.cpp ('k') | xfa/fwl/core/cfwl_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698