All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RadioButtonGroup.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFRadioButtonGroup
6 #define PDFTRON_H_CPPPDFRadioButtonGroup
7 
8 #include <PDF/PDFDoc.h>
10 
11 namespace pdftron {
12  namespace PDF {
13  namespace Annots {
14 
20 {
21 public:
31  RadioButtonGroup(const Field& field);
32 
40  static RadioButtonGroup Create(PDFDoc& doc, const UString& field_name = "");
41 
51  RadioButtonWidget Add(const Rect& pos, const char* onstate = "");
52 
59 
66 
71  Field GetField() const;
72 
77  void AddGroupButtonsToPage(Page page);
78 
79  RadioButtonGroup(const RadioButtonGroup& group);
81  RadioButtonGroup(TRN_RadioButtonGroup impl);
83 private:
84  TRN_RadioButtonGroup mp_group;
85 };
86  } //namespace Annots
87  } //namespace PDF
88 } //namespace pdftron
89 
90 
91 #include <Impl/RadioButtonGroup.inl>
92 
93 #endif // PDFTRON_H_CPPPDFRadioButtonGroup
static RadioButtonGroup Create(PDFDoc &doc, const UString &field_name="")
RadioButtonWidget GetButton(UInt32 index)
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
RadioButtonGroup & operator=(const RadioButtonGroup &c)
RadioButtonWidget Add(const Rect &pos, const char *onstate="")