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 class CFFL_EditUndoItem //: public IUndoItem | 18 class CFFL_EditUndoItem //: public IUndoItem |
19 { | 19 { |
20 public: | 20 public: |
21 CFFL_EditUndoItem(CPWL_Edit* pEdit); | 21 CFFL_EditUndoItem(CPWL_Edit* pEdit); |
22 virtual ~CFFL_EditUndoItem(); | 22 virtual ~CFFL_EditUndoItem(); |
23 | 23 |
24 virtual void Undo(); | 24 virtual void Undo(); |
25 virtual void Redo(); | 25 virtual void Redo(); |
26 virtual CFX_WideString GetDescr(); | 26 virtual CFX_WideString GetDescr(); |
27 virtual void Release(); | 27 virtual void Release(); |
28 | |
29 private: | |
30 CPWL_Edit* m_pEdit; | |
31 }; | 28 }; |
32 | 29 |
33 struct FFL_TextFieldState | 30 struct FFL_TextFieldState |
34 { | 31 { |
35 int nStart; | 32 int nStart; |
36 int nEnd; | 33 int nEnd; |
37 CFX_WideString sValue; | 34 CFX_WideString sValue; |
38 }; | 35 }; |
39 | 36 |
40 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public
IPWL_Edit_Notify | 37 class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public
IPWL_Edit_Notify |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void DoPaste(CPDFSDK_Document* pDocum
ent); | 77 virtual void DoPaste(CPDFSDK_Document* pDocum
ent); |
81 | 78 |
82 private: | 79 private: |
83 CBA_FontMap* m_pFontMap; | 80 CBA_FontMap* m_pFontMap; |
84 // CBA_SpellCheck* m_pSpellCheck; | 81 // CBA_SpellCheck* m_pSpellCheck; |
85 FFL_TextFieldState m_State; | 82 FFL_TextFieldState m_State; |
86 // CFFL_IM_BOX m_IMBox; | 83 // CFFL_IM_BOX m_IMBox; |
87 }; | 84 }; |
88 | 85 |
89 #endif // !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDE
D_) | 86 #endif // !defined(AFX_FFL_EDIT_H__8E0C9456_CBA2_4EFB_9F31_53C6D8C1A8AC__INCLUDE
D_) |
OLD | NEW |