search/mag_sel search/close
ResourceLoadingArgs.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/Loading/ResourceType.h>
15 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
16 
17 namespace Aspose { namespace Words { namespace Drawing { namespace Core { class ImageDataUtil; } } } }
18 namespace Aspose { namespace Words { class Document; } }
19 namespace Aspose { namespace Words { class DocumentBuilder; } }
20 namespace Aspose { namespace Words { namespace RW { namespace HtmlCommon { class HtmlResourceLoader; } } } }
21 
22 namespace Aspose {
23 
24 namespace Words {
25 
26 namespace Loading {
27 
89 class ASPOSE_WORDS_SHARED_CLASS ResourceLoadingArgs : public System::Object
90 {
92  typedef System::Object BaseType;
93 
94  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
95  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
96 
97  friend class Aspose::Words::Drawing::Core::ImageDataUtil;
98  friend class Aspose::Words::Document;
99  friend class Aspose::Words::DocumentBuilder;
100  friend class Aspose::Words::RW::HtmlCommon::HtmlResourceLoader;
101 
102 public:
103 
166 
172  ASPOSE_WORDS_SHARED_API System::String get_Uri() const;
173 
175  ASPOSE_WORDS_SHARED_API void set_Uri(System::String value);
176 
238  ASPOSE_WORDS_SHARED_API System::String get_OriginalUri() const;
239 
303  ASPOSE_WORDS_SHARED_API void SetData(System::ArrayPtr<uint8_t> data);
304 
305 protected:
306 
307  bool get_IsDataEmtpy();
308 
310 
311  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ResourceLoadingArgs, CODEPORTING_ARGS(System::String absoluteUri, System::String originalUri, Aspose::Words::Loading::ResourceType resourceType));
312  System::ArrayPtr<uint8_t> GetData();
313 
314 private:
315 
318  System::String mUri;
319  System::String mOriginalUri;
320 
321 };
322 
323 }
324 }
325 }