StructureElement.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 // C# preprocessor directive: #if NETCORE && (NET6_0 || NET7_0 || NET8_0)
5 
6 // C# INACTIVE CODE:
7 // using KeyValuePair = Aspose.Pdf.Engine.CommonData.KeyValuePair;
8 
9 // C# preprocessor directive: #endif
10 
11 
12 #include <system/string.h>
13 
14 #include "Aspose.PDF.Cpp/Tagged/LogicalStructure/Element.h"
15 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
16 
17 namespace Aspose
18 {
19 namespace Pdf
20 {
21 namespace Engine
22 {
23 namespace Data
24 {
25 class IPdfName;
26 class IPdfObject;
27 class IPdfPrimitive;
28 } // namespace Data
29 } // namespace Engine
30 namespace LogicalStructure
31 {
32 class AttributeOwnerStandard;
33 class BLSElement;
34 class GroupingElement;
35 class IllustrationElement;
36 class ILSElement;
37 class ListChildElement;
38 class MCRElement;
39 class RubyChildElement;
40 class StructureAttributeCollection;
41 class StructureTypeStandard;
42 class TableChildElement;
43 class TableElement;
44 class WarichuChildElement;
45 } // namespace LogicalStructure
46 namespace Tagged
47 {
48 class TaggedContext;
49 } // namespace Tagged
50 } // namespace Pdf
51 } // namespace Aspose
52 
53 namespace Aspose {
54 
55 namespace Pdf {
56 
57 namespace LogicalStructure {
58 
62 class ASPOSE_PDF_SHARED_CLASS StructureElement : public Aspose::Pdf::LogicalStructure::Element
63 {
64  typedef StructureElement ThisType;
66 
67  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
68  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
69 
80 
81 public:
82 
87  ASPOSE_PDF_SHARED_API System::SharedPtr<AttributeOwnerStandard> get_DefaultAttributeOwner() const;
92  ASPOSE_PDF_SHARED_API System::SharedPtr<StructureAttributeCollection> get_Attributes() const;
97  ASPOSE_PDF_SHARED_API System::SharedPtr<StructureTypeStandard> get_StructureType() const;
102  ASPOSE_PDF_SHARED_API System::String get_ID();
107  ASPOSE_PDF_SHARED_API System::String get_Title();
112  ASPOSE_PDF_SHARED_API void set_Title(System::String value);
117  ASPOSE_PDF_SHARED_API System::String get_Language();
122  ASPOSE_PDF_SHARED_API void set_Language(System::String value);
127  ASPOSE_PDF_SHARED_API System::String get_AlternativeText();
132  ASPOSE_PDF_SHARED_API void set_AlternativeText(System::String value);
137  ASPOSE_PDF_SHARED_API System::String get_ExpansionText();
142  ASPOSE_PDF_SHARED_API void set_ExpansionText(System::String value);
147  ASPOSE_PDF_SHARED_API System::String get_ActualText();
152  ASPOSE_PDF_SHARED_API void set_ActualText(System::String value);
153 
158  ASPOSE_PDF_SHARED_API void ChangeParentElement(System::SharedPtr<StructureElement> newParentElement);
162  ASPOSE_PDF_SHARED_API void GenerateId();
167  ASPOSE_PDF_SHARED_API void SetId(System::String id);
171  ASPOSE_PDF_SHARED_API void ClearId();
176  ASPOSE_PDF_SHARED_API void SetTag(System::String newTag);
181  ASPOSE_PDF_SHARED_API System::String ToString() const override;
182 
183 protected:
184 
189 
191 
192  ASPOSE_PDF_SHARED_API void SetParentElement(System::SharedPtr<Element> parentElement) override;
193  ASPOSE_PDF_SHARED_API bool CanBeAppended(System::SharedPtr<Element> element) override;
194 
195  virtual ASPOSE_PDF_SHARED_API ~StructureElement();
196 
197 private:
198 
201  System::SharedPtr<AttributeOwnerStandard> _defaultAttributeOwner;
202 
203  System::String ToString_NonConst();
204 
205 };
206 
207 } // namespace LogicalStructure
208 } // namespace Pdf
209 } // namespace Aspose
210 
211 
Represents a base class for children elements of the Table in logical structure.
Definition: BLSTableElement.h:284
Represents a base class for illustration structure elements in logical structure. ...
Definition: IllustrationElement.h:54
Represents Table structure element in logical structure.
Definition: BLSTableElement.h:69
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
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 children elements of the Warichu in logical structure.
Definition: ILSElement.h:481
Represents a base class for structure elements in logical structure.
Definition: StructureElement.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents a base class for grouping structure elements in logical structure.
Definition: GroupingElement.h:63
ASPOSE_PDF_SHARED_API bool CanBeAppended(System::SharedPtr< Element > element) override
virtual ASPOSE_PDF_SHARED_API void SetParentElement(System::SharedPtr< Element > parentElement)
Represents marked-content reference object in logical structure.
Definition: MCRElement.h:63
Definition: AFRelationship.h:4
Represents a base class for block-level structure elements in logical structure.
Definition: BLSElement.h:63
Represents a base class for inline-level structure elements in logical structure. ...
Definition: ILSElement.h:97
Represents a base class for element in logical structure.
Definition: Element.h:92
Represents a base class for children elements of the Ruby in logical structure.
Definition: ILSElement.h:460
ASPOSE_PDF_SHARED_API System::String ToString() const override
Returns a string that represents the current object.
Whole PDF file will be submitted.
Represents a base class for children elements of the List in logical structure.
Definition: BLSElement.h:198