| 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_FXEDIT_INCLUDE_FXET_EDIT_H_ | 7 #ifndef FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 8 #define FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 class CFX_Edit_Refresh { | 113 class CFX_Edit_Refresh { |
| 114 public: | 114 public: |
| 115 CFX_Edit_Refresh(); | 115 CFX_Edit_Refresh(); |
| 116 virtual ~CFX_Edit_Refresh(); | 116 virtual ~CFX_Edit_Refresh(); |
| 117 | 117 |
| 118 void BeginRefresh(); | 118 void BeginRefresh(); |
| 119 void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect); | 119 void Push(const CPVT_WordRange& linerange, const CFX_FloatRect& rect); |
| 120 void NoAnalyse(); | 120 void NoAnalyse(); |
| 121 void Analyse(int32_t nAlignment); | |
| 122 void AddRefresh(const CFX_FloatRect& rect); | 121 void AddRefresh(const CFX_FloatRect& rect); |
| 123 const CFX_Edit_RectArray* GetRefreshRects() const; | 122 const CFX_Edit_RectArray* GetRefreshRects() const; |
| 124 void EndRefresh(); | 123 void EndRefresh(); |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 CFX_Edit_LineRectArray m_NewLineRects; | 126 CFX_Edit_LineRectArray m_NewLineRects; |
| 128 CFX_Edit_LineRectArray m_OldLineRects; | 127 CFX_Edit_LineRectArray m_OldLineRects; |
| 129 CFX_Edit_RectArray m_RefreshRects; | 128 CFX_Edit_RectArray m_RefreshRects; |
| 130 }; | 129 }; |
| 131 | 130 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 int32_t charset, | 702 int32_t charset, |
| 704 int32_t nFontIndex) override; | 703 int32_t nFontIndex) override; |
| 705 int32_t GetDefaultFontIndex() override; | 704 int32_t GetDefaultFontIndex() override; |
| 706 FX_BOOL IsLatinWord(uint16_t word) override; | 705 FX_BOOL IsLatinWord(uint16_t word) override; |
| 707 | 706 |
| 708 private: | 707 private: |
| 709 IPVT_FontMap* m_pFontMap; | 708 IPVT_FontMap* m_pFontMap; |
| 710 }; | 709 }; |
| 711 | 710 |
| 712 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ | 711 #endif // FPDFSDK_FXEDIT_INCLUDE_FXET_EDIT_H_ |
| OLD | NEW |