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 #if !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDED_) | 7 #if !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDED_) |
8 #define AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDED_ | 8 #define AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDED_ |
9 | 9 |
10 #include "FFL_FormFiller.h" | 10 #include "FFL_FormFiller.h" |
11 | 11 |
12 #define BF_ALIGN_LEFT 0 | 12 #define BF_ALIGN_LEFT 0 |
13 #define BF_ALIGN_MIDDLE 1 | 13 #define BF_ALIGN_MIDDLE 1 |
14 #define BF_ALIGN_RIGHT 2 | 14 #define BF_ALIGN_RIGHT 2 |
15 | 15 |
16 class CBA_FontMap; | 16 class CBA_FontMap; |
17 | 17 |
18 | |
19 class CFFL_EditUndoItem | |
20 { | |
21 public: | |
22 CFFL_EditUndoItem(CPWL_Edit* pEdit); | |
23 virtual ~CFFL_EditUndoItem(); | |
24 | |
25 virtual void Undo(); | |
26 virtual void Redo(); | |
27 virtual CFX_WideString GetDescr(); | |
28 virtual void Release(); | |
29 }; | |
30 | |
31 struct FFL_TextFieldState | 18 struct FFL_TextFieldState |
32 { | 19 { |
33 int nStart; | 20 int nStart; |
34 int nEnd; | 21 int nEnd; |
35 CFX_WideString sValue; | 22 CFX_WideString sValue; |
36 }; | 23 }; |
37 | 24 |
38 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public
IPWL_Edit_Notify | 25 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public
IPWL_Edit_Notify |
39 { | 26 { |
40 public: | 27 public: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual FX_BOOL CanCopy(CPDFSDK_Document* pDocum
ent); | 59 virtual FX_BOOL CanCopy(CPDFSDK_Document* pDocum
ent); |
73 virtual FX_BOOL CanCut(CPDFSDK_Document* pDocume
nt); | 60 virtual FX_BOOL CanCut(CPDFSDK_Document* pDocume
nt); |
74 virtual FX_BOOL CanPaste(CPDFSDK_Document* pDocu
ment); | 61 virtual FX_BOOL CanPaste(CPDFSDK_Document* pDocu
ment); |
75 | 62 |
76 virtual void DoCopy(CPDFSDK_Document* pDocume
nt); | 63 virtual void DoCopy(CPDFSDK_Document* pDocume
nt); |
77 virtual void DoCut(CPDFSDK_Document* pDocumen
t); | 64 virtual void DoCut(CPDFSDK_Document* pDocumen
t); |
78 virtual void DoPaste(CPDFSDK_Document* pDocum
ent); | 65 virtual void DoPaste(CPDFSDK_Document* pDocum
ent); |
79 | 66 |
80 private: | 67 private: |
81 CBA_FontMap* m_pFontMap; | 68 CBA_FontMap* m_pFontMap; |
82 // CBA_SpellCheck* m_pSpellCheck; | |
83 FFL_TextFieldState m_State; | 69 FFL_TextFieldState m_State; |
84 //» CFFL_IM_BOX» » » » » m_IMBox; | 70 |
85 }; | 71 }; |
86 | 72 |
87 #endif // !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDE
D_) | 73 #endif // !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDE
D_) |
OLD | NEW |