search/mag_sel search/close
FieldAutoNumLgl.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 { namespace Words { namespace Fields { class FieldNumListLabelUpdater; } } }
19 namespace Aspose { namespace Words { class NodeRange; } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Fields {
26 
106 class ASPOSE_WORDS_SHARED_CLASS FieldAutoNumLgl : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
107 {
108  typedef FieldAutoNumLgl ThisType;
110  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
111 
112  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
113  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
114 
115  friend class Aspose::Words::Fields::FieldNumListLabelUpdater;
116 
117 public:
118 
198  ASPOSE_WORDS_SHARED_API bool get_RemoveTrailingPeriod();
199 
201  ASPOSE_WORDS_SHARED_API void set_RemoveTrailingPeriod(bool value);
202 
282  ASPOSE_WORDS_SHARED_API System::String get_SeparatorCharacter();
283 
285  ASPOSE_WORDS_SHARED_API void set_SeparatorCharacter(System::String value);
286 
287  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
288 
289 protected:
290 
291  char16_t get_SeparatorCharacterCore();
292 
293  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::NodeRange> GetFakeResult() override;
294 
295  virtual ASPOSE_WORDS_SHARED_API ~FieldAutoNumLgl();
296 
297 private:
298 
299  static const System::String& RemoveTrailingPeriodSwitch();
300  static const System::String& SeparatorCharacterSwitch();
301 
302 };
303 
304 }
305 }
306 }