Loading...
Searching...
No Matches
ComboBoxWidget.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_CPPPDFComboBoxWidget
6#define PDFTRON_H_CPPPDFComboBoxWidget
7
8#include <PDF/Annots/Widget.h>
9
10 namespace pdftron {
11 namespace PDF {
12 namespace Annots {
13
17 class ComboBoxWidget : public Widget
18{
19 public:
29 ComboBoxWidget(SDF::Obj d = 0);
30
40 ComboBoxWidget(const Annot& annot);
41
51 static ComboBoxWidget Create(PDFDoc& doc, const Rect& pos, const UString& field_name = "");
52
62 static ComboBoxWidget 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 std::vector<std::string> GetOptions();
85
91 void ReplaceOptions(const std::vector<std::string>& new_opts);
92#else
98 void AddOptions(const std::vector<UString>& opts);
104 std::vector<UString> GetOptions();
105
111 void ReplaceOptions(const std::vector<UString>& new_opts);
112#endif
113
119 void SetSelectedOption(const UString& value);
120
126 UString GetSelectedOption();
127
133 void RemoveOption(const UString& value);
134};
135
136 }; //namespace Annots
137 }; //namespace PDF
138}; //namespace pdftron
139
140#include <Impl/ComboBoxWidget.inl>
141
142#endif // PDFTRON_H_CPPPDFComboBoxWidget
Widget.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annots::ComboBoxWidget::ComboBoxWidget
ComboBoxWidget(SDF::Obj d=0)
pdftron::PDF::Annots::ComboBoxWidget::SetSelectedOption
void SetSelectedOption(const UString &value)
pdftron::PDF::Annots::ComboBoxWidget::ComboBoxWidget
ComboBoxWidget(const Annot &annot)
pdftron::PDF::Annots::ComboBoxWidget::AddOption
void AddOption(const UString &value)
pdftron::PDF::Annots::ComboBoxWidget::GetOptions
std::vector< UString > GetOptions()
pdftron::PDF::Annots::ComboBoxWidget::ReplaceOptions
void ReplaceOptions(const std::vector< UString > &new_opts)
pdftron::PDF::Annots::ComboBoxWidget::Create
static ComboBoxWidget Create(PDFDoc &doc, const Rect &pos, const Field &field)
pdftron::PDF::Annots::ComboBoxWidget::Create
static ComboBoxWidget Create(PDFDoc &doc, const Rect &pos, const UString &field_name="")
pdftron::PDF::Annots::ComboBoxWidget::GetSelectedOption
UString GetSelectedOption()
pdftron::PDF::Annots::ComboBoxWidget::RemoveOption
void RemoveOption(const UString &value)
pdftron::PDF::Annots::ComboBoxWidget::AddOptions
void AddOptions(const std::vector< UString > &opts)
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