blob: 82f50fe0047d3d8f15052dfa45d05a78b34282e0 [file] [log] [blame]
dsinclaircac704d2016-07-28 12:59:09 -07001// 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
dsinclair1727aee2016-09-29 13:12:56 -07007#ifndef CORE_FPDFDOC_CPDF_LINK_H_
8#define CORE_FPDFDOC_CPDF_LINK_H_
dsinclaircac704d2016-07-28 12:59:09 -07009
dsinclair1727aee2016-09-29 13:12:56 -070010#include "core/fpdfdoc/cpdf_action.h"
11#include "core/fpdfdoc/cpdf_dest.h"
Tom Sepezd0409af2017-05-25 15:53:57 -070012#include "core/fxcrt/cfx_unowned_ptr.h"
dsinclaira52ab742016-09-29 13:59:29 -070013#include "core/fxcrt/fx_coordinates.h"
dsinclaircac704d2016-07-28 12:59:09 -070014
15class CPDF_Dictionary;
16
17class CPDF_Link {
18 public:
Tom Sepezd0409af2017-05-25 15:53:57 -070019 CPDF_Link();
20 explicit CPDF_Link(CPDF_Dictionary* pDict);
21 CPDF_Link(const CPDF_Link& that);
22 ~CPDF_Link();
dsinclaircac704d2016-07-28 12:59:09 -070023
Tom Sepezd0409af2017-05-25 15:53:57 -070024 CPDF_Dictionary* GetDict() const { return m_pDict.Get(); }
dsinclaircac704d2016-07-28 12:59:09 -070025 CFX_FloatRect GetRect();
26 CPDF_Dest GetDest(CPDF_Document* pDoc);
27 CPDF_Action GetAction();
28
29 private:
Tom Sepezd0409af2017-05-25 15:53:57 -070030 CFX_UnownedPtr<CPDF_Dictionary> m_pDict;
dsinclaircac704d2016-07-28 12:59:09 -070031};
32
dsinclair1727aee2016-09-29 13:12:56 -070033#endif // CORE_FPDFDOC_CPDF_LINK_H_