| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 FX_BOOL IsTextFull() const; | 95 FX_BOOL IsTextFull() const; |
| 96 | 96 |
| 97 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, | 97 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, |
| 98 const CPDF_Rect& rcPlate, | 98 const CPDF_Rect& rcPlate, |
| 99 int32_t nCharArray); | 99 int32_t nCharArray); |
| 100 | 100 |
| 101 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { | 101 void SetFillerNotify(IPWL_Filler_Notify* pNotify) { |
| 102 m_pFillerNotify = pNotify; | 102 m_pFillerNotify = pNotify; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void GeneratePageObjects(CPDF_PageObjects* pPageObjects, | 105 void GeneratePageObjects(CPDF_PageObjectList* pPageObjects, |
| 106 const CPDF_Point& ptOffset, | 106 const CPDF_Point& ptOffset, |
| 107 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | 107 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); |
| 108 void GeneratePageObjects(CPDF_PageObjects* pPageObjects, | 108 void GeneratePageObjects(CPDF_PageObjectList* pPageObjects, |
| 109 const CPDF_Point& ptOffset); | 109 const CPDF_Point& ptOffset); |
| 110 | 110 |
| 111 protected: | 111 protected: |
| 112 // IFX_Edit_OprNotify | 112 // IFX_Edit_OprNotify |
| 113 void OnInsertWord(const CPVT_WordPlace& place, | 113 void OnInsertWord(const CPVT_WordPlace& place, |
| 114 const CPVT_WordPlace& oldplace) override; | 114 const CPVT_WordPlace& oldplace) override; |
| 115 void OnInsertReturn(const CPVT_WordPlace& place, | 115 void OnInsertReturn(const CPVT_WordPlace& place, |
| 116 const CPVT_WordPlace& oldplace) override; | 116 const CPVT_WordPlace& oldplace) override; |
| 117 void OnBackSpace(const CPVT_WordPlace& place, | 117 void OnBackSpace(const CPVT_WordPlace& place, |
| 118 const CPVT_WordPlace& oldplace) override; | 118 const CPVT_WordPlace& oldplace) override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 CPDF_Rect m_rcOldWindow; | 154 CPDF_Rect m_rcOldWindow; |
| 155 | 155 |
| 156 public: | 156 public: |
| 157 void AttachFFLData(void* pData) { m_pFormFiller = pData; } | 157 void AttachFFLData(void* pData) { m_pFormFiller = pData; } |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 void* m_pFormFiller; | 160 void* m_pFormFiller; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ | 163 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_ |
| OLD | NEW |