Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
cpdf_annotcontext.h
Go to the documentation of this file.
1
// Copyright 2018 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
#
ifndef
CORE_FPDFAPI_PAGE_CPDF_ANNOTCONTEXT_H_
8
#
define
CORE_FPDFAPI_PAGE_CPDF_ANNOTCONTEXT_H_
9
10
#
include
<
memory
>
11
12
#
include
"core/fxcrt/retain_ptr.h"
13
#
include
"core/fxcrt/unowned_ptr.h"
14
15
class
CPDF_Dictionary
;
16
class
CPDF_Form;
17
class
CPDF_Stream;
18
class
IPDF_Page
;
19
20
#
ifdef
SetForm
21
#
undef
SetForm
22
#
endif
23
24
class
CPDF_AnnotContext
{
25
public
:
26
CPDF_AnnotContext
(
RetainPtr
<
CPDF_Dictionary
> pAnnotDict,
IPDF_Page
* pPage);
27
~
CPDF_AnnotContext
();
28
29
void
SetForm
(
RetainPtr
<CPDF_Stream> pStream);
30
bool
HasForm
()
const
{
return
!!m_pAnnotForm; }
31
CPDF_Form*
GetForm
()
const
{
return
m_pAnnotForm.get(); }
32
33
// Never nullptr.
34
RetainPtr
<
CPDF_Dictionary
>
GetMutableAnnotDict
() {
return
m_pAnnotDict; }
35
const
CPDF_Dictionary
*
GetAnnotDict
()
const
{
return
m_pAnnotDict.Get(); }
36
37
// Never nullptr.
38
IPDF_Page
*
GetPage
()
const
{
return
m_pPage; }
39
40
private
:
41
std::unique_ptr<CPDF_Form> m_pAnnotForm;
42
RetainPtr
<
CPDF_Dictionary
>
const
m_pAnnotDict;
43
UnownedPtr
<
IPDF_Page
>
const
m_pPage;
44
};
45
46
#
endif
// CORE_FPDFAPI_PAGE_CPDF_ANNOTCONTEXT_H_
DCHECK
#define DCHECK
Definition
check.h:33
CFX_Matrix
Definition
fx_coordinates.h:440
CFX_Matrix::CFX_Matrix
constexpr CFX_Matrix()=default
CPDF_AnnotContext
Definition
cpdf_annotcontext.h:24
CPDF_AnnotContext::GetMutableAnnotDict
RetainPtr< CPDF_Dictionary > GetMutableAnnotDict()
Definition
cpdf_annotcontext.h:34
CPDF_AnnotContext::~CPDF_AnnotContext
~CPDF_AnnotContext()
CPDF_AnnotContext::SetForm
void SetForm(RetainPtr< CPDF_Stream > pStream)
Definition
cpdf_annotcontext.cpp:31
CPDF_AnnotContext::CPDF_AnnotContext
CPDF_AnnotContext(RetainPtr< CPDF_Dictionary > pAnnotDict, IPDF_Page *pPage)
Definition
cpdf_annotcontext.cpp:21
CPDF_AnnotContext::GetForm
CPDF_Form * GetForm() const
Definition
cpdf_annotcontext.h:31
CPDF_AnnotContext::HasForm
bool HasForm() const
Definition
cpdf_annotcontext.h:30
CPDF_AnnotContext::GetPage
IPDF_Page * GetPage() const
Definition
cpdf_annotcontext.h:38
CPDF_AnnotContext::GetAnnotDict
const CPDF_Dictionary * GetAnnotDict() const
Definition
cpdf_annotcontext.h:35
CPDF_Dictionary::DictMap
std::map< ByteString, RetainPtr< CPDF_Object >, std::less<> > DictMap
Definition
cpdf_dictionary.h:31
IPDF_Page
Definition
ipdf_page.h:22
fxcrt::RetainPtr
Definition
retain_ptr.h:28
fxcrt::UnownedPtr
Definition
unowned_ptr.h:76
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfapi
page
cpdf_annotcontext.h
Generated on
for Qt by
1.18.0