search/mag_sel search/close
ResourceSavingArgs.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/string.h>
12 
13 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
14 
15 namespace Aspose { namespace Words { class ResourceSavingCallbackCoreAdapter; } }
16 namespace Aspose { namespace Words { class Document; } }
17 namespace System { namespace IO { class Stream; } }
18 namespace Aspose { namespace Words { namespace Saving { class UserStreamWrapper; } } }
19 
20 namespace Aspose {
21 
22 namespace Words {
23 
24 namespace Saving {
25 
84 class ASPOSE_WORDS_SHARED_CLASS ResourceSavingArgs : public System::Object
85 {
87  typedef System::Object BaseType;
88 
89  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
90  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
91 
92  friend class Aspose::Words::ResourceSavingCallbackCoreAdapter;
93 
94 public:
95 
143 
215  ASPOSE_WORDS_SHARED_API System::String get_ResourceFileName() const;
216 
218  ASPOSE_WORDS_SHARED_API void set_ResourceFileName(System::String value);
219 
276  ASPOSE_WORDS_SHARED_API System::String get_ResourceFileUri() const;
277 
279  ASPOSE_WORDS_SHARED_API void set_ResourceFileUri(System::String value);
280 
367  ASPOSE_WORDS_SHARED_API bool get_KeepResourceStreamOpen() const;
368 
370  ASPOSE_WORDS_SHARED_API void set_KeepResourceStreamOpen(bool value);
371 
464 
466  ASPOSE_WORDS_SHARED_API void set_ResourceStream(System::SharedPtr<System::IO::Stream> value);
467 
468 protected:
469 
470  bool get_HasUserResourceFileUri() const;
471  bool get_HasUserStream();
472 
474 
475  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ResourceSavingArgs, CODEPORTING_ARGS(System::SharedPtr<Aspose::Words::Document> doc, System::String resourceFileName, System::String resourceFileUri));
477 
478 private:
479 
481  System::String mResourceFileName;
482  System::String mResourceFileUri;
483  bool mHasUserResourceFileUri;
484  bool mKeepResourceStreamOpen;
486 
487 };
488 
489 }
490 }
491 }