search/mag_sel search/close
FieldDatabase.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 
13 #include <Aspose.Words.Cpp/Fields/FieldSwitchType.h>
14 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
15 #include <Aspose.Words.Cpp/Fields/Field.h>
16 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
17 
18 namespace Aspose {
19 
20 namespace Words {
21 
22 namespace Fields {
23 
25 class ASPOSE_WORDS_SHARED_CLASS FieldDatabase : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
26 {
27  typedef FieldDatabase ThisType;
29  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
30 
31  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
32  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
33 
34 public:
35 
37  ASPOSE_WORDS_SHARED_API System::String get_FormatAttributes();
38 
40  ASPOSE_WORDS_SHARED_API void set_FormatAttributes(System::String value);
41 
43  ASPOSE_WORDS_SHARED_API System::String get_Connection();
44 
46  ASPOSE_WORDS_SHARED_API void set_Connection(System::String value);
47 
49  ASPOSE_WORDS_SHARED_API System::String get_FileName();
50 
52  ASPOSE_WORDS_SHARED_API void set_FileName(System::String value);
53 
55  ASPOSE_WORDS_SHARED_API System::String get_FirstRecord();
56 
58  ASPOSE_WORDS_SHARED_API void set_FirstRecord(System::String value);
59 
62  ASPOSE_WORDS_SHARED_API bool get_InsertHeadings();
63 
66  ASPOSE_WORDS_SHARED_API void set_InsertHeadings(bool value);
67 
69  ASPOSE_WORDS_SHARED_API System::String get_TableFormat();
70 
72  ASPOSE_WORDS_SHARED_API void set_TableFormat(System::String value);
73 
75  ASPOSE_WORDS_SHARED_API bool get_InsertOnceOnMailMerge();
76 
78  ASPOSE_WORDS_SHARED_API void set_InsertOnceOnMailMerge(bool value);
79 
81  ASPOSE_WORDS_SHARED_API System::String get_Query();
82 
84  ASPOSE_WORDS_SHARED_API void set_Query(System::String value);
85 
87  ASPOSE_WORDS_SHARED_API System::String get_LastRecord();
88 
90  ASPOSE_WORDS_SHARED_API void set_LastRecord(System::String value);
91 
92  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
93 
94 private:
95 
96  static const System::String& FormatAttributesSwitch();
97  static const System::String& ConnectionSwitch();
98  static const System::String& FileNameSwitch();
99  static const System::String& FirstRecordSwitch();
100  static const System::String& InsertHeadingsSwitch();
101  static const System::String& TableFormatSwitch();
102  static const System::String& InsertOnceOnMailMergeSwitch();
103  static const System::String& QuerySwitch();
104  static const System::String& LastRecordSwitch();
105 
106 };
107 
108 }
109 }
110 }