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

Side by Side Diff: fpdfsdk/include/formfiller/FFL_ComboBox.h

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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 _FFL_COMBOBOX_H_ 7 #ifndef _FFL_COMBOBOX_H_
8 #define _FFL_COMBOBOX_H_ 8 #define _FFL_COMBOBOX_H_
9 9
10 struct FFL_ComboBoxState 10 struct FFL_ComboBoxState {
11 { 11 int nIndex;
12 » int nIndex; 12 int nStart;
13 » int nStart; 13 int nEnd;
14 » int nEnd; 14 CFX_WideString sValue;
15 » CFX_WideString sValue;
16 }; 15 };
17 class CBA_FontMap; 16 class CBA_FontMap;
18 17
19 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I PWL_Edit_Notify 18 class CFFL_ComboBox : public CFFL_FormFiller,
20 { 19 public IPWL_FocusHandler,
21 public: 20 public IPWL_Edit_Notify {
22 » CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); 21 public:
23 » virtual ~CFFL_ComboBox(); 22 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget);
24 » 23 virtual ~CFFL_ComboBox();
25 » virtual»PWL_CREATEPARAM»» GetCreateParam();
26 » virtual CPWL_Wnd*» » » NewPDFWindow(const PWL_CREATEPAR AM& cp, CPDFSDK_PageView* pPageView);
27 24
28 » 25 virtual PWL_CREATEPARAM GetCreateParam();
29 » virtual FX_BOOL»» » » OnChar(CPDFSDK_Annot* pAnnot, FX _UINT nChar, FX_UINT nFlags); 26 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp,
30 » 27 CPDFSDK_PageView* pPageView);
31 » virtual FX_BOOL»» » » IsDataChanged(CPDFSDK_PageView* pPageView);
32 » virtual void» » » » SaveData(CPDFSDK_PageView* pPage View);
33 »
34 » virtual void» » » » GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, PDFSDK_FieldAction& fa);
35 » virtual void» » » » SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, const PDFSDK_FieldAction& fa);
36 » virtual FX_BOOL»» » » IsActionDataChanged(CPDF_AAction ::AActionType type, const PDFSDK_FieldAction& faOld, const PDFSDK_FieldAction& f aNew);
37 » virtual void» » » » SaveState(CPDFSDK_PageView* pPag eView);
38 » virtual void» » » » RestoreState(CPDFSDK_PageView* p PageView);
39 »
40 » virtual CPWL_Wnd*» » » ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue);
41 » virtual void» » » » OnKeyStroke(FX_BOOL bKeyDown, FX _UINT nFlag);
42 »
43 public:
44 » virtual void» » » » OnSetFocus(CPWL_Wnd* pWnd);
45 » virtual void» » » » OnKillFocus(CPWL_Wnd* pWnd);
46 »
47 public:
48 » virtual void» » » » OnAddUndo(CPWL_Edit* pEdit);
49 »
50 public:
51 » virtual FX_BOOL»» » » CanCopy(CPDFSDK_Document* pDocum ent);
52 » virtual FX_BOOL»» » » CanCut(CPDFSDK_Document* pDocume nt);
53 » virtual FX_BOOL»» » » CanPaste(CPDFSDK_Document* pDocu ment);
54 »
55 » virtual void» » » » DoCopy(CPDFSDK_Document* pDocume nt);
56 » virtual void» » » » DoCut(CPDFSDK_Document* pDocumen t);
57 » virtual void» » » » DoPaste(CPDFSDK_Document* pDocum ent);
58 »
59 private:
60 » CFX_WideString» » » » GetSelectExportText();
61 28
62 private: 29 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
63 » CBA_FontMap*» » » » m_pFontMap; 30
64 » FFL_ComboBoxState» » » » m_State; 31 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView);
65 » //CFFL_IM_BOX» » » » » m_IMBox; 32 virtual void SaveData(CPDFSDK_PageView* pPageView);
33
34 virtual void GetActionData(CPDFSDK_PageView* pPageView,
35 CPDF_AAction::AActionType type,
36 PDFSDK_FieldAction& fa);
37 virtual void SetActionData(CPDFSDK_PageView* pPageView,
38 CPDF_AAction::AActionType type,
39 const PDFSDK_FieldAction& fa);
40 virtual FX_BOOL IsActionDataChanged(CPDF_AAction::AActionType type,
41 const PDFSDK_FieldAction& faOld,
42 const PDFSDK_FieldAction& faNew);
43 virtual void SaveState(CPDFSDK_PageView* pPageView);
44 virtual void RestoreState(CPDFSDK_PageView* pPageView);
45
46 virtual CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView,
47 FX_BOOL bRestoreValue);
48 virtual void OnKeyStroke(FX_BOOL bKeyDown, FX_UINT nFlag);
49
50 public:
51 virtual void OnSetFocus(CPWL_Wnd* pWnd);
52 virtual void OnKillFocus(CPWL_Wnd* pWnd);
53
54 public:
55 virtual void OnAddUndo(CPWL_Edit* pEdit);
56
57 public:
58 virtual FX_BOOL CanCopy(CPDFSDK_Document* pDocument);
59 virtual FX_BOOL CanCut(CPDFSDK_Document* pDocument);
60 virtual FX_BOOL CanPaste(CPDFSDK_Document* pDocument);
61
62 virtual void DoCopy(CPDFSDK_Document* pDocument);
63 virtual void DoCut(CPDFSDK_Document* pDocument);
64 virtual void DoPaste(CPDFSDK_Document* pDocument);
65
66 private:
67 CFX_WideString GetSelectExportText();
68
69 private:
70 CBA_FontMap* m_pFontMap;
71 FFL_ComboBoxState m_State;
72 // CFFL_IM_BOX» » » » » m_IMBox;
66 }; 73 };
67 74
68 #endif //_FFL_COMBOBOX_H_ 75 #endif //_FFL_COMBOBOX_H_
69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698