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 #ifndef FPDFSDK_PDFWINDOW_PWL_EDIT_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_EDIT_H_ |
8 #define FPDFSDK_PDFWINDOW_PWL_EDIT_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_EDIT_H_ |
9 | 9 |
| 10 #include <vector> |
| 11 |
10 #include "core/fxcrt/fx_basic.h" | 12 #include "core/fxcrt/fx_basic.h" |
11 #include "fpdfsdk/fxedit/fx_edit.h" | 13 #include "fpdfsdk/fxedit/fx_edit.h" |
12 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" | 14 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" |
13 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" | 15 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" |
14 | 16 |
15 class CPDF_PageObjectHolder; | 17 class CPDF_PageObjectHolder; |
16 class CPDF_TextObject; | 18 class CPDF_TextObject; |
17 class IFX_Edit_UndoItem; | 19 class IFX_Edit_UndoItem; |
18 | 20 |
19 class IPWL_Filler_Notify { | 21 class IPWL_Filler_Notify { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, | 100 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, |
99 const CFX_FloatRect& rcPlate, | 101 const CFX_FloatRect& rcPlate, |
100 int32_t nCharArray); | 102 int32_t nCharArray); |
101 | 103 |
102 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { | 104 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { |
103 m_pFillerNotify = pNotify; | 105 m_pFillerNotify = pNotify; |
104 } | 106 } |
105 | 107 |
106 void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, | 108 void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
107 const CFX_FloatPoint& ptOffset, | 109 const CFX_FloatPoint& ptOffset, |
108 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | 110 std::vector<CPDF_TextObject*>* ObjArray); |
109 void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, | 111 void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
110 const CFX_FloatPoint& ptOffset); | 112 const CFX_FloatPoint& ptOffset); |
111 | 113 |
112 bool IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag); | 114 bool IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag); |
113 void AttachFFLData(CFFL_FormFiller* pData) { m_pFormFiller = pData; } | 115 void AttachFFLData(CFFL_FormFiller* pData) { m_pFormFiller = pData; } |
114 | 116 |
115 void OnInsertWord(const CPVT_WordPlace& place, | 117 void OnInsertWord(const CPVT_WordPlace& place, |
116 const CPVT_WordPlace& oldplace); | 118 const CPVT_WordPlace& oldplace); |
117 void OnInsertReturn(const CPVT_WordPlace& place, | 119 void OnInsertReturn(const CPVT_WordPlace& place, |
118 const CPVT_WordPlace& oldplace); | 120 const CPVT_WordPlace& oldplace); |
(...skipping 20 matching lines...) Expand all Loading... |
139 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, | 141 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, |
140 bool bLatin, | 142 bool bLatin, |
141 bool bArabic) const; | 143 bool bArabic) const; |
142 IPWL_Filler_Notify* m_pFillerNotify; | 144 IPWL_Filler_Notify* m_pFillerNotify; |
143 bool m_bFocus; | 145 bool m_bFocus; |
144 CFX_FloatRect m_rcOldWindow; | 146 CFX_FloatRect m_rcOldWindow; |
145 CFFL_FormFiller* m_pFormFiller; // Not owned. | 147 CFFL_FormFiller* m_pFormFiller; // Not owned. |
146 }; | 148 }; |
147 | 149 |
148 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ | 150 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ |
OLD | NEW |