search/mag_sel search/close
LanguagePreferences.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/Loading/EditingLanguage.h>
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace Aspose { namespace Words { namespace Validation { class DocumentPostLoader; } } }
17 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Reader { class DocxStylesReader; } } } } }
18 namespace Aspose { namespace Collections { namespace Generic { template <typename> class HashSetGeneric; } } }
19 namespace Aspose { namespace Words { class DocumentBase; } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Loading {
26 
44 class ASPOSE_WORDS_SHARED_CLASS LanguagePreferences : public System::Object
45 {
47  typedef System::Object BaseType;
48 
49  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
50  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
51 
52  friend class Aspose::Words::Validation::DocumentPostLoader;
53  friend class Aspose::Words::RW::Docx::Reader::DocxStylesReader;
54 
55 public:
56 
76 
79 
97  ASPOSE_WORDS_SHARED_API void AddEditingLanguage(Aspose::Words::Loading::EditingLanguage language);
98 
101 
102  ASPOSE_WORDS_SHARED_API LanguagePreferences();
103 
104 protected:
105 
106  bool get_IsDefaultChineseOrJapanese();
107  static bool get_TestMode();
108  static void set_TestMode(bool value);
109 
111 
112 private:
113 
115  Aspose::Words::Loading::EditingLanguage get_LocaleIdFarEast();
116  Aspose::Words::Loading::EditingLanguage get_LocaleIdFarEastByDefaultLanguage();
117  Aspose::Words::Loading::EditingLanguage get_LocaleIdFarEastByEditingLanguagesCollection();
119  bool get_ContainsChineseSimplified();
120  bool get_ContainsChineseTraditional();
121  bool get_ContainsHebrew();
122  bool get_ContainsArabic();
123  bool get_ContainsJapanese();
124 
126  Aspose::Words::Loading::EditingLanguage mDefaultEditingLanguage;
127 
128  static bool& gTestMode();
129 
130 };
131 
132 }
133 }
134 }