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/src/fxfa/app/xfa_ffbarcode.h" | 7 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
8 | 8 |
9 #include "core/include/fxcrt/fx_ext.h" | 9 #include "core/include/fxcrt/fx_ext.h" |
| 10 #include "xfa/fxfa/app/xfa_fffield.h" |
| 11 #include "xfa/fxfa/app/xfa_ffpageview.h" |
| 12 #include "xfa/fxfa/app/xfa_fftextedit.h" |
| 13 #include "xfa/fxfa/app/xfa_ffwidget.h" |
| 14 #include "xfa/fxfa/app/xfa_fwladapter.h" |
10 #include "xfa/include/fwl/core/fwl_app.h" | 15 #include "xfa/include/fwl/core/fwl_app.h" |
11 #include "xfa/include/fwl/lightwidget/barcode.h" | 16 #include "xfa/include/fwl/lightwidget/barcode.h" |
12 #include "xfa/src/fxfa/app/xfa_fffield.h" | |
13 #include "xfa/src/fxfa/app/xfa_ffpageview.h" | |
14 #include "xfa/src/fxfa/app/xfa_fftextedit.h" | |
15 #include "xfa/src/fxfa/app/xfa_ffwidget.h" | |
16 #include "xfa/src/fxfa/app/xfa_fwladapter.h" | |
17 | 17 |
18 static XFA_LPCBARCODETYPEENUMINFO XFA_GetBarcodeTypeByName( | 18 static XFA_LPCBARCODETYPEENUMINFO XFA_GetBarcodeTypeByName( |
19 const CFX_WideStringC& wsName); | 19 const CFX_WideStringC& wsName); |
20 CXFA_FFBarcode::CXFA_FFBarcode(CXFA_FFPageView* pPageView, | 20 CXFA_FFBarcode::CXFA_FFBarcode(CXFA_FFPageView* pPageView, |
21 CXFA_WidgetAcc* pDataAcc) | 21 CXFA_WidgetAcc* pDataAcc) |
22 : CXFA_FFTextEdit(pPageView, pDataAcc) {} | 22 : CXFA_FFTextEdit(pPageView, pDataAcc) {} |
23 CXFA_FFBarcode::~CXFA_FFBarcode() {} | 23 CXFA_FFBarcode::~CXFA_FFBarcode() {} |
24 FX_BOOL CXFA_FFBarcode::LoadWidget() { | 24 FX_BOOL CXFA_FFBarcode::LoadWidget() { |
25 CFWL_Barcode* pFWLBarcode = CFWL_Barcode::Create(); | 25 CFWL_Barcode* pFWLBarcode = CFWL_Barcode::Create(); |
26 if (pFWLBarcode) { | 26 if (pFWLBarcode) { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 if (uHash == pInfo->uHash) { | 226 if (uHash == pInfo->uHash) { |
227 return pInfo; | 227 return pInfo; |
228 } else if (uHash < pInfo->uHash) { | 228 } else if (uHash < pInfo->uHash) { |
229 iEnd = iMid - 1; | 229 iEnd = iMid - 1; |
230 } else { | 230 } else { |
231 iStart = iMid + 1; | 231 iStart = iMid + 1; |
232 } | 232 } |
233 } while (iStart <= iEnd); | 233 } while (iStart <= iEnd); |
234 return NULL; | 234 return NULL; |
235 } | 235 } |
OLD | NEW |