search/mag_sel search/close
DocumentPartSavingArgs.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 { namespace RW { namespace Html { namespace Writer { class HtmlCoreWriter; } } } } }
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 
162 class ASPOSE_WORDS_SHARED_CLASS DocumentPartSavingArgs : public System::Object
163 {
165  typedef System::Object BaseType;
166 
167  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
168  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
169 
170  friend class Aspose::Words::RW::Html::Writer::HtmlCoreWriter;
171 
172 public:
173 
302 
444  ASPOSE_WORDS_SHARED_API System::String get_DocumentPartFileName() const;
445 
447  ASPOSE_WORDS_SHARED_API void set_DocumentPartFileName(System::String value);
448 
585  ASPOSE_WORDS_SHARED_API bool get_KeepDocumentPartStreamOpen() const;
586 
588  ASPOSE_WORDS_SHARED_API void set_KeepDocumentPartStreamOpen(bool value);
589 
732 
735 
736 protected:
737 
738  bool get_HasUserStream();
739 
741 
742  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(DocumentPartSavingArgs, CODEPORTING_ARGS(System::SharedPtr<Aspose::Words::Document> document, System::String fileName));
744 
745 private:
746 
747  System::SharedPtr<System::IO::Stream> mDocumentPartStream;
749  System::String mDocumentPartFileName;
750  bool mKeepDocumentPartStreamOpen;
751 
752 };
753 
754 }
755 }
756 }