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_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 FX_BOOL IsTextFull() const; | 103 FX_BOOL IsTextFull() const; |
104 | 104 |
105 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, | 105 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, |
106 const CPDF_Rect& rcPlate, | 106 const CPDF_Rect& rcPlate, |
107 int32_t nCharArray); | 107 int32_t nCharArray); |
108 | 108 |
109 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { | 109 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { |
110 m_pFillerNotify = pNotify; | 110 m_pFillerNotify = pNotify; |
111 } | 111 } |
112 | 112 |
113 void GeneratePageObjects(CPDF_PageObjects* pPageObjects, | 113 void GeneratePageObjects(CPDF_PageObjectList* pPageObjects, |
114 const CPDF_Point& ptOffset, | 114 const CPDF_Point& ptOffset, |
115 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | 115 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); |
116 void GeneratePageObjects(CPDF_PageObjects* pPageObjects, | 116 void GeneratePageObjects(CPDF_PageObjectList* pPageObjects, |
117 const CPDF_Point& ptOffset); | 117 const CPDF_Point& ptOffset); |
118 | 118 |
119 protected: | 119 protected: |
120 // IFX_Edit_OprNotify | 120 // IFX_Edit_OprNotify |
121 void OnInsertWord(const CPVT_WordPlace& place, | 121 void OnInsertWord(const CPVT_WordPlace& place, |
122 const CPVT_WordPlace& oldplace) override; | 122 const CPVT_WordPlace& oldplace) override; |
123 void OnInsertReturn(const CPVT_WordPlace& place, | 123 void OnInsertReturn(const CPVT_WordPlace& place, |
124 const CPVT_WordPlace& oldplace) override; | 124 const CPVT_WordPlace& oldplace) override; |
125 void OnBackSpace(const CPVT_WordPlace& place, | 125 void OnBackSpace(const CPVT_WordPlace& place, |
126 const CPVT_WordPlace& oldplace) override; | 126 const CPVT_WordPlace& oldplace) override; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 CPDF_Rect m_rcOldWindow; | 162 CPDF_Rect m_rcOldWindow; |
163 | 163 |
164 public: | 164 public: |
165 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 165 void AttachFFLData(void* pData) { m_pFormFiller = pData; } |
166 | 166 |
167 private: | 167 private: |
168 void* m_pFormFiller; | 168 void* m_pFormFiller; |
169 }; | 169 }; |
170 | 170 |
171 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 171 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
OLD | NEW |