search/mag_sel search/close
FieldListNum.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 FieldNumListLabelUpdater; } } }
20 namespace Aspose { namespace Words { class NodeRange; } }
21 
22 namespace Aspose {
23 
24 namespace Words {
25 
26 namespace Fields {
27 
95 class ASPOSE_WORDS_SHARED_CLASS FieldListNum : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
96 {
97  typedef FieldListNum ThisType;
99  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
100 
101  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
102  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
103 
104  friend class Aspose::Words::Fields::FieldNumListLabelUpdater;
105 
106 public:
107 
175  ASPOSE_WORDS_SHARED_API System::String get_ListName();
176 
178  ASPOSE_WORDS_SHARED_API void set_ListName(System::String value);
179 
248  ASPOSE_WORDS_SHARED_API bool get_HasListName();
249 
317  ASPOSE_WORDS_SHARED_API System::String get_ListLevel();
318 
320  ASPOSE_WORDS_SHARED_API void set_ListLevel(System::String value);
321 
389  ASPOSE_WORDS_SHARED_API System::String get_StartingNumber();
390 
392  ASPOSE_WORDS_SHARED_API void set_StartingNumber(System::String value);
393 
394  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
395 
396 protected:
397 
398  int32_t get_ListLevelAsInt32();
399  int32_t get_ListLevelCore();
400  int32_t get_StartingNumberAsInt32();
401  int32_t get_StartingNumberCore();
402 
403  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::NodeRange> GetFakeResult() override;
404 
405  virtual ASPOSE_WORDS_SHARED_API ~FieldListNum();
406 
407 private:
408 
409  static const int32_t ListNameArgumentIndex;
410 
411  static const System::String& ListLevelSwitch();
412  static const System::String& StartingNumberSwitch();
413  static int32_t ParseIntSwitchValue(System::String switchValue);
414 
415 };
416 
417 }
418 }
419 }