search/mag_sel search/close
FieldAsk.h
1 // Copyright 2001-2021 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/string.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/Fields/FieldSwitchType.h>
15 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
16 #include <Aspose.Words.Cpp/Fields/Field.h>
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace Aspose { namespace Words { namespace Fields { class FieldUpdateAction; } } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Fields {
26 
28 class ASPOSE_WORDS_SHARED_CLASS FieldAsk : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
29 {
30  typedef FieldAsk ThisType;
32  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
33 
34  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
35  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
36 
37 public:
38 
40  ASPOSE_WORDS_SHARED_API System::String get_BookmarkName();
41 
43  ASPOSE_WORDS_SHARED_API void set_BookmarkName(System::String value);
44 
46  ASPOSE_WORDS_SHARED_API System::String get_PromptText();
47 
49  ASPOSE_WORDS_SHARED_API void set_PromptText(System::String value);
50 
52  ASPOSE_WORDS_SHARED_API System::String get_DefaultResponse();
53 
55  ASPOSE_WORDS_SHARED_API void set_DefaultResponse(System::String value);
56 
58  ASPOSE_WORDS_SHARED_API bool get_PromptOnceOnMailMerge();
59 
61  ASPOSE_WORDS_SHARED_API void set_PromptOnceOnMailMerge(bool value);
62 
63  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
64 
65 protected:
66 
67  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Fields::FieldUpdateAction> UpdateCore() override;
68 
69  virtual ASPOSE_WORDS_SHARED_API ~FieldAsk();
70 
71 private:
72 
73  static const int32_t BookmarkNameArgumentIndex;
74 
75 };
76 
77 }
78 }
79 }