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
cpwl_combo_box_embeddertest.h
Go to the documentation of this file.
1
// Copyright 2022 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
#
ifndef
FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
6
#
define
FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
7
8
#
include
"public/fpdfview.h"
9
#
include
"testing/embedder_test.h"
10
#
include
"testing/gtest/include/gtest/gtest.h"
11
12
class
CFFL_FormField
;
13
class
CPDFSDK_FormFillEnvironment;
14
class
CPDFSDK_PageView;
15
class
CPDFSDK_Widget;
16
class
CPWL_ComboBox;
17
18
class
CPWLComboBoxEmbedderTest
:
public
EmbedderTest
{
19
protected
:
20
void
SetUp
()
override
;
21
void
TearDown
()
override
;
22
23
void
CreateAndInitializeFormComboboxPDF
();
24
void
FormFillerAndWindowSetup
(CPDFSDK_Widget* pAnnotCombobox);
25
void
TypeTextIntoTextField
(
int
num_chars);
26
FPDF_PAGE
GetPage
()
const
{
return
m_page; }
27
CPWL_ComboBox*
GetCPWLComboBox
()
const
{
return
m_pComboBox; }
28
CFFL_FormField
*
GetCFFLFormField
()
const
{
return
m_pFormField; }
29
CPDFSDK_Widget*
GetCPDFSDKAnnotNormal
()
const
{
return
m_pAnnotNormal; }
30
CPDFSDK_Widget*
GetCPDFSDKAnnotUserEditable
()
const
{
31
return
m_pAnnotEditable;
32
}
33
CPDFSDK_FormFillEnvironment*
GetCPDFSDKFormFillEnv
()
const
{
34
return
m_pFormFillEnv;
35
}
36
CPDFSDK_PageView*
GetPageView
()
const
{
return
m_pPageView; }
37
38
private
:
39
FPDF_PAGE m_page;
40
CPWL_ComboBox* m_pComboBox =
nullptr
;
41
CFFL_FormField
* m_pFormField =
nullptr
;
42
CPDFSDK_Widget* m_pAnnotNormal =
nullptr
;
43
CPDFSDK_Widget* m_pAnnotEditable =
nullptr
;
44
CPDFSDK_FormFillEnvironment* m_pFormFillEnv =
nullptr
;
45
CPDFSDK_PageView* m_pPageView =
nullptr
;
46
};
47
48
#
endif
// FPDFSDK_PWL_CPWL_COMBO_BOX_EMBEDDERTEST_H_
TEST_F
TEST_F(CFFLComboBoxEmbedderTest, GetActionData)
Definition
cffl_combobox_embeddertest.cpp:12
CFFLComboBoxEmbedderTest
Definition
cffl_combobox_embeddertest.cpp:10
CFFL_FormField
Definition
cffl_formfield.h:27
CPDF_AAction
Definition
cpdf_aaction.h:14
CPDF_AAction::kKeyStroke
@ kKeyStroke
Definition
cpdf_aaction.h:29
CPDF_AAction::kValidate
@ kValidate
Definition
cpdf_aaction.h:31
CPDF_AAction::kGetFocus
@ kGetFocus
Definition
cpdf_aaction.h:21
CPWLComboBoxEmbedderTest
Definition
cpwl_combo_box_embeddertest.h:18
CPWLComboBoxEmbedderTest::TypeTextIntoTextField
void TypeTextIntoTextField(int num_chars)
Definition
cpwl_combo_box_embeddertest.cpp:69
CPWLComboBoxEmbedderTest::GetCFFLFormField
CFFL_FormField * GetCFFLFormField() const
Definition
cpwl_combo_box_embeddertest.h:28
CPWLComboBoxEmbedderTest::GetCPDFSDKAnnotUserEditable
CPDFSDK_Widget * GetCPDFSDKAnnotUserEditable() const
Definition
cpwl_combo_box_embeddertest.h:30
CPWLComboBoxEmbedderTest::CreateAndInitializeFormComboboxPDF
void CreateAndInitializeFormComboboxPDF()
Definition
cpwl_combo_box_embeddertest.cpp:28
CPWLComboBoxEmbedderTest::GetCPDFSDKAnnotNormal
CPDFSDK_Widget * GetCPDFSDKAnnotNormal() const
Definition
cpwl_combo_box_embeddertest.h:29
CPWLComboBoxEmbedderTest::TearDown
void TearDown() override
Definition
cpwl_combo_box_embeddertest.cpp:23
CPWLComboBoxEmbedderTest::GetCPDFSDKFormFillEnv
CPDFSDK_FormFillEnvironment * GetCPDFSDKFormFillEnv() const
Definition
cpwl_combo_box_embeddertest.h:33
CPWLComboBoxEmbedderTest::GetPage
FPDF_PAGE GetPage() const
Definition
cpwl_combo_box_embeddertest.h:26
CPWLComboBoxEmbedderTest::SetUp
void SetUp() override
Definition
cpwl_combo_box_embeddertest.cpp:18
CPWLComboBoxEmbedderTest::GetCPWLComboBox
CPWL_ComboBox * GetCPWLComboBox() const
Definition
cpwl_combo_box_embeddertest.h:27
CPWLComboBoxEmbedderTest::FormFillerAndWindowSetup
void FormFillerAndWindowSetup(CPDFSDK_Widget *pAnnotCombobox)
Definition
cpwl_combo_box_embeddertest.cpp:51
CPWLComboBoxEmbedderTest::GetPageView
CPDFSDK_PageView * GetPageView() const
Definition
cpwl_combo_box_embeddertest.h:36
EmbedderTest
Definition
embedder_test.h:40
CFFL_FieldAction
Definition
cffl_fieldaction.h:12
CFFL_FieldAction::nSelStart
int nSelStart
Definition
cffl_fieldaction.h:24
CFFL_FieldAction::nSelEnd
int nSelEnd
Definition
cffl_fieldaction.h:23
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fpdfsdk
pwl
cpwl_combo_box_embeddertest.h
Generated on
for Qt by
1.18.0