Style.h
1
2// 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/object_ext.h>
12#include <system/enum_helpers.h>
13#include <system/array.h>
14#include <cstdint>
15
16#include <Aspose.Words.Cpp/StyleType.h>
17#include <Aspose.Words.Cpp/StyleIdentifier.h>
18#include <Aspose.Words.Cpp/IRunAttrSource.h>
19#include <Aspose.Words.Cpp/IParaAttrSource.h>
20#include <Aspose.Words.Cpp/aspose_words_api_defs.h>
21
22namespace Aspose
23{
24
25namespace Words
26{
27
28class DocumentBase;
29
30class Font;
31
32namespace Lists
33{
34class List;
35
36class ListFormat;
37
38}
39
40class ParagraphFormat;
41
42enum class RevisionsView;
43
44class StyleCollection;
45
46}
47}
48
49namespace Aspose {
50
51namespace Words {
52
113class ASPOSE_WORDS_SHARED_CLASS Style : public Aspose::Words::IParaAttrSource, public Aspose::Words::IRunAttrSource
114{
115 typedef Style ThisType;
116 typedef Aspose::Words::IParaAttrSource BaseType;
117 typedef Aspose::Words::IRunAttrSource BaseType1;
118
119 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
120 ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
121
122public:
124
125public:
126
180 ASPOSE_WORDS_SHARED_API System::String get_Name() const;
181
183 ASPOSE_WORDS_SHARED_API void set_Name(const System::String& value);
184
215
245
271 ASPOSE_WORDS_SHARED_API bool get_IsHeading();
272
298 ASPOSE_WORDS_SHARED_API Aspose::Words::StyleType get_Type() const;
299
326
355 ASPOSE_WORDS_SHARED_API System::String get_LinkedStyleName();
356
385 ASPOSE_WORDS_SHARED_API System::String get_BaseStyleName();
386
388 ASPOSE_WORDS_SHARED_API void set_BaseStyleName(const System::String& value);
389
417
419 ASPOSE_WORDS_SHARED_API void set_NextParagraphStyleName(const System::String& value);
420
445 ASPOSE_WORDS_SHARED_API bool get_BuiltIn();
446
510
543
606
640
666 ASPOSE_WORDS_SHARED_API bool get_IsQuickStyle() const;
667
669 ASPOSE_WORDS_SHARED_API void set_IsQuickStyle(bool value);
670
697
738 ASPOSE_WORDS_SHARED_API void Remove();
739
771 ASPOSE_WORDS_SHARED_API bool Equals(const System::SharedPtr<Aspose::Words::Style>& style);
772
773protected:
774
775 __TypeStub<1,1,1,1>::type mField0;
776 __TypeStub<1,1,1,1>::type mField1;
777 __TypeStub<1,1,1,1>::type mField2;
778
779 ASPOSE_WORDS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Style, CODEPORTING_ARGS(Aspose::Words::StyleType styleType));
780
781 virtual ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Style> Clone();
782
783 virtual ASPOSE_WORDS_SHARED_API bool HasFormatting();
784
785 virtual ASPOSE_WORDS_SHARED_API ~Style();
786
787private:
788
789 __TypeStub<4,4,4,4>::type mField3;
790 __TypeStub<4,4,4,4>::type mField4;
791 __TypeStub<4,4,4,4>::type mField5;
792 __TypeStub<4,4,4,4>::type mField6;
793 __TypeStub<4,4,4,4>::type mField7;
794 __TypeStub<4,4,4,4>::type mField8;
795 __TypeStub<1,1,1,1>::type mField9;
796 __TypeStub<1,1,1,1>::type mField10;
797 __TypeStub<1,1,1,1>::type mField11;
798 __TypeStub<1,1,1,1>::type mField12;
799 __TypeStub<1,1,1,1>::type mField13;
800 __TypeStub<1,1,1,1>::type mField14;
801 __TypeStub<4,4,4,4>::type mField15;
802 __TypeStub<1,1,1,1>::type mField16;
803 __TypeStub<1,1,1,1>::type mField17;
804 __TypeStub<1,1,1,1>::type mField18;
805 __TypeStub<1,1,1,1>::type mField19;
806 __TypeStub<4,4,4,4>::type mField20;
807 __TypeStub<4,4,4,4>::type mField21;
808 System::String mField22;
816
817 System::SharedPtr<System::Object> GetDirectParaAttr(int32_t ) override;
818 System::SharedPtr<System::Object> GetDirectParaAttr(int32_t , Aspose::Words::RevisionsView ) override;
819 System::SharedPtr<System::Object> FetchParaAttr(int32_t ) override;
820 System::SharedPtr<System::Object> FetchInheritedParaAttr(int32_t ) override;
821 void SetParaAttr(int32_t , System::SharedPtr<System::Object> ) override;
822 void RemoveParaAttr(int32_t ) override;
823 void ClearParaAttrs() override;
824 System::SharedPtr<System::Object> GetDirectRunAttr(int32_t ) override;
825 System::SharedPtr<System::Object> FetchInheritedRunAttr(int32_t ) override;
826 void SetRunAttr(int32_t , System::SharedPtr<System::Object> ) override;
827 void RemoveRunAttr(int32_t ) override;
828 void ClearRunAttrs() override;
829
830 virtual ASPOSE_WORDS_SHARED_API ThisType* CppMemberwiseClone() const;
831
832protected:
833
834};
835
836}
837}