OLD | NEW |
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 _FWL_BARCODE_H | 7 #ifndef _FWL_BARCODE_H |
8 #define _FWL_BARCODE_H | 8 #define _FWL_BARCODE_H |
9 #include "fwl_edit.h" | 9 #include "fwl_edit.h" |
10 class CFWL_WidgetImpProperties; | 10 class CFWL_WidgetImpProperties; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual FX_CHAR GetStartChar() = 0; | 43 virtual FX_CHAR GetStartChar() = 0; |
44 virtual FX_CHAR GetEndChar() = 0; | 44 virtual FX_CHAR GetEndChar() = 0; |
45 virtual int32_t GetVersion() = 0; | 45 virtual int32_t GetVersion() = 0; |
46 virtual int32_t GetErrorCorrectionLevel() = 0; | 46 virtual int32_t GetErrorCorrectionLevel() = 0; |
47 virtual FX_BOOL GetTruncated() = 0; | 47 virtual FX_BOOL GetTruncated() = 0; |
48 virtual FX_DWORD GetBarcodeAttributeMask() = 0; | 48 virtual FX_DWORD GetBarcodeAttributeMask() = 0; |
49 }; | 49 }; |
50 class IFWL_Barcode : public IFWL_Edit { | 50 class IFWL_Barcode : public IFWL_Edit { |
51 public: | 51 public: |
52 static IFWL_Barcode* Create(); | 52 static IFWL_Barcode* Create(); |
53 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | |
54 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 53 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
55 IFWL_Widget* pOuter = NULL); | 54 IFWL_Widget* pOuter); |
56 void SetType(BC_TYPE type); | 55 void SetType(BC_TYPE type); |
57 FX_BOOL IsProtectedType(); | 56 FX_BOOL IsProtectedType(); |
58 | 57 |
59 protected: | 58 protected: |
60 IFWL_Barcode(); | 59 IFWL_Barcode(); |
61 }; | 60 }; |
62 #endif | 61 #endif |
OLD | NEW |