Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: fpdfsdk/include/fxedit/fx_edit.h

Issue 1519693002: Merge to XFA: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: XFA-specific changes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CPDF_Matrix; 16 class CFX_Matrix;
17 class CPDF_PageObjects; 17 class CPDF_PageObjects;
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;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 IFX_Edit* pEdit, 428 IFX_Edit* pEdit,
429 const CPDF_Point& ptOffset, 429 const CPDF_Point& ptOffset,
430 const CPVT_WordRange* pRange = NULL, 430 const CPVT_WordRange* pRange = NULL,
431 FX_BOOL bContinuous = TRUE, 431 FX_BOOL bContinuous = TRUE,
432 FX_WORD SubWord = 0); 432 FX_WORD SubWord = 0);
433 static CFX_ByteString GetSelectAppearanceStream( 433 static CFX_ByteString GetSelectAppearanceStream(
434 IFX_Edit* pEdit, 434 IFX_Edit* pEdit,
435 const CPDF_Point& ptOffset, 435 const CPDF_Point& ptOffset,
436 const CPVT_WordRange* pRange = NULL); 436 const CPVT_WordRange* pRange = NULL);
437 static void DrawEdit(CFX_RenderDevice* pDevice, 437 static void DrawEdit(CFX_RenderDevice* pDevice,
438 CPDF_Matrix* pUser2Device, 438 CFX_Matrix* pUser2Device,
439 IFX_Edit* pEdit, 439 IFX_Edit* pEdit,
440 FX_COLORREF crTextFill, 440 FX_COLORREF crTextFill,
441 FX_COLORREF crTextStroke, 441 FX_COLORREF crTextStroke,
442 const CPDF_Rect& rcClip, 442 const CPDF_Rect& rcClip,
443 const CPDF_Point& ptOffset, 443 const CPDF_Point& ptOffset,
444 const CPVT_WordRange* pRange, 444 const CPVT_WordRange* pRange,
445 IFX_SystemHandler* pSystemHandler, 445 IFX_SystemHandler* pSystemHandler,
446 void* pFFLData); 446 void* pFFLData);
447 static void DrawUnderline(CFX_RenderDevice* pDevice, 447 static void DrawUnderline(CFX_RenderDevice* pDevice,
448 CPDF_Matrix* pUser2Device, 448 CFX_Matrix* pUser2Device,
449 IFX_Edit* pEdit, 449 IFX_Edit* pEdit,
450 FX_COLORREF color, 450 FX_COLORREF color,
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 CPDF_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_PageObjects* 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,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698