BookmarksOutlineLevelCollection.h
1 // Copyright 2001-2022 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 <system/collections/sorted_list.h>
13 #include <system/collections/keyvalue_pair.h>
14 #include <system/collections/ienumerable.h>
15 #include <cstdint>
16 
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace System
20 {
21 namespace Collections
22 {
23 namespace Generic
24 {
25 template <typename> class IEnumerator;
26 }
27 }
28 }
29 
30 namespace Aspose {
31 
32 namespace Words {
33 
34 namespace Saving {
35 
96 class ASPOSE_WORDS_SHARED_CLASS BookmarksOutlineLevelCollection : public System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String, int32_t>>
97 {
100 
101  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
102  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
103 
104 public:
105 
107 
109 
111 
113 
115 
116 public:
117 
173  ASPOSE_WORDS_SHARED_API int32_t get_Count();
174 
234  ASPOSE_WORDS_SHARED_API int32_t idx_get(const System::String& name);
235 
295  ASPOSE_WORDS_SHARED_API void idx_set(const System::String& name, int32_t value);
296 
356  ASPOSE_WORDS_SHARED_API int32_t idx_get(int32_t index);
357 
417  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, int32_t value);
418 
477  ASPOSE_WORDS_SHARED_API void Add(const System::String& name, int32_t outlineLevel);
478 
538  ASPOSE_WORDS_SHARED_API bool Contains(const System::String& name);
539 
599  ASPOSE_WORDS_SHARED_API int32_t IndexOfKey(const System::String& name);
600 
658  ASPOSE_WORDS_SHARED_API void Remove(const System::String& name);
659 
717  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
718 
774  ASPOSE_WORDS_SHARED_API void Clear();
776 
777  ASPOSE_WORDS_SHARED_API BookmarksOutlineLevelCollection();
778 
779  ASPOSE_WORDS_SHARED_API iterator begin() noexcept;
780 
781  ASPOSE_WORDS_SHARED_API iterator end() noexcept;
782 
783  ASPOSE_WORDS_SHARED_API const_iterator begin() const noexcept;
784 
785  ASPOSE_WORDS_SHARED_API const_iterator end() const noexcept;
786 
787  ASPOSE_WORDS_SHARED_API const_iterator cbegin() const noexcept;
788 
789  ASPOSE_WORDS_SHARED_API const_iterator cend() const noexcept;
790 
791  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeBeginIterator() override;
792 
793  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeEndIterator() override;
794 
795  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeBeginConstIterator() const override;
796 
797  ASPOSE_WORDS_SHARED_API virtualized_iterator* virtualizeEndConstIterator() const override;
798 
799 protected:
800 
801  virtual ASPOSE_WORDS_SHARED_API ~BookmarksOutlineLevelCollection();
802 
803 private:
804 
805  System::SharedPtr<System::Object> mField0;
806 
807 };
808 
809 }
810 }
811 }