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 #include "xfa/fxfa/app/xfa_ffbarcode.h" | 7 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
8 | 8 |
9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
| 10 #include "xfa/fwl/core/ifwl_app.h" |
| 11 #include "xfa/fwl/core/ifwl_notedriver.h" |
10 #include "xfa/fxfa/app/xfa_fffield.h" | 12 #include "xfa/fxfa/app/xfa_fffield.h" |
11 #include "xfa/fxfa/app/xfa_ffpageview.h" | 13 #include "xfa/fxfa/app/xfa_ffpageview.h" |
12 #include "xfa/fxfa/app/xfa_fftextedit.h" | 14 #include "xfa/fxfa/app/xfa_fftextedit.h" |
13 #include "xfa/fxfa/app/xfa_ffwidget.h" | 15 #include "xfa/fxfa/app/xfa_ffwidget.h" |
14 #include "xfa/fxfa/app/xfa_fwladapter.h" | 16 #include "xfa/fxfa/app/xfa_fwladapter.h" |
15 #include "xfa/include/fwl/core/fwl_app.h" | |
16 #include "xfa/include/fwl/lightwidget/barcode.h" | 17 #include "xfa/include/fwl/lightwidget/barcode.h" |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 const XFA_BARCODETYPEENUMINFO g_XFABarCodeTypeEnumData[] = { | 21 const XFA_BARCODETYPEENUMINFO g_XFABarCodeTypeEnumData[] = { |
21 {0x7fb4a18, L"ean13", XFA_BARCODETYPE_ean13, BC_EAN13}, | 22 {0x7fb4a18, L"ean13", XFA_BARCODETYPE_ean13, BC_EAN13}, |
22 {0x8d13a3d, L"code11", XFA_BARCODETYPE_code11, BC_UNKNOWN}, | 23 {0x8d13a3d, L"code11", XFA_BARCODETYPE_code11, BC_UNKNOWN}, |
23 {0x8d149a8, L"code49", XFA_BARCODETYPE_code49, BC_UNKNOWN}, | 24 {0x8d149a8, L"code49", XFA_BARCODETYPE_code49, BC_UNKNOWN}, |
24 {0x8d16347, L"code93", XFA_BARCODETYPE_code93, BC_UNKNOWN}, | 25 {0x8d16347, L"code93", XFA_BARCODETYPE_code93, BC_UNKNOWN}, |
25 {0x91a92e2, L"upsMaxicode", XFA_BARCODETYPE_upsMaxicode, BC_UNKNOWN}, | 26 {0x91a92e2, L"upsMaxicode", XFA_BARCODETYPE_upsMaxicode, BC_UNKNOWN}, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 231 } |
231 FX_BOOL CXFA_FFBarcode::OnRButtonDown(FX_DWORD dwFlags, | 232 FX_BOOL CXFA_FFBarcode::OnRButtonDown(FX_DWORD dwFlags, |
232 FX_FLOAT fx, | 233 FX_FLOAT fx, |
233 FX_FLOAT fy) { | 234 FX_FLOAT fy) { |
234 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget; | 235 CFWL_Barcode* pBarCodeWidget = (CFWL_Barcode*)m_pNormalWidget; |
235 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) { | 236 if (!pBarCodeWidget || pBarCodeWidget->IsProtectedType()) { |
236 return FALSE; | 237 return FALSE; |
237 } | 238 } |
238 return CXFA_FFTextEdit::OnRButtonDown(dwFlags, fx, fy); | 239 return CXFA_FFTextEdit::OnRButtonDown(dwFlags, fx, fy); |
239 } | 240 } |
OLD | NEW |