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

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

Issue 1257163002: Kill FX_READER_DLL symbol (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 months 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
« no previous file with comments | « no previous file | fpdfsdk/include/pdfwindow/PWL_Button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fxcrt/fx_basic.h" 10 #include "../../../core/include/fxcrt/fx_basic.h"
(...skipping 28 matching lines...) Expand all
39 #define PVTWORD_STYLE_HIGHLIGHT 0x0001L 39 #define PVTWORD_STYLE_HIGHLIGHT 0x0001L
40 #define PVTWORD_STYLE_UNDERLINE 0x0002L 40 #define PVTWORD_STYLE_UNDERLINE 0x0002L
41 #define PVTWORD_STYLE_CROSSOUT 0x0004L 41 #define PVTWORD_STYLE_CROSSOUT 0x0004L
42 #define PVTWORD_STYLE_SQUIGGLY 0x0008L 42 #define PVTWORD_STYLE_SQUIGGLY 0x0008L
43 #define PVTWORD_STYLE_DUALCROSSOUT 0x0010L 43 #define PVTWORD_STYLE_DUALCROSSOUT 0x0010L
44 #define PVTWORD_STYLE_BOLD 0x0020L 44 #define PVTWORD_STYLE_BOLD 0x0020L
45 #define PVTWORD_STYLE_ITALIC 0x0040L 45 #define PVTWORD_STYLE_ITALIC 0x0040L
46 46
47 #define FX_EDIT_ISLATINWORD(u) (u == 0x2D || (u <= 0x005A && u >= 0x0041) || (u <= 0x007A && u >= 0x0061) || (u <= 0x02AF && u >= 0x00C0)) 47 #define FX_EDIT_ISLATINWORD(u) (u == 0x2D || (u <= 0x005A && u >= 0x0041) || (u <= 0x007A && u >= 0x0061) || (u <= 0x02AF && u >= 0x00C0))
48 48
49 #ifdef FX_READER_DLL
50 #ifdef FXET_EXPORT
51 #define FXET_CLASS __declspec(dllexport)
52 #else
53 #define FXET_CLASS
54 #endif
55 #else
56 #define FXET_CLASS
57 #endif
58
59 #ifndef DEFAULT_CHARSET 49 #ifndef DEFAULT_CHARSET
60 #define DEFAULT_CHARSET 1 50 #define DEFAULT_CHARSET 1
61 #endif 51 #endif
62 52
63 class IFX_Edit_FontMap 53 class IFX_Edit_FontMap
64 { 54 {
65 public: 55 public:
66 virtual ~IFX_Edit_FontMap() { } 56 virtual ~IFX_Edit_FontMap() { }
67 //map a fontindex to pdf font. 57 //map a fontindex to pdf font.
68 virtual CPDF_Font * GetPDFFo nt(int32_t nFontIndex) = 0; 58 virtual CPDF_Font * GetPDFFo nt(int32_t nFontIndex) = 0;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 class IFX_Edit_UndoItem 154 class IFX_Edit_UndoItem
165 { 155 {
166 public: 156 public:
167 virtual ~IFX_Edit_UndoItem() { } 157 virtual ~IFX_Edit_UndoItem() { }
168 158
169 virtual void Undo() = 0; 159 virtual void Undo() = 0;
170 virtual void Redo() = 0; 160 virtual void Redo() = 0;
171 virtual CFX_WideString GetUndoTitle() = 0; 161 virtual CFX_WideString GetUndoTitle() = 0;
172 }; 162 };
173 163
174 class FXET_CLASS IFX_Edit 164 class IFX_Edit
175 { 165 {
176 public: 166 public:
177 static IFX_Edit* NewEdit( ); 167 static IFX_Edit* NewEdit( );
178 static void DelEdit( IFX_Edit* pEdit); 168 static void DelEdit( IFX_Edit* pEdit);
179 169
180 //set a IFX_Edit_FontMap pointer implemented by user. 170 //set a IFX_Edit_FontMap pointer implemented by user.
181 virtual void SetFontM ap(IFX_Edit_FontMap* pFontMap) = 0; 171 virtual void SetFontM ap(IFX_Edit_FontMap* pFontMap) = 0;
182 //if user don't like to use FontMap, implement VTProvider and set it dir ectly. 172 //if user don't like to use FontMap, implement VTProvider and set it dir ectly.
183 virtual void SetVTPro vider(IPDF_VariableText_Provider* pProvider) = 0; 173 virtual void SetVTPro vider(IPDF_VariableText_Provider* pProvider) = 0;
184 //set a IFX_Edit_Notify pointer implemented by user. 174 //set a IFX_Edit_Notify pointer implemented by user.
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 FX_FLOAT fContentMin, FX_FLOAT fContentMax, 416 FX_FLOAT fContentMin, FX_FLOAT fContentMax,
427 FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0; 417 FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0;
428 //set the position of horizontal scrollbar. 418 //set the position of horizontal scrollbar.
429 virtual void IOnSetSc rollPosX(FX_FLOAT fx) = 0; 419 virtual void IOnSetSc rollPosX(FX_FLOAT fx) = 0;
430 //set the position of vertical scrollbar. 420 //set the position of vertical scrollbar.
431 virtual void IOnSetSc rollPosY(FX_FLOAT fy) = 0; 421 virtual void IOnSetSc rollPosY(FX_FLOAT fy) = 0;
432 //Invalidate the rectangle relative to the bounding box of edit. 422 //Invalidate the rectangle relative to the bounding box of edit.
433 virtual void IOnInval idateRect(CPDF_Rect * pRect) = 0; 423 virtual void IOnInval idateRect(CPDF_Rect * pRect) = 0;
434 }; 424 };
435 425
436 class FXET_CLASS IFX_List 426 class IFX_List
437 { 427 {
438 public: 428 public:
439 static IFX_List* NewList( ); 429 static IFX_List* NewList( );
440 static void DelList(IFX_List* pList); 430 static void DelList(IFX_List* pList);
441 431
442 virtual void SetFontM ap(IFX_Edit_FontMap * pFontMap) = 0; 432 virtual void SetFontM ap(IFX_Edit_FontMap * pFontMap) = 0;
443 virtual void SetNotif y(IFX_List_Notify * pNotify) = 0; 433 virtual void SetNotif y(IFX_List_Notify * pNotify) = 0;
444 434
445 virtual void SetPlate Rect(const CPDF_Rect & rect) = 0; 435 virtual void SetPlate Rect(const CPDF_Rect & rect) = 0;
446 virtual void SetFontS ize(FX_FLOAT fFontSize) = 0; 436 virtual void SetFontS ize(FX_FLOAT fFontSize) = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 virtual void OnVK_HOM E(FX_BOOL bShift,FX_BOOL bCtrl) = 0; 476 virtual void OnVK_HOM E(FX_BOOL bShift,FX_BOOL bCtrl) = 0;
487 virtual void OnVK_END (FX_BOOL bShift,FX_BOOL bCtrl) = 0; 477 virtual void OnVK_END (FX_BOOL bShift,FX_BOOL bCtrl) = 0;
488 virtual void OnVK(int 32_t nItemIndex,FX_BOOL bShift,FX_BOOL bCtrl) = 0; 478 virtual void OnVK(int 32_t nItemIndex,FX_BOOL bShift,FX_BOOL bCtrl) = 0;
489 virtual FX_BOOL OnChar(F X_WORD nChar,FX_BOOL bShift,FX_BOOL bCtrl) = 0; 479 virtual FX_BOOL OnChar(F X_WORD nChar,FX_BOOL bShift,FX_BOOL bCtrl) = 0;
490 480
491 protected: 481 protected:
492 ~IFX_List() { } 482 ~IFX_List() { }
493 }; 483 };
494 484
495 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ 485 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/pdfwindow/PWL_Button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698