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_aaction.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_AACTION_H_
8
#
define
CORE_FPDFDOC_CPDF_AACTION_H_
9
10
#
include
"core/fpdfapi/parser/cpdf_dictionary.h"
11
#
include
"core/fpdfdoc/cpdf_action.h"
12
#
include
"core/fxcrt/retain_ptr.h"
13
14
class
CPDF_AAction
{
15
public
:
16
enum
AActionType
{
17
kCursorEnter
= 0,
18
kCursorExit
,
19
kButtonDown
,
20
kButtonUp
,
21
kGetFocus
,
22
kLoseFocus
,
23
kPageOpen
,
24
kPageClose
,
25
kPageVisible
,
26
kPageInvisible
,
27
kOpenPage
,
28
kClosePage
,
29
kKeyStroke
,
30
kFormat
,
31
kValidate
,
32
kCalculate
,
33
kCloseDocument
,
34
kSaveDocument
,
35
kDocumentSaved
,
36
kPrintDocument
,
37
kDocumentPrinted
,
38
kDocumentOpen
,
39
kNumberOfActions
// Must be last.
40
};
41
42
explicit
CPDF_AAction
(
RetainPtr
<
const
CPDF_Dictionary> pDict);
43
CPDF_AAction
(
const
CPDF_AAction
& that);
44
~
CPDF_AAction
();
45
46
bool
ActionExist
(
AActionType
eType)
const
;
47
CPDF_Action
GetAction
(
AActionType
eType)
const
;
48
bool
HasDict
()
const
{
return
!!m_pDict; }
49
50
static
bool
IsUserInput
(
AActionType
type);
51
52
private
:
53
RetainPtr
<
const
CPDF_Dictionary>
const
m_pDict;
54
};
55
56
#
endif
// CORE_FPDFDOC_CPDF_AACTION_H_
CPDF_AAction
Definition
cpdf_aaction.h:14
CPDF_AAction::ActionExist
bool ActionExist(AActionType eType) const
Definition
cpdf_aaction.cpp:54
CPDF_AAction::AActionType
AActionType
Definition
cpdf_aaction.h:16
CPDF_AAction::kDocumentPrinted
@ kDocumentPrinted
Definition
cpdf_aaction.h:37
CPDF_AAction::kButtonDown
@ kButtonDown
Definition
cpdf_aaction.h:19
CPDF_AAction::kCloseDocument
@ kCloseDocument
Definition
cpdf_aaction.h:33
CPDF_AAction::kKeyStroke
@ kKeyStroke
Definition
cpdf_aaction.h:29
CPDF_AAction::kClosePage
@ kClosePage
Definition
cpdf_aaction.h:28
CPDF_AAction::kNumberOfActions
@ kNumberOfActions
Definition
cpdf_aaction.h:39
CPDF_AAction::kOpenPage
@ kOpenPage
Definition
cpdf_aaction.h:27
CPDF_AAction::kButtonUp
@ kButtonUp
Definition
cpdf_aaction.h:20
CPDF_AAction::kFormat
@ kFormat
Definition
cpdf_aaction.h:30
CPDF_AAction::kCursorExit
@ kCursorExit
Definition
cpdf_aaction.h:18
CPDF_AAction::kPrintDocument
@ kPrintDocument
Definition
cpdf_aaction.h:36
CPDF_AAction::kCalculate
@ kCalculate
Definition
cpdf_aaction.h:32
CPDF_AAction::kValidate
@ kValidate
Definition
cpdf_aaction.h:31
CPDF_AAction::kPageOpen
@ kPageOpen
Definition
cpdf_aaction.h:23
CPDF_AAction::kDocumentOpen
@ kDocumentOpen
Definition
cpdf_aaction.h:38
CPDF_AAction::kCursorEnter
@ kCursorEnter
Definition
cpdf_aaction.h:17
CPDF_AAction::kDocumentSaved
@ kDocumentSaved
Definition
cpdf_aaction.h:35
CPDF_AAction::kPageClose
@ kPageClose
Definition
cpdf_aaction.h:24
CPDF_AAction::kPageInvisible
@ kPageInvisible
Definition
cpdf_aaction.h:26
CPDF_AAction::kPageVisible
@ kPageVisible
Definition
cpdf_aaction.h:25
CPDF_AAction::kLoseFocus
@ kLoseFocus
Definition
cpdf_aaction.h:22
CPDF_AAction::kGetFocus
@ kGetFocus
Definition
cpdf_aaction.h:21
CPDF_AAction::kSaveDocument
@ kSaveDocument
Definition
cpdf_aaction.h:34
CPDF_AAction::HasDict
bool HasDict() const
Definition
cpdf_aaction.h:48
CPDF_AAction::CPDF_AAction
CPDF_AAction(const CPDF_AAction &that)
CPDF_AAction::CPDF_AAction
CPDF_AAction(RetainPtr< const CPDF_Dictionary > pDict)
Definition
cpdf_aaction.cpp:47
CPDF_AAction::GetAction
CPDF_Action GetAction(AActionType eType) const
Definition
cpdf_aaction.cpp:58
CPDF_AAction::~CPDF_AAction
~CPDF_AAction()
CPDF_AAction::IsUserInput
static bool IsUserInput(AActionType type)
Definition
cpdf_aaction.cpp:63
CPDF_Action
Definition
cpdf_action.h:21
fxcrt::RetainPtr
Definition
retain_ptr.h:29
std
Definition
qfloat16.h:492
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fpdfdoc
cpdf_aaction.h
Generated on Sat Sep 21 2024 00:53:53 for Qt by
1.12.0