StructureAttributeCollection.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object.h>
5 
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Engine
13 {
14 namespace Data
15 {
16 class IPdfPrimitive;
17 } // namespace Data
18 } // namespace Engine
19 namespace LogicalStructure
20 {
21 class AttributeOwnerStandard;
22 class StructureAttributes;
23 class StructureElement;
24 } // namespace LogicalStructure
25 } // namespace Pdf
26 } // namespace Aspose
27 
28 namespace Aspose {
29 
30 namespace Pdf {
31 
32 namespace LogicalStructure {
33 
37 class ASPOSE_PDF_SHARED_CLASS StructureAttributeCollection : public System::Object
38 {
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
44 
46 
47 public:
48 
54  ASPOSE_PDF_SHARED_API System::SharedPtr<StructureAttributes> GetAttributes(System::SharedPtr<AttributeOwnerStandard> ownerStandard);
60  ASPOSE_PDF_SHARED_API System::SharedPtr<StructureAttributes> CreateAttributes(System::SharedPtr<AttributeOwnerStandard> ownerStandard);
61 
62 protected:
63 
64  System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive> get_EngineAttributeCollection() const;
65  void set_EngineAttributeCollection(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive> value);
66 
68 
69  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(StructureAttributeCollection, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive> entityA, System::SharedPtr<StructureElement> structureElement));
70 
72 
73  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(StructureAttributeCollection, CODEPORTING_ARGS(System::SharedPtr<StructureElement> structureElement));
74 
75 private:
76 
77  System::WeakPtr<StructureElement> _structureElement;
79 
80  System::SharedPtr<StructureAttributes> TakeAttributes(System::SharedPtr<AttributeOwnerStandard> ownerStandard, bool createIfNeed = false);
81 
82 };
83 
84 } // namespace LogicalStructure
85 } // namespace Pdf
86 } // namespace Aspose
87 
88 
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Represents a base class for structure elements in logical structure.
Definition: StructureElement.h:71
Represents collection of attributes of structure elements.
Definition: StructureAttributeCollection.h:37
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: TextFragmentState.h:69
Whole PDF file will be submitted.