CustomXmlPart.h
1 // Copyright 2001-2020 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/shared_ptr.h>
13 #include <system/object.h>
14 #include <system/array.h>
15 #include <cstdint>
16 
17 #include "Aspose.Words.Cpp/aspose_words_api_defs.h"
18 
19 namespace Aspose { namespace Words { namespace Validation { class CustomXmlValidator; } } }
20 namespace Aspose { namespace Words { namespace Markup { class CustomXmlSchemaCollection; } } }
21 
22 namespace Aspose {
23 
24 namespace Words {
25 
26 namespace Markup {
27 
38 {
39  typedef CustomXmlPart ThisType;
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
44 
45  friend class Aspose::Words::Validation::CustomXmlValidator;
46 
47 public:
48 
60  ASPOSE_WORDS_SHARED_API System::String get_Id() const;
61 
63  ASPOSE_WORDS_SHARED_API void set_Id(System::String value);
64 
69 
76  ASPOSE_WORDS_SHARED_API System::ArrayPtr<uint8_t> get_Data() const;
77 
79  ASPOSE_WORDS_SHARED_API void set_Data(System::ArrayPtr<uint8_t> value);
80 
86 
87  ASPOSE_WORDS_SHARED_API CustomXmlPart();
88 
89 protected:
90 
91  bool ValidateCustomXmlData();
92  ASPOSE_WORDS_SHARED_API System::Object::shared_members_type GetSharedMembers() override;
93 
94 private:
95 
96  System::String mId;
99 
100 };
101 
102 }
103 }
104 }
System::Details::SharedMembersType shared_members_type
System::SharedPtr< Aspose::Words::Markup::CustomXmlSchemaCollection > get_Schemas() const
Specifies the set of XML schemas that are associated with this custom XML part.
System::SharedPtr< Aspose::Words::Markup::CustomXmlPart > Clone()
Makes a "deep enough" copy of the object. Does not duplicate the bytes of the Data value.
System::String get_Id() const
Gets or sets the string that identifies this custom XML part within an OOXML document.
@ Words
void set_Id(System::String value)
Setter for Aspose::Words::Markup::CustomXmlPart::get_Id.
void set_Data(System::ArrayPtr< uint8_t > value)
Setter for Aspose::Words::Markup::CustomXmlPart::get_Data.
System::ArrayPtr< uint8_t > get_Data() const
Gets or sets the XML content of this Custom XML Data Storage Part.
CustomXmlPart()
Represents a Custom XML Data Storage Part (custom XML data within a package).
Definition: CustomXmlPart.h:38