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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Edit.h

Issue 1869533003: Remove all PWL_Note classes (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
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_PDFWINDOW_PWL_EDIT_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_EDIT_H_
8 #define FPDFSDK_PDFWINDOW_PWL_EDIT_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_EDIT_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 #include "fpdfsdk/fxedit/include/fx_edit.h" 11 #include "fpdfsdk/fxedit/include/fx_edit.h"
12 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h" 12 #include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
13 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" 13 #include "fpdfsdk/pdfwindow/PWL_Wnd.h"
14 14
15 class IPWL_SpellCheck;
16
17 class IPWL_Filler_Notify { 15 class IPWL_Filler_Notify {
18 public: 16 public:
19 virtual ~IPWL_Filler_Notify() {} 17 virtual ~IPWL_Filler_Notify() {}
20 virtual void QueryWherePopup( 18 virtual void QueryWherePopup(
21 void* pPrivateData, 19 void* pPrivateData,
22 FX_FLOAT fPopupMin, 20 FX_FLOAT fPopupMin,
23 FX_FLOAT fPopupMax, 21 FX_FLOAT fPopupMax,
24 int32_t& nRet, 22 int32_t& nRet,
25 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top) 23 FX_FLOAT& fPopupRet) = 0; // nRet: (0:bottom 1:top)
26 virtual void OnBeforeKeyStroke(void* pPrivateData, 24 virtual void OnBeforeKeyStroke(void* pPrivateData,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 FX_BOOL bPaint = TRUE); // 0:top 1:bottom 2:center 72 FX_BOOL bPaint = TRUE); // 0:top 1:bottom 2:center
75 73
76 void SetCharArray(int32_t nCharArray); 74 void SetCharArray(int32_t nCharArray);
77 void SetLimitChar(int32_t nLimitChar); 75 void SetLimitChar(int32_t nLimitChar);
78 76
79 void SetHorzScale(int32_t nHorzScale, FX_BOOL bPaint = TRUE); 77 void SetHorzScale(int32_t nHorzScale, FX_BOOL bPaint = TRUE);
80 void SetCharSpace(FX_FLOAT fCharSpace, FX_BOOL bPaint = TRUE); 78 void SetCharSpace(FX_FLOAT fCharSpace, FX_BOOL bPaint = TRUE);
81 79
82 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE); 80 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE);
83 81
84 void EnableSpellCheck(FX_BOOL bEnabled);
85
86 FX_BOOL CanSelectAll() const; 82 FX_BOOL CanSelectAll() const;
87 FX_BOOL CanClear() const; 83 FX_BOOL CanClear() const;
88 FX_BOOL CanCopy() const; 84 FX_BOOL CanCopy() const;
89 FX_BOOL CanCut() const; 85 FX_BOOL CanCut() const;
90 FX_BOOL CanPaste() const; 86 FX_BOOL CanPaste() const;
91 87
92 virtual void CopyText(); 88 virtual void CopyText();
93 virtual void PasteText(); 89 virtual void PasteText();
94 virtual void CutText(); 90 virtual void CutText();
95 91
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 CPVT_WordRange GetArabicWordsRange(const CPVT_WordPlace& place) const; 147 CPVT_WordRange GetArabicWordsRange(const CPVT_WordPlace& place) const;
152 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, 148 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place,
153 FX_BOOL bLatin, 149 FX_BOOL bLatin,
154 FX_BOOL bArabic) const; 150 FX_BOOL bArabic) const;
155 151
156 public: 152 public:
157 FX_BOOL IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag); 153 FX_BOOL IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag);
158 154
159 private: 155 private:
160 IPWL_Filler_Notify* m_pFillerNotify; 156 IPWL_Filler_Notify* m_pFillerNotify;
161 IPWL_SpellCheck* m_pSpellCheck;
162 FX_BOOL m_bFocus; 157 FX_BOOL m_bFocus;
163 CFX_FloatRect m_rcOldWindow; 158 CFX_FloatRect m_rcOldWindow;
164 159
165 public: 160 public:
166 void AttachFFLData(void* pData) { m_pFormFiller = pData; } 161 void AttachFFLData(void* pData) { m_pFormFiller = pData; }
167 162
168 private: 163 private:
169 void* m_pFormFiller; 164 void* m_pFormFiller;
170 }; 165 };
171 166
172 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ 167 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/pdfwindow/PWL_Edit.cpp » ('j') | fpdfsdk/pdfwindow/PWL_Edit.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698