search/mag_sel search/close
OleControl.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 Drawing { namespace Ole { namespace Core { class HtmlOleControl; } } } } }
16 namespace Aspose { namespace Words { namespace Drawing { namespace Ole { class OleControlFactory; } } } }
17 namespace Aspose { namespace Words { namespace RW { namespace MarkupLanguage { namespace Writer { class MarkupLanguageShapeWriter; } } } } }
18 namespace Aspose { namespace Ss { class MemoryStorage; } }
19 
20 namespace Aspose {
21 
22 namespace Words {
23 
24 namespace Drawing {
25 
26 namespace Ole {
27 
51 class ASPOSE_WORDS_SHARED_CLASS OleControl : public System::Object
52 {
53  typedef OleControl ThisType;
54  typedef System::Object BaseType;
55 
56  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
57  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
58 
59  friend class Aspose::Words::Drawing::Ole::Core::HtmlOleControl;
60  friend class Aspose::Words::Drawing::Ole::OleControlFactory;
61  friend class Aspose::Words::RW::MarkupLanguage::Writer::MarkupLanguageShapeWriter;
62 
63 public:
64 
88  virtual ASPOSE_WORDS_SHARED_API bool get_IsForms2OleControl();
89 
113  ASPOSE_WORDS_SHARED_API System::String get_Name() const;
114 
115 protected:
116 
117  virtual ASPOSE_WORDS_SHARED_API bool get_IsHtmlOleControl();
118 
119  ASPOSE_WORDS_SHARED_API OleControl();
120 
121  ASPOSE_WORDS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OleControl, CODEPORTING_ARGS());
122 
123  ASPOSE_WORDS_SHARED_API OleControl(System::String name);
124 
125  ASPOSE_WORDS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OleControl, CODEPORTING_ARGS(System::String name));
126 
128 
129  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OleControl, CODEPORTING_ARGS(System::SharedPtr<Aspose::Ss::MemoryStorage> storage));
130  static bool IsOleControl(System::SharedPtr<Aspose::Ss::MemoryStorage> storage);
131 
132 private:
133 
134  System::String mName;
135 
136 };
137 
138 }
139 }
140 }
141 }