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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_barcode.h

Issue 1816133002: Move xfa/include/fxbarcode/BC_Barcode.h to xfa/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
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_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_ 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_ 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_
9 9
10 #include "xfa/fxbarcode/include/BC_Library.h"
10 #include "xfa/include/fwl/basewidget/fwl_edit.h" 11 #include "xfa/include/fwl/basewidget/fwl_edit.h"
11 #include "xfa/include/fxbarcode/BC_BarCode.h"
12 12
13 class CFWL_WidgetImpProperties; 13 class CFWL_WidgetImpProperties;
14 class IFWL_Barcode; 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 #define FWL_BCDATTRIBUTE_CHARENCODING (1L << 0)
18 #define FWL_BCDATTRIBUTE_MODULEHEIGHT (1L << 1) 18 #define FWL_BCDATTRIBUTE_MODULEHEIGHT (1L << 1)
19 #define FWL_BCDATTRIBUTE_MODULEWIDTH (1L << 2) 19 #define FWL_BCDATTRIBUTE_MODULEWIDTH (1L << 2)
20 #define FWL_BCDATTRIBUTE_DATALENGTH (1L << 3) 20 #define FWL_BCDATTRIBUTE_DATALENGTH (1L << 3)
21 #define FWL_BCDATTRIBUTE_CALCHECKSUM (1L << 4) 21 #define FWL_BCDATTRIBUTE_CALCHECKSUM (1L << 4)
22 #define FWL_BCDATTRIBUTE_PRINTCHECKSUM (1L << 5) 22 #define FWL_BCDATTRIBUTE_PRINTCHECKSUM (1L << 5)
23 #define FWL_BCDATTRIBUTE_TEXTLOCATION (1L << 6) 23 #define FWL_BCDATTRIBUTE_TEXTLOCATION (1L << 6)
24 #define FWL_BCDATTRIBUTE_WIDENARROWRATIO (1L << 7) 24 #define FWL_BCDATTRIBUTE_WIDENARROWRATIO (1L << 7)
25 #define FWL_BCDATTRIBUTE_STARTCHAR (1L << 8) 25 #define FWL_BCDATTRIBUTE_STARTCHAR (1L << 8)
26 #define FWL_BCDATTRIBUTE_ENDCHAR (1L << 9) 26 #define FWL_BCDATTRIBUTE_ENDCHAR (1L << 9)
27 #define FWL_BCDATTRIBUTE_VERSION (1L << 10) 27 #define FWL_BCDATTRIBUTE_VERSION (1L << 10)
28 #define FWL_BCDATTRIBUTE_ECLEVEL (1L << 11) 28 #define FWL_BCDATTRIBUTE_ECLEVEL (1L << 11)
29 #define FWL_BCDATTRIBUTE_TRUNCATED (1L << 12) 29 #define FWL_BCDATTRIBUTE_TRUNCATED (1L << 12)
30 #define FWL_PART_BCD_Border 1 30 #define FWL_PART_BCD_Border 1
31 #define FWL_PART_BCD_Edge 2 31 #define FWL_PART_BCD_Edge 2
32 #define FWL_PART_BCD_Background 3 32 #define FWL_PART_BCD_Background 3
33 #define FWL_BCUPDATECMD_Data FWL_WGTUPDATECMD_User 33 #define FWL_BCUPDATECMD_Data FWL_WGTUPDATECMD_User
34
34 class IFWL_BarcodeDP : public IFWL_EditDP { 35 class IFWL_BarcodeDP : public IFWL_EditDP {
35 public: 36 public:
36 virtual BC_CHAR_ENCODING GetCharEncoding() = 0; 37 virtual BC_CHAR_ENCODING GetCharEncoding() = 0;
37 virtual int32_t GetModuleHeight() = 0; 38 virtual int32_t GetModuleHeight() = 0;
38 virtual int32_t GetModuleWidth() = 0; 39 virtual int32_t GetModuleWidth() = 0;
39 virtual int32_t GetDataLength() = 0; 40 virtual int32_t GetDataLength() = 0;
40 virtual int32_t GetCalChecksum() = 0; 41 virtual int32_t GetCalChecksum() = 0;
41 virtual FX_BOOL GetPrintChecksum() = 0; 42 virtual FX_BOOL GetPrintChecksum() = 0;
42 virtual BC_TEXT_LOC GetTextLocation() = 0; 43 virtual BC_TEXT_LOC GetTextLocation() = 0;
43 virtual int32_t GetWideNarrowRatio() = 0; 44 virtual int32_t GetWideNarrowRatio() = 0;
44 virtual FX_CHAR GetStartChar() = 0; 45 virtual FX_CHAR GetStartChar() = 0;
45 virtual FX_CHAR GetEndChar() = 0; 46 virtual FX_CHAR GetEndChar() = 0;
46 virtual int32_t GetVersion() = 0; 47 virtual int32_t GetVersion() = 0;
47 virtual int32_t GetErrorCorrectionLevel() = 0; 48 virtual int32_t GetErrorCorrectionLevel() = 0;
48 virtual FX_BOOL GetTruncated() = 0; 49 virtual FX_BOOL GetTruncated() = 0;
49 virtual FX_DWORD GetBarcodeAttributeMask() = 0; 50 virtual FX_DWORD GetBarcodeAttributeMask() = 0;
50 }; 51 };
51 52
52 class IFWL_Barcode : public IFWL_Edit { 53 class IFWL_Barcode : public IFWL_Edit {
53 public: 54 public:
54 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); 55 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties);
55 void SetType(BC_TYPE type); 56 void SetType(BC_TYPE type);
56 FX_BOOL IsProtectedType(); 57 FX_BOOL IsProtectedType();
57 58
58 protected: 59 protected:
59 IFWL_Barcode(); 60 IFWL_Barcode();
60 }; 61 };
61 62
62 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_ 63 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_BARCODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698