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_FXEDIT_FX_EDIT_H_ | 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ | 8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
9 | 9 |
10 #include "core/include/fpdfapi/fpdf_parser.h" | 10 #include "core/include/fpdfapi/fpdf_parser.h" |
11 #include "core/include/fxcrt/fx_basic.h" | 11 #include "core/include/fxcrt/fx_basic.h" |
12 #include "core/include/fxge/fx_dib.h" | 12 #include "core/include/fxge/fx_dib.h" |
13 | 13 |
14 class CFX_RenderDevice; | 14 class CFX_RenderDevice; |
15 class CPDF_Font; | 15 class CPDF_Font; |
16 class CFX_Matrix; | 16 class CFX_Matrix; |
17 class CPDF_PageObjects; | 17 class CPDF_PageObjectList; |
18 class CPDF_Point; | 18 class CPDF_Point; |
19 class CPDF_TextObject; | 19 class CPDF_TextObject; |
20 class IFX_Edit; | 20 class IFX_Edit; |
21 class IFX_Edit_FontMap; | 21 class IFX_Edit_FontMap; |
22 class IFX_Edit_Iterator; | 22 class IFX_Edit_Iterator; |
23 class IFX_Edit_Notify; | 23 class IFX_Edit_Notify; |
24 class IFX_Edit_UndoItem; | 24 class IFX_Edit_UndoItem; |
25 class IFX_List; | 25 class IFX_List; |
26 class IFX_List_Notify; | 26 class IFX_List_Notify; |
27 class IFX_SystemHandler; | 27 class IFX_SystemHandler; |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 const CPDF_Rect& rcClip, | 451 const CPDF_Rect& rcClip, |
452 const CPDF_Point& ptOffset, | 452 const CPDF_Point& ptOffset, |
453 const CPVT_WordRange* pRange); | 453 const CPVT_WordRange* pRange); |
454 static void DrawRichEdit(CFX_RenderDevice* pDevice, | 454 static void DrawRichEdit(CFX_RenderDevice* pDevice, |
455 CFX_Matrix* pUser2Device, | 455 CFX_Matrix* pUser2Device, |
456 IFX_Edit* pEdit, | 456 IFX_Edit* pEdit, |
457 const CPDF_Rect& rcClip, | 457 const CPDF_Rect& rcClip, |
458 const CPDF_Point& ptOffset, | 458 const CPDF_Point& ptOffset, |
459 const CPVT_WordRange* pRange); | 459 const CPVT_WordRange* pRange); |
460 static void GeneratePageObjects( | 460 static void GeneratePageObjects( |
461 CPDF_PageObjects* pPageObjects, | 461 CPDF_PageObjectList* pPageObjects, |
462 IFX_Edit* pEdit, | 462 IFX_Edit* pEdit, |
463 const CPDF_Point& ptOffset, | 463 const CPDF_Point& ptOffset, |
464 const CPVT_WordRange* pRange, | 464 const CPVT_WordRange* pRange, |
465 FX_COLORREF crText, | 465 FX_COLORREF crText, |
466 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | 466 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); |
467 static void GenerateRichPageObjects( | 467 static void GenerateRichPageObjects( |
468 CPDF_PageObjects* pPageObjects, | 468 CPDF_PageObjectList* pPageObjects, |
469 IFX_Edit* pEdit, | 469 IFX_Edit* pEdit, |
470 const CPDF_Point& ptOffset, | 470 const CPDF_Point& ptOffset, |
471 const CPVT_WordRange* pRange, | 471 const CPVT_WordRange* pRange, |
472 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); | 472 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray); |
473 static void GenerateUnderlineObjects(CPDF_PageObjects* pPageObjects, | 473 static void GenerateUnderlineObjects(CPDF_PageObjectList* pPageObjects, |
474 IFX_Edit* pEdit, | 474 IFX_Edit* pEdit, |
475 const CPDF_Point& ptOffset, | 475 const CPDF_Point& ptOffset, |
476 const CPVT_WordRange* pRange, | 476 const CPVT_WordRange* pRange, |
477 FX_COLORREF color); | 477 FX_COLORREF color); |
478 | 478 |
479 protected: | 479 protected: |
480 virtual ~IFX_Edit() {} | 480 virtual ~IFX_Edit() {} |
481 }; | 481 }; |
482 | 482 |
483 class IFX_List_Notify { | 483 class IFX_List_Notify { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 protected: | 567 protected: |
568 virtual ~IFX_List() {} | 568 virtual ~IFX_List() {} |
569 }; | 569 }; |
570 | 570 |
571 CFX_ByteString GetPDFWordString(IFX_Edit_FontMap* pFontMap, | 571 CFX_ByteString GetPDFWordString(IFX_Edit_FontMap* pFontMap, |
572 int32_t nFontIndex, | 572 int32_t nFontIndex, |
573 FX_WORD Word, | 573 FX_WORD Word, |
574 FX_WORD SubWord); | 574 FX_WORD SubWord); |
575 | 575 |
576 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ | 576 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
OLD | NEW |