| 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_FXEDIT_FXET_EDIT_H_ | 7 #ifndef FPDFSDK_FXEDIT_FXET_EDIT_H_ |
| 8 #define FPDFSDK_FXEDIT_FXET_EDIT_H_ | 8 #define FPDFSDK_FXEDIT_FXET_EDIT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> |
| 11 | 12 |
| 12 #include "core/fpdfdoc/cpvt_secprops.h" | 13 #include "core/fpdfdoc/cpvt_secprops.h" |
| 13 #include "core/fpdfdoc/cpvt_wordprops.h" | 14 #include "core/fpdfdoc/cpvt_wordprops.h" |
| 14 #include "fpdfsdk/fxedit/fx_edit.h" | 15 #include "fpdfsdk/fxedit/fx_edit.h" |
| 15 | 16 |
| 16 class CFFL_FormFiller; | 17 class CFFL_FormFiller; |
| 17 class CFX_Edit; | 18 class CFX_Edit; |
| 18 class CFX_Edit_Iterator; | 19 class CFX_Edit_Iterator; |
| 19 class CFX_Edit_Provider; | 20 class CFX_Edit_Provider; |
| 20 class CFX_RenderDevice; | 21 class CFX_RenderDevice; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 static void DrawEdit(CFX_RenderDevice* pDevice, | 329 static void DrawEdit(CFX_RenderDevice* pDevice, |
| 329 CFX_Matrix* pUser2Device, | 330 CFX_Matrix* pUser2Device, |
| 330 CFX_Edit* pEdit, | 331 CFX_Edit* pEdit, |
| 331 FX_COLORREF crTextFill, | 332 FX_COLORREF crTextFill, |
| 332 FX_COLORREF crTextStroke, | 333 FX_COLORREF crTextStroke, |
| 333 const CFX_FloatRect& rcClip, | 334 const CFX_FloatRect& rcClip, |
| 334 const CFX_FloatPoint& ptOffset, | 335 const CFX_FloatPoint& ptOffset, |
| 335 const CPVT_WordRange* pRange, | 336 const CPVT_WordRange* pRange, |
| 336 CFX_SystemHandler* pSystemHandler, | 337 CFX_SystemHandler* pSystemHandler, |
| 337 CFFL_FormFiller* pFFLData); | 338 CFFL_FormFiller* pFFLData); |
| 338 static void GeneratePageObjects( | 339 static void GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
| 339 CPDF_PageObjectHolder* pObjectHolder, | 340 CFX_Edit* pEdit, |
| 340 CFX_Edit* pEdit, | 341 const CFX_FloatPoint& ptOffset, |
| 341 const CFX_FloatPoint& ptOffset, | 342 const CPVT_WordRange* pRange, |
| 342 const CPVT_WordRange* pRange, | 343 FX_COLORREF crText, |
| 343 FX_COLORREF crText, | 344 std::vector<CPDF_TextObject*>* ObjArray); |
| 344 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | |
| 345 | 345 |
| 346 CFX_Edit(); | 346 CFX_Edit(); |
| 347 ~CFX_Edit(); | 347 ~CFX_Edit(); |
| 348 | 348 |
| 349 void SetFontMap(IPVT_FontMap* pFontMap); | 349 void SetFontMap(IPVT_FontMap* pFontMap); |
| 350 void SetNotify(CPWL_EditCtrl* pNotify); | 350 void SetNotify(CPWL_EditCtrl* pNotify); |
| 351 void SetOprNotify(CPWL_Edit* pOprNotify); | 351 void SetOprNotify(CPWL_Edit* pOprNotify); |
| 352 | 352 |
| 353 // Returns an iterator for the contents. Should not be released. | 353 // Returns an iterator for the contents. Should not be released. |
| 354 CFX_Edit_Iterator* GetIterator(); | 354 CFX_Edit_Iterator* GetIterator(); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 int32_t charset, | 551 int32_t charset, |
| 552 int32_t nFontIndex) override; | 552 int32_t nFontIndex) override; |
| 553 int32_t GetDefaultFontIndex() override; | 553 int32_t GetDefaultFontIndex() override; |
| 554 bool IsLatinWord(uint16_t word) override; | 554 bool IsLatinWord(uint16_t word) override; |
| 555 | 555 |
| 556 private: | 556 private: |
| 557 IPVT_FontMap* m_pFontMap; | 557 IPVT_FontMap* m_pFontMap; |
| 558 }; | 558 }; |
| 559 | 559 |
| 560 #endif // FPDFSDK_FXEDIT_FXET_EDIT_H_ | 560 #endif // FPDFSDK_FXEDIT_FXET_EDIT_H_ |
| OLD | NEW |