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_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" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 void SetCharSpace(FX_FLOAT fCharSpace); | 79 void SetCharSpace(FX_FLOAT fCharSpace); |
80 | 80 |
81 FX_BOOL CanSelectAll() const; | 81 FX_BOOL CanSelectAll() const; |
82 FX_BOOL CanClear() const; | 82 FX_BOOL CanClear() const; |
83 FX_BOOL CanCopy() const; | 83 FX_BOOL CanCopy() const; |
84 FX_BOOL CanCut() const; | 84 FX_BOOL CanCut() const; |
85 | 85 |
86 void CutText(); | 86 void CutText(); |
87 | 87 |
88 void SetText(const FX_WCHAR* csText); | 88 void SetText(const CFX_WideString& csText); |
89 void ReplaceSel(const FX_WCHAR* csText); | 89 void ReplaceSel(const CFX_WideString& csText); |
90 | 90 |
91 CFX_ByteString GetTextAppearanceStream(const CFX_FloatPoint& ptOffset) const; | 91 CFX_ByteString GetTextAppearanceStream(const CFX_FloatPoint& ptOffset) const; |
92 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset) const; | 92 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset) const; |
93 CFX_ByteString GetSelectAppearanceStream( | 93 CFX_ByteString GetSelectAppearanceStream( |
94 const CFX_FloatPoint& ptOffset) const; | 94 const CFX_FloatPoint& ptOffset) const; |
95 | 95 |
96 FX_BOOL IsTextFull() const; | 96 FX_BOOL IsTextFull() const; |
97 | 97 |
98 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, | 98 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, |
99 const CFX_FloatRect& rcPlate, | 99 const CFX_FloatRect& rcPlate, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, | 139 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, |
140 FX_BOOL bLatin, | 140 FX_BOOL bLatin, |
141 FX_BOOL bArabic) const; | 141 FX_BOOL bArabic) const; |
142 IPWL_Filler_Notify* m_pFillerNotify; | 142 IPWL_Filler_Notify* m_pFillerNotify; |
143 FX_BOOL m_bFocus; | 143 FX_BOOL m_bFocus; |
144 CFX_FloatRect m_rcOldWindow; | 144 CFX_FloatRect m_rcOldWindow; |
145 void* m_pFormFiller; | 145 void* m_pFormFiller; |
146 }; | 146 }; |
147 | 147 |
148 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ | 148 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ |
OLD | NEW |