dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 1 | // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
dsinclair | 1727aee | 2016-09-29 13:12:56 -0700 | [diff] [blame] | 7 | #ifndef CORE_FPDFDOC_CPDF_LINK_H_ |
| 8 | #define CORE_FPDFDOC_CPDF_LINK_H_ |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 9 | |
dsinclair | 1727aee | 2016-09-29 13:12:56 -0700 | [diff] [blame] | 10 | #include "core/fpdfdoc/cpdf_action.h" |
| 11 | #include "core/fpdfdoc/cpdf_dest.h" |
Tom Sepez | d0409af | 2017-05-25 15:53:57 -0700 | [diff] [blame^] | 12 | #include "core/fxcrt/cfx_unowned_ptr.h" |
dsinclair | a52ab74 | 2016-09-29 13:59:29 -0700 | [diff] [blame] | 13 | #include "core/fxcrt/fx_coordinates.h" |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 14 | |
| 15 | class CPDF_Dictionary; |
| 16 | |
| 17 | class CPDF_Link { |
| 18 | public: |
Tom Sepez | d0409af | 2017-05-25 15:53:57 -0700 | [diff] [blame^] | 19 | CPDF_Link(); |
| 20 | explicit CPDF_Link(CPDF_Dictionary* pDict); |
| 21 | CPDF_Link(const CPDF_Link& that); |
| 22 | ~CPDF_Link(); |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 23 | |
Tom Sepez | d0409af | 2017-05-25 15:53:57 -0700 | [diff] [blame^] | 24 | CPDF_Dictionary* GetDict() const { return m_pDict.Get(); } |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 25 | CFX_FloatRect GetRect(); |
| 26 | CPDF_Dest GetDest(CPDF_Document* pDoc); |
| 27 | CPDF_Action GetAction(); |
| 28 | |
| 29 | private: |
Tom Sepez | d0409af | 2017-05-25 15:53:57 -0700 | [diff] [blame^] | 30 | CFX_UnownedPtr<CPDF_Dictionary> m_pDict; |
dsinclair | cac704d | 2016-07-28 12:59:09 -0700 | [diff] [blame] | 31 | }; |
| 32 | |
dsinclair | 1727aee | 2016-09-29 13:12:56 -0700 | [diff] [blame] | 33 | #endif // CORE_FPDFDOC_CPDF_LINK_H_ |