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_FX_EDIT_H_ | 7 #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ | 8 #define FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
9 | 9 |
10 #include "core/include/fpdfapi/fpdf_parser.h" | 10 #include "core/include/fpdfapi/fpdf_parser.h" |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 | 535 |
536 virtual void SetScrollPos(const CFX_FloatPoint& point) = 0; | 536 virtual void SetScrollPos(const CFX_FloatPoint& point) = 0; |
537 virtual void ScrollToListItem(int32_t nItemIndex) = 0; | 537 virtual void ScrollToListItem(int32_t nItemIndex) = 0; |
538 virtual CFX_FloatRect GetItemRect(int32_t nIndex) const = 0; | 538 virtual CFX_FloatRect GetItemRect(int32_t nIndex) const = 0; |
539 virtual int32_t GetCaret() const = 0; | 539 virtual int32_t GetCaret() const = 0; |
540 virtual int32_t GetSelect() const = 0; | 540 virtual int32_t GetSelect() const = 0; |
541 virtual int32_t GetTopItem() const = 0; | 541 virtual int32_t GetTopItem() const = 0; |
542 virtual int32_t GetItemIndex(const CFX_FloatPoint& point) const = 0; | 542 virtual int32_t GetItemIndex(const CFX_FloatPoint& point) const = 0; |
543 virtual int32_t GetFirstSelected() const = 0; | 543 virtual int32_t GetFirstSelected() const = 0; |
544 | 544 |
545 virtual void AddString(const FX_WCHAR* string) = 0; | 545 virtual void AddString(const FX_WCHAR* str) = 0; |
546 virtual void SetTopItem(int32_t nIndex) = 0; | 546 virtual void SetTopItem(int32_t nIndex) = 0; |
547 virtual void Select(int32_t nItemIndex) = 0; | 547 virtual void Select(int32_t nItemIndex) = 0; |
548 virtual void SetCaret(int32_t nItemIndex) = 0; | 548 virtual void SetCaret(int32_t nItemIndex) = 0; |
549 virtual void Empty() = 0; | 549 virtual void Empty() = 0; |
550 virtual void Cancel() = 0; | 550 virtual void Cancel() = 0; |
551 virtual CFX_WideString GetText() const = 0; | 551 virtual CFX_WideString GetText() const = 0; |
552 | 552 |
553 virtual void OnMouseDown(const CFX_FloatPoint& point, | 553 virtual void OnMouseDown(const CFX_FloatPoint& point, |
554 FX_BOOL bShift, | 554 FX_BOOL bShift, |
555 FX_BOOL bCtrl) = 0; | 555 FX_BOOL bCtrl) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
568 protected: | 568 protected: |
569 virtual ~IFX_List() {} | 569 virtual ~IFX_List() {} |
570 }; | 570 }; |
571 | 571 |
572 CFX_ByteString GetPDFWordString(IFX_Edit_FontMap* pFontMap, | 572 CFX_ByteString GetPDFWordString(IFX_Edit_FontMap* pFontMap, |
573 int32_t nFontIndex, | 573 int32_t nFontIndex, |
574 FX_WORD Word, | 574 FX_WORD Word, |
575 FX_WORD SubWord); | 575 FX_WORD SubWord); |
576 | 576 |
577 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ | 577 #endif // FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_ |
OLD | NEW |