@@ -204,16 +204,33 @@ class LocaleBase
204204 virtual void ADDIN_API SetLocale (const WCHAR_T* loc) = 0;
205205};
206206
207+ // /////////////////////////////////////////////////////////////////////
208+ // / class UserLanguageBase- интерфейс изменения языка компоненты
209+ /* *
210+ * Этот интерфейс предназначен для изменения локализации компоненты
211+ */
212+ class UserLanguageBase
213+ {
214+ public:
215+ virtual ~UserLanguageBase () {}
216+ // / Изменение локали компоненты
217+ /* *
218+ * @param const char16_t* lang - устанавливаемый язык (ru, etc...)
219+ */
220+ virtual void ADDIN_API SetUserInterfaceLanguageCode (const WCHAR_T* lang) = 0;
221+ };
222+
207223// /////////////////////////////////////////////////////////////////////////
208224/* *
209225 * The given interface is generalized, for its obligatory inheritance
210226 * in implementing components.
211227 */
212228// / Base interface describing object as a set of properties and methods.
213229class IComponentBase :
214- public IInitDoneBase,
215- public ILanguageExtenderBase,
216- public LocaleBase
230+ public IInitDoneBase,
231+ public ILanguageExtenderBase,
232+ public LocaleBase,
233+ public UserLanguageBase
217234{
218235public:
219236 virtual ~IComponentBase (){}
@@ -223,7 +240,16 @@ enum AppCapabilities
223240{
224241 eAppCapabilitiesInvalid = -1 ,
225242 eAppCapabilities1 = 1 ,
226- eAppCapabilitiesLast = eAppCapabilities1,
243+ eAppCapabilities2 = 2 ,
244+ eAppCapabilities3 = 3 ,
245+ eAppCapabilitiesLast = eAppCapabilities3,
246+ };
247+
248+ enum AttachType
249+ {
250+ eCanAttachNotIsolated = 1 ,
251+ eCanAttachIsolated,
252+ eCanAttachAny,
227253};
228254
229255// / Announcements of exported functions
@@ -234,10 +260,12 @@ extern "C" long GetClassObject(const WCHAR_T*, IComponentBase** pIntf);
234260extern " C" long DestroyObject (IComponentBase** pIntf);
235261extern " C" const WCHAR_T* GetClassNames ();
236262extern " C" AppCapabilities SetPlatformCapabilities (const AppCapabilities capabilities);
263+ extern " C" AttachType GetAttachType ();
237264
238265typedef long (*GetClassObjectPtr)(const WCHAR_T* wsName, IComponentBase** pIntf);
239266typedef long (*DestroyObjectPtr)(IComponentBase** pIntf);
240267typedef const WCHAR_T* (*GetClassNamesPtr)();
241268typedef AppCapabilities (*SetPlatformCapabilitiesPtr)(const AppCapabilities capabilities);
269+ typedef AttachType (*GetAttachTypePtr)();
242270
243271#endif // __COMPONENT_BASE_H__
0 commit comments