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

Side by Side Diff: xfa/src/fwl/basewidget/fwl_barcodeimp.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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
« no previous file with comments | « xfa/src/fgas/xml/fgas_sax_imp.cpp ('k') | xfa/src/fwl/basewidget/fwl_barcodeimp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_SRC_FWL_BASEWIDGET_FWL_BARCODEIMP_H_
8 #define XFA_SRC_FWL_BASEWIDGET_FWL_BARCODEIMP_H_
9
10 #include "xfa/include/fwl/basewidget/fwl_barcode.h"
11 #include "xfa/include/fwl/basewidget/fwl_scrollbar.h"
12 #include "xfa/include/fwl/basewidget/fxmath_barcode.h"
13 #include "xfa/src/fwl/basewidget/fwl_editimp.h"
14
15 class CFWL_WidgetImpProperties;
16 class CFWL_BarcodeImpDelegate;
17 class IFWL_Widget;
18
19 #define XFA_BCS_NeedUpdate 0x0001
20 #define XFA_BCS_EncodeSuccess 0x0002
21
22 class CFWL_BarcodeImp : public CFWL_EditImp {
23 public:
24 CFWL_BarcodeImp(const CFWL_WidgetImpProperties& properties,
25 IFWL_Widget* pOuter);
26 virtual ~CFWL_BarcodeImp();
27 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
28 virtual FX_DWORD GetClassID() const;
29 virtual FWL_ERR Initialize();
30 virtual FWL_ERR Finalize();
31 virtual FWL_ERR Update();
32 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
33 const CFX_Matrix* pMatrix = NULL);
34 virtual FWL_ERR SetText(const CFX_WideString& wsText);
35 virtual void SetType(BC_TYPE type);
36 FX_BOOL IsProtectedType();
37
38 protected:
39 void GenerateBarcodeImageCache();
40 void CreateBarcodeEngine();
41 void ReleaseBarcodeEngine();
42 IFX_Barcode* m_pBarcodeEngine;
43 FX_DWORD m_dwStatus;
44 BC_TYPE m_type;
45 friend class CFWL_BarcodeImpDelegate;
46 };
47
48 class CFWL_BarcodeImpDelegate : public CFWL_EditImpDelegate {
49 public:
50 CFWL_BarcodeImpDelegate(CFWL_BarcodeImp* pOwner);
51 FWL_ERR OnProcessEvent(CFWL_Event* pEvent) override;
52 };
53
54 #endif // XFA_SRC_FWL_BASEWIDGET_FWL_BARCODEIMP_H_
OLDNEW
« no previous file with comments | « xfa/src/fgas/xml/fgas_sax_imp.cpp ('k') | xfa/src/fwl/basewidget/fwl_barcodeimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698