| 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_INCLUDE_FXEDIT_FXET_LIST_H_ | 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ |
| 8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ | 8 #define FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ |
| 9 | 9 |
| 10 #include "core/include/fpdfapi/fpdf_parser.h" // For CFX_FloatPoint. | 10 #include "core/include/fpdfapi/fpdf_parser.h" |
| 11 #include "fpdfsdk/include/fxedit/fx_edit.h" | 11 #include "fpdfsdk/include/fxedit/fx_edit.h" |
| 12 | 12 |
| 13 class IFX_Edit; | 13 class IFX_Edit; |
| 14 | 14 |
| 15 class CLST_Size { | 15 class CLST_Size { |
| 16 public: | 16 public: |
| 17 CLST_Size() : x(0.0f), y(0.0f) {} | 17 CLST_Size() : x(0.0f), y(0.0f) {} |
| 18 | 18 |
| 19 CLST_Size(FX_FLOAT other_x, FX_FLOAT other_y) { | 19 CLST_Size(FX_FLOAT other_x, FX_FLOAT other_y) { |
| 20 x = other_x; | 20 x = other_x; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 FX_BOOL OnChar(FX_WORD nChar, FX_BOOL bShift, FX_BOOL bCtrl) override; | 300 FX_BOOL OnChar(FX_WORD nChar, FX_BOOL bShift, FX_BOOL bCtrl) override; |
| 301 void SetPlateRect(const CFX_FloatRect& rect) override; | 301 void SetPlateRect(const CFX_FloatRect& rect) override; |
| 302 void SetScrollPos(const CFX_FloatPoint& point) override; | 302 void SetScrollPos(const CFX_FloatPoint& point) override; |
| 303 void ScrollToListItem(int32_t nItemIndex) override; | 303 void ScrollToListItem(int32_t nItemIndex) override; |
| 304 CFX_FloatRect GetItemRect(int32_t nIndex) const override; | 304 CFX_FloatRect GetItemRect(int32_t nIndex) const override; |
| 305 int32_t GetCaret() const override { return m_nCaretIndex; } | 305 int32_t GetCaret() const override { return m_nCaretIndex; } |
| 306 int32_t GetSelect() const override { return m_nSelItem; } | 306 int32_t GetSelect() const override { return m_nSelItem; } |
| 307 int32_t GetTopItem() const override; | 307 int32_t GetTopItem() const override; |
| 308 CFX_FloatRect GetContentRect() const override; | 308 CFX_FloatRect GetContentRect() const override; |
| 309 int32_t GetItemIndex(const CFX_FloatPoint& point) const override; | 309 int32_t GetItemIndex(const CFX_FloatPoint& point) const override; |
| 310 void AddString(const FX_WCHAR* string) override; | 310 void AddString(const FX_WCHAR* str) override; |
| 311 void SetTopItem(int32_t nIndex) override; | 311 void SetTopItem(int32_t nIndex) override; |
| 312 void Select(int32_t nItemIndex) override; | 312 void Select(int32_t nItemIndex) override; |
| 313 void SetCaret(int32_t nItemIndex) override; | 313 void SetCaret(int32_t nItemIndex) override; |
| 314 void Empty() override; | 314 void Empty() override; |
| 315 void Cancel() override; | 315 void Cancel() override; |
| 316 CFX_WideString GetText() const override; | 316 CFX_WideString GetText() const override; |
| 317 void ReArrange(int32_t nItemIndex) override; | 317 void ReArrange(int32_t nItemIndex) override; |
| 318 | 318 |
| 319 virtual CFX_FloatPoint InToOut(const CFX_FloatPoint& point) const; | 319 virtual CFX_FloatPoint InToOut(const CFX_FloatPoint& point) const; |
| 320 virtual CFX_FloatPoint OutToIn(const CFX_FloatPoint& point) const; | 320 virtual CFX_FloatPoint OutToIn(const CFX_FloatPoint& point) const; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 335 FX_BOOL m_bNotifyFlag; | 335 FX_BOOL m_bNotifyFlag; |
| 336 CFX_FloatPoint m_ptScrollPos; | 336 CFX_FloatPoint m_ptScrollPos; |
| 337 CPLST_Select m_aSelItems; // for multiple | 337 CPLST_Select m_aSelItems; // for multiple |
| 338 int32_t m_nSelItem; // for single | 338 int32_t m_nSelItem; // for single |
| 339 int32_t m_nFootIndex; // for multiple | 339 int32_t m_nFootIndex; // for multiple |
| 340 FX_BOOL m_bCtrlSel; // for multiple | 340 FX_BOOL m_bCtrlSel; // for multiple |
| 341 int32_t m_nCaretIndex; // for multiple | 341 int32_t m_nCaretIndex; // for multiple |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ | 344 #endif // FPDFSDK_INCLUDE_FXEDIT_FXET_LIST_H_ |
| OLD | NEW |