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
13
CPDF_Link
::
CPDF_Link
() =
default
;
14
15
CPDF_Link
::
CPDF_Link
(
RetainPtr
<CPDF_Dictionary> pDict)
16
:
m_pDict
(
std
::
move
(
pDict
)) {}
17
18
CPDF_Link
::
CPDF_Link
(
const
CPDF_Link
& that) =
default
;
19
20
CPDF_Link
::~
CPDF_Link
() =
default
;
21
22
CFX_FloatRect
CPDF_Link
::
GetRect
() {
23
return
m_pDict->GetRectFor(
"Rect"
);
24
}
25
26
CPDF_Dest
CPDF_Link
::
GetDest
(
CPDF_Document
* pDoc) {
27
return
CPDF_Dest::Create(pDoc, m_pDict->GetDirectObjectFor(
"Dest"
));
28
}
29
30
CPDF_Action
CPDF_Link
::
GetAction
() {
31
return
CPDF_Action(m_pDict->GetDictFor(
"A"
));
32
}
CFX_FloatRect
Definition
fx_coordinates.h:189
CPDF_Action
Definition
cpdf_action.h:21
CPDF_Dest
Definition
cpdf_dest.h:18
CPDF_Document
Definition
cpdf_document.h:29
CPDF_Link
Definition
cpdf_link.h:16
CPDF_Link::CPDF_Link
CPDF_Link()
CPDF_Link::CPDF_Link
CPDF_Link(const CPDF_Link &that)
CPDF_Link::CPDF_Link
CPDF_Link(RetainPtr< CPDF_Dictionary > pDict)
Definition
cpdf_link.cpp:15
CPDF_Link::GetRect
CFX_FloatRect GetRect()
Definition
cpdf_link.cpp:22
CPDF_Link::GetAction
CPDF_Action GetAction()
Definition
cpdf_link.cpp:30
CPDF_Link::GetDest
CPDF_Dest GetDest(CPDF_Document *pDoc)
Definition
cpdf_link.cpp:26
CPDF_Link::~CPDF_Link
~CPDF_Link()
fxcrt::RetainPtr
Definition
retain_ptr.h:29
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfdoc
cpdf_link.cpp
Generated on Thu Nov 14 2024 00:57:23 for Qt by
1.12.0