Loading...
Searching...
No Matches
ListBoxWidget.h
Go to the documentation of this file.
1
//---------------------------------------------------------------------------------------
2
// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3
// Consult legal.txt regarding legal and license information.
4
//---------------------------------------------------------------------------------------
5
#ifndef PDFTRON_H_CPPPDFListBoxWidget
6
#define PDFTRON_H_CPPPDFListBoxWidget
7
8
#include <
PDF/Annots/Widget.h
>
9
10
namespace
pdftron
{
11
namespace
PDF
{
12
namespace
Annots
{
13
17
class
ListBoxWidget
:
public
Widget
18
{
19
public
:
29
ListBoxWidget
(
SDF::Obj
d = 0);
30
40
ListBoxWidget
(
const
Annot
& annot);
41
51
static
ListBoxWidget
Create
(
PDFDoc
& doc,
const
Rect
& pos,
const
UString
& field_name =
""
);
52
62
static
ListBoxWidget
Create
(
PDFDoc
& doc,
const
Rect
& pos,
const
Field
& field);
63
69
void
AddOption
(
const
UString
& value);
70
71
#ifdef SWIG
77
void
AddOptions
(
const
std::vector<std::string>& opts);
78
84
void
SetSelectedOptions
(
const
std::vector<std::string>& selected_opts);
85
91
std::vector<std::string>
GetSelectedOptions
();
92
98
std::vector<std::string>
GetOptions
();
99
105
void
ReplaceOptions
(
const
std::vector<std::string>& new_opts);
106
#else
112
void
AddOptions
(
const
std::vector<UString>& opts);
113
119
void
SetSelectedOptions
(
const
std::vector<UString>& selected_opts);
120
126
std::vector<UString>
GetSelectedOptions
();
127
133
std::vector<UString>
GetOptions
();
134
140
void
ReplaceOptions
(
const
std::vector<UString>& new_opts);
141
#endif
142
148
void
RemoveOption
(
const
UString
& value);
149
};
150
151
};
//namespace Annots
152
};
//namespace PDF
153
};
//namespace trn
154
155
#include <Impl/ListBoxWidget.inl>
156
157
#endif
//PDFTRON_H_CPPPDFListBoxWidget
Widget.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annots::ListBoxWidget::GetOptions
std::vector< UString > GetOptions()
pdftron::PDF::Annots::ListBoxWidget::Create
static ListBoxWidget Create(PDFDoc &doc, const Rect &pos, const UString &field_name="")
pdftron::PDF::Annots::ListBoxWidget::GetSelectedOptions
std::vector< UString > GetSelectedOptions()
pdftron::PDF::Annots::ListBoxWidget::AddOptions
void AddOptions(const std::vector< UString > &opts)
pdftron::PDF::Annots::ListBoxWidget::SetSelectedOptions
void SetSelectedOptions(const std::vector< UString > &selected_opts)
pdftron::PDF::Annots::ListBoxWidget::ListBoxWidget
ListBoxWidget(SDF::Obj d=0)
pdftron::PDF::Annots::ListBoxWidget::ListBoxWidget
ListBoxWidget(const Annot &annot)
pdftron::PDF::Annots::ListBoxWidget::RemoveOption
void RemoveOption(const UString &value)
pdftron::PDF::Annots::ListBoxWidget::Create
static ListBoxWidget Create(PDFDoc &doc, const Rect &pos, const Field &field)
pdftron::PDF::Annots::ListBoxWidget::ReplaceOptions
void ReplaceOptions(const std::vector< UString > &new_opts)
pdftron::PDF::Annots::ListBoxWidget::AddOption
void AddOption(const UString &value)
pdftron::PDF::Annots::Widget::Widget
Widget(SDF::Obj d=0)
pdftron::PDF::Field
Definition
Field.h:70
pdftron::PDF::PDFDoc
Definition
PDFDoc.h:72
pdftron::PDF::Rect
Definition
Rect.h:29
pdftron::SDF::Obj
Definition
Obj.h:41
pdftron::UString
Definition
UString.h:28
pdftron::PDF::Annots
Definition
Caret.h:12
pdftron::PDF
Definition
Action.h:15
pdftron
Definition
BasicTypes.h:10