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_annotlist.h
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
#
ifndef
CORE_FPDFDOC_CPDF_ANNOTLIST_H_
8
#
define
CORE_FPDFDOC_CPDF_ANNOTLIST_H_
9
10
#
include
<
stddef
.
h
>
11
#
include
<
stdint
.
h
>
12
13
#
include
<
memory
>
14
#
include
<
vector
>
15
16
#
include
"core/fpdfapi/render/cpdf_pagerendercontext.h"
17
#
include
"core/fxcrt/fx_coordinates.h"
18
#
include
"core/fxcrt/unowned_ptr.h"
19
20
class
CFX_RenderDevice
;
21
class
CPDF_Annot
;
22
class
CPDF_Document
;
23
class
CPDF_Page;
24
class
CPDF_RenderContext
;
25
26
class
CPDF_AnnotList
final
:
public
CPDF_PageRenderContext::
AnnotListIface
{
27
public
:
28
explicit
CPDF_AnnotList
(CPDF_Page* pPage);
29
~
CPDF_AnnotList
()
override
;
30
31
void
DisplayAnnots
(CPDF_Page* pPage,
32
CFX_RenderDevice
* pDevice,
33
CPDF_RenderContext
* pContext,
34
bool
bPrinting,
35
const
CFX_Matrix
& mtUser2Device,
36
bool
bShowWidget);
37
38
size_t
Count
()
const
{
return
m_AnnotList.size(); }
39
CPDF_Annot
*
GetAt
(size_t index)
const
{
return
m_AnnotList[index].get(); }
40
bool
Contains
(
const
CPDF_Annot
* pAnnot)
const
;
41
42
private
:
43
void
DisplayPass(CPDF_Page* pPage,
44
CFX_RenderDevice
* pDevice,
45
CPDF_RenderContext
* pContext,
46
bool
bPrinting,
47
const
CFX_Matrix
& mtMatrix,
48
bool
bWidget);
49
50
UnownedPtr
<
CPDF_Document
>
const
m_pDocument;
51
52
// The first |m_nAnnotCount| elements are from the PDF itself. The rest are
53
// generated pop-up annotations.
54
std::vector<std::unique_ptr<CPDF_Annot>> m_AnnotList;
55
size_t m_nAnnotCount = 0;
56
};
57
58
#
endif
// CORE_FPDFDOC_CPDF_ANNOTLIST_H_
CFX_FloatRect
Definition
fx_coordinates.h:189
CFX_FloatRect::CFX_FloatRect
constexpr CFX_FloatRect(float l, float b, float r, float t)
Definition
fx_coordinates.h:192
CFX_FloatRect::Width
float Width() const
Definition
fx_coordinates.h:229
CFX_FloatRect::left
float left
Definition
fx_coordinates.h:273
CFX_FloatRect::bottom
float bottom
Definition
fx_coordinates.h:274
CFX_FloatRect::Normalize
void Normalize()
Definition
fx_coordinates.cpp:157
CFX_FloatRect::right
float right
Definition
fx_coordinates.h:275
CFX_FloatRect::Height
float Height() const
Definition
fx_coordinates.h:230
CFX_FloatRect::Translate
void Translate(float e, float f)
Definition
fx_coordinates.cpp:292
CFX_FloatRect::top
float top
Definition
fx_coordinates.h:276
CFX_Matrix
Definition
fx_coordinates.h:452
CFX_RenderDevice
Definition
cfx_renderdevice.h:39
CPDF_AnnotList::GetAt
CPDF_Annot * GetAt(size_t index) const
Definition
cpdf_annotlist.h:39
CPDF_AnnotList::Count
size_t Count() const
Definition
cpdf_annotlist.h:38
CPDF_AnnotList::Contains
bool Contains(const CPDF_Annot *pAnnot) const
Definition
cpdf_annotlist.cpp:225
CPDF_AnnotList::DisplayAnnots
void DisplayAnnots(CPDF_Page *pPage, CFX_RenderDevice *pDevice, CPDF_RenderContext *pContext, bool bPrinting, const CFX_Matrix &mtUser2Device, bool bShowWidget)
Definition
cpdf_annotlist.cpp:264
CPDF_AnnotList::~CPDF_AnnotList
~CPDF_AnnotList() override
Definition
cpdf_annotlist.cpp:214
CPDF_AnnotList::CPDF_AnnotList
CPDF_AnnotList(CPDF_Page *pPage)
Definition
cpdf_annotlist.cpp:174
CPDF_Annot
Definition
cpdf_annot.h:32
CPDF_Annot::GetSubtype
Subtype GetSubtype() const
Definition
cpdf_annot.cpp:167
CPDF_Annot::GetAnnotDict
const CPDF_Dictionary * GetAnnotDict() const
Definition
cpdf_annot.h:83
CPDF_Annot::SetPopupAnnot
void SetPopupAnnot(CPDF_Annot *pAnnot)
Definition
cpdf_annot.h:103
CPDF_Annot::Subtype
Subtype
Definition
cpdf_annot.h:35
CPDF_Annot::Subtype::UNDERLINE
@ UNDERLINE
CPDF_Annot::Subtype::WATERMARK
@ WATERMARK
CPDF_Annot::Subtype::CIRCLE
@ CIRCLE
CPDF_Annot::Subtype::REDACT
@ REDACT
CPDF_Annot::Subtype::SQUARE
@ SQUARE
CPDF_Annot::Subtype::WIDGET
@ WIDGET
CPDF_Annot::Subtype::LINE
@ LINE
CPDF_Annot::Subtype::INK
@ INK
CPDF_Annot::Subtype::CARET
@ CARET
CPDF_Annot::Subtype::POPUP
@ POPUP
CPDF_Annot::Subtype::HIGHLIGHT
@ HIGHLIGHT
CPDF_Annot::Subtype::LINK
@ LINK
CPDF_Annot::Subtype::TEXT
@ TEXT
CPDF_Annot::Subtype::UNKNOWN
@ UNKNOWN
CPDF_Annot::Subtype::FILEATTACHMENT
@ FILEATTACHMENT
CPDF_Annot::Subtype::FREETEXT
@ FREETEXT
CPDF_Annot::Subtype::STRIKEOUT
@ STRIKEOUT
CPDF_Annot::Subtype::THREED
@ THREED
CPDF_Annot::Subtype::PRINTERMARK
@ PRINTERMARK
CPDF_Annot::Subtype::SQUIGGLY
@ SQUIGGLY
CPDF_Annot::Subtype::SCREEN
@ SCREEN
CPDF_Annot::Subtype::STAMP
@ STAMP
CPDF_Annot::Subtype::TRAPNET
@ TRAPNET
CPDF_Annot::Subtype::MOVIE
@ MOVIE
CPDF_Annot::Subtype::RICHMEDIA
@ RICHMEDIA
CPDF_Annot::Subtype::XFAWIDGET
@ XFAWIDGET
CPDF_Annot::Subtype::POLYLINE
@ POLYLINE
CPDF_Annot::Subtype::POLYGON
@ POLYGON
CPDF_Annot::Subtype::SOUND
@ SOUND
CPDF_Dictionary::KeyExist
bool KeyExist(const ByteString &key) const
Definition
cpdf_dictionary.cpp:255
CPDF_Dictionary::GetByteStringFor
ByteString GetByteStringFor(const ByteString &key) const
Definition
cpdf_dictionary.cpp:104
CPDF_Dictionary::GetRectFor
CFX_FloatRect GetRectFor(const ByteString &key) const
Definition
cpdf_dictionary.cpp:241
CPDF_Document
Definition
cpdf_document.h:29
CPDF_GenerateAP
Definition
cpdf_generateap.h:15
CPDF_GenerateAP::GenerateFormAP
static void GenerateFormAP(CPDF_Document *pDoc, CPDF_Dictionary *pAnnotDict, FormType type)
Definition
cpdf_generateap.cpp:909
CPDF_GenerateAP::kTextField
@ kTextField
Definition
cpdf_generateap.h:17
CPDF_GenerateAP::kListBox
@ kListBox
Definition
cpdf_generateap.h:17
CPDF_GenerateAP::kComboBox
@ kComboBox
Definition
cpdf_generateap.h:17
CPDF_InteractiveForm
Definition
cpdf_interactiveform.h:35
CPDF_InteractiveForm::IsUpdateAPEnabled
static bool IsUpdateAPEnabled()
Definition
cpdf_interactiveform.cpp:553
CPDF_Object
Definition
cpdf_object.h:50
CPDF_PageRenderContext::AnnotListIface
Definition
cpdf_pagerendercontext.h:23
CPDF_Page::GetPageWidth
float GetPageWidth() const override
Definition
cpdf_page.cpp:55
CPDF_RenderContext
Definition
cpdf_rendercontext.h:26
fxcrt::ByteString::operator==
bool operator==(const char *ptr) const
Definition
bytestring.cpp:256
fxcrt::ByteString::operator!=
bool operator!=(const char *ptr) const
Definition
bytestring.h:130
fxcrt::RetainPtr
Definition
retain_ptr.h:29
fxcrt::UnownedPtr
Definition
unowned_ptr.h:75
pdfium::annotation::kSubtype
const char kSubtype[]
Definition
annotation_common.cpp:12
pdfium::annotation::kType
const char kType[]
Definition
annotation_common.cpp:11
pdfium::annotation::kContents
const char kContents[]
Definition
annotation_common.cpp:14
pdfium::annotation::kAP
const char kAP[]
Definition
annotation_common.cpp:19
pdfium::annotation::kRect
const char kRect[]
Definition
annotation_common.cpp:13
pdfium::annotation::kF
const char kF[]
Definition
annotation_common.cpp:18
pdfium::annotation::kAS
const char kAS[]
Definition
annotation_common.cpp:20
pdfium::form_fields
Definition
form_fields.cpp:7
pdfium::form_fields::kCh
const char kCh[]
Definition
form_fields.cpp:26
pdfium::form_fields::kBtn
const char kBtn[]
Definition
form_fields.cpp:24
pdfium::form_fields::kT
const char kT[]
Definition
form_fields.cpp:14
pdfium::form_fields::kTx
const char kTx[]
Definition
form_fields.cpp:25
pdfium::form_flags
Definition
form_flags.h:9
pdfium::form_flags::kButtonPushbutton
constexpr uint32_t kButtonPushbutton
Definition
form_flags.h:21
pdfium::form_flags::kChoiceCombo
constexpr uint32_t kChoiceCombo
Definition
form_flags.h:36
pdfium
Definition
annotation_common.cpp:7
std
Definition
qfloat16.h:493
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfdoc
cpdf_annotlist.h
Generated on Thu Nov 14 2024 00:57:08 for Qt by
1.12.0