| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 void SetHorzScale(int32_t nHorzScale, FX_BOOL bPaint = TRUE); | 77 void SetHorzScale(int32_t nHorzScale, FX_BOOL bPaint = TRUE); |
| 78 void SetCharSpace(FX_FLOAT fCharSpace, FX_BOOL bPaint = TRUE); | 78 void SetCharSpace(FX_FLOAT fCharSpace, FX_BOOL bPaint = TRUE); |
| 79 | 79 |
| 80 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE); | 80 void SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE); |
| 81 | 81 |
| 82 FX_BOOL CanSelectAll() const; | 82 FX_BOOL CanSelectAll() const; |
| 83 FX_BOOL CanClear() const; | 83 FX_BOOL CanClear() const; |
| 84 FX_BOOL CanCopy() const; | 84 FX_BOOL CanCopy() const; |
| 85 FX_BOOL CanCut() const; | 85 FX_BOOL CanCut() const; |
| 86 FX_BOOL CanPaste() const; | |
| 87 | 86 |
| 88 virtual void CopyText(); | 87 void CutText(); |
| 89 virtual void PasteText(); | |
| 90 virtual void CutText(); | |
| 91 | 88 |
| 92 virtual void SetText(const FX_WCHAR* csText); | 89 void SetText(const FX_WCHAR* csText); |
| 93 void ReplaceSel(const FX_WCHAR* csText); | 90 void ReplaceSel(const FX_WCHAR* csText); |
| 94 | 91 |
| 95 CFX_ByteString GetTextAppearanceStream(const CFX_FloatPoint& ptOffset) const; | 92 CFX_ByteString GetTextAppearanceStream(const CFX_FloatPoint& ptOffset) const; |
| 96 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset) const; | 93 CFX_ByteString GetCaretAppearanceStream(const CFX_FloatPoint& ptOffset) const; |
| 97 CFX_ByteString GetSelectAppearanceStream( | 94 CFX_ByteString GetSelectAppearanceStream( |
| 98 const CFX_FloatPoint& ptOffset) const; | 95 const CFX_FloatPoint& ptOffset) const; |
| 99 | 96 |
| 100 FX_BOOL IsTextFull() const; | 97 FX_BOOL IsTextFull() const; |
| 101 | 98 |
| 102 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, | 99 static FX_FLOAT GetCharArrayAutoFontSize(CPDF_Font* pFont, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, | 148 CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, |
| 152 FX_BOOL bLatin, | 149 FX_BOOL bLatin, |
| 153 FX_BOOL bArabic) const; | 150 FX_BOOL bArabic) const; |
| 154 IPWL_Filler_Notify* m_pFillerNotify; | 151 IPWL_Filler_Notify* m_pFillerNotify; |
| 155 FX_BOOL m_bFocus; | 152 FX_BOOL m_bFocus; |
| 156 CFX_FloatRect m_rcOldWindow; | 153 CFX_FloatRect m_rcOldWindow; |
| 157 void* m_pFormFiller; | 154 void* m_pFormFiller; |
| 158 }; | 155 }; |
| 159 | 156 |
| 160 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ | 157 #endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_ |
| OLD | NEW |