search/mag_sel search/close
CustomPart.h
1 // Copyright 2001-2021 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/array.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Reader { class DocxCustomPartReader; } } } } }
17 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Writer { class DocxWriter; } } } } }
18 
19 namespace Aspose {
20 
21 namespace Words {
22 
23 namespace Markup {
24 
85 class ASPOSE_WORDS_SHARED_CLASS CustomPart : public System::Object
86 {
87  typedef CustomPart ThisType;
88  typedef System::Object BaseType;
89 
90  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
91  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
92 
93  friend class Aspose::Words::RW::Docx::Reader::DocxCustomPartReader;
94  friend class Aspose::Words::RW::Docx::Writer::DocxWriter;
95 
96 public:
97 
148  ASPOSE_WORDS_SHARED_API System::String get_Name() const;
149 
151  ASPOSE_WORDS_SHARED_API void set_Name(System::String value);
152 
201  ASPOSE_WORDS_SHARED_API System::String get_RelationshipType() const;
202 
204  ASPOSE_WORDS_SHARED_API void set_RelationshipType(System::String value);
205 
253  ASPOSE_WORDS_SHARED_API bool get_IsExternal() const;
254 
256  ASPOSE_WORDS_SHARED_API void set_IsExternal(bool value);
257 
305  ASPOSE_WORDS_SHARED_API System::String get_ContentType() const;
306 
308  ASPOSE_WORDS_SHARED_API void set_ContentType(System::String value);
309 
357  ASPOSE_WORDS_SHARED_API System::ArrayPtr<uint8_t> get_Data() const;
358 
360  ASPOSE_WORDS_SHARED_API void set_Data(System::ArrayPtr<uint8_t> value);
361 
407 
408  ASPOSE_WORDS_SHARED_API CustomPart();
409 
410 protected:
411 
412  System::String get_ParentPartName() const;
413  void set_ParentPartName(System::String value);
414  System::String get_OriginalId() const;
415  void set_OriginalId(System::String value);
416 
417 private:
418 
419  System::String mOriginalId;
420  System::String mName;
421  System::String mRelationshipType;
422  bool mIsExternal;
423  System::String mContentType;
425  System::String mParentPartName;
426 
427 };
428 
429 }
430 }
431 }