search/mag_sel search/close
TableSubstitutionRule.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 
13 #include <Aspose.Words.Cpp/Fonts/FontSubstitutionRule.h>
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace Aspose { namespace Words { namespace Fonts { class FontSubstitutionSettings; } } }
17 namespace Aspose { namespace Fonts { class TableSubstitutionRuleCore; } }
18 namespace System { namespace Collections { namespace Generic { template <typename> class IEnumerable; } } }
19 namespace System { namespace IO { class Stream; } }
20 namespace Aspose { namespace Fonts { namespace TrueType { class TTFont; } } }
21 namespace System { namespace Drawing { enum class FontStyle; } }
22 namespace Aspose { namespace Words { namespace Fonts { class FontInfo; } } }
23 namespace Aspose { namespace Fonts { class ExternalFontCache; } }
24 
25 namespace Aspose {
26 
27 namespace Words {
28 
29 namespace Fonts {
30 
65 class ASPOSE_WORDS_SHARED_CLASS TableSubstitutionRule : public Aspose::Words::Fonts::FontSubstitutionRule
66 {
69 
70  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
71  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
72 
74 
75 public:
76 
136  ASPOSE_WORDS_SHARED_API void Load(System::String fileName);
137 
197  ASPOSE_WORDS_SHARED_API void Load(System::SharedPtr<System::IO::Stream> stream);
198 
233  ASPOSE_WORDS_SHARED_API void LoadWindowsSettings();
234 
269  ASPOSE_WORDS_SHARED_API void LoadLinuxSettings();
270 
272  ASPOSE_WORDS_SHARED_API void LoadAndroidSettings();
273 
310  ASPOSE_WORDS_SHARED_API void Save(System::String fileName);
311 
348  ASPOSE_WORDS_SHARED_API void Save(System::SharedPtr<System::IO::Stream> outputStream);
349 
463 
561  ASPOSE_WORDS_SHARED_API void SetSubstitutes(System::String originalFontName, const System::ArrayPtr<System::String>& substituteFontNames);
562 
674  ASPOSE_WORDS_SHARED_API void AddSubstitutes(System::String originalFontName, const System::ArrayPtr<System::String>& substituteFontNames);
675 
676 protected:
677 
679 
680  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(TableSubstitutionRule, CODEPORTING_ARGS(System::SharedPtr<System::Object> syncRoot));
682 
683 private:
684 
686 
687 };
688 
689 }
690 }
691 }