Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_link.cpp
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
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
7#include "core/fpdfdoc/cpdf_link.h"
8
9#include <utility>
10
11#include "core/fpdfapi/parser/cpdf_dictionary.h"
12
13CPDF_Link::CPDF_Link() = default;
14
15CPDF_Link::CPDF_Link(RetainPtr<CPDF_Dictionary> pDict)
16 : m_pDict(std::move(pDict)) {}
17
18CPDF_Link::CPDF_Link(const CPDF_Link& that) = default;
19
20CPDF_Link::~CPDF_Link() = default;
21
23 return m_pDict->GetRectFor("Rect");
24}
25
27 return CPDF_Dest::Create(pDoc, m_pDict->GetDirectObjectFor("Dest"));
28}
29
31 return CPDF_Action(m_pDict->GetDictFor("A"));
32}