From 63762e597a028ab691a744100534f6639365c5b5 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Sat, 27 Nov 2004 12:20:05 +0000 Subject: INTEGRATION: CWS tl04 (1.1.2); FILE ADDED 2004/11/08 11:37:19 tl 1.1.2.2: #118281# ; removed for Solaris compiler 2004/11/08 09:59:27 tl 1.1.2.1: #118281# switch to Proximity linguistic --- linguistic/inc/supplang.hxx | 117 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 linguistic/inc/supplang.hxx (limited to 'linguistic') diff --git a/linguistic/inc/supplang.hxx b/linguistic/inc/supplang.hxx new file mode 100644 index 000000000000..1d59a5699d5d --- /dev/null +++ b/linguistic/inc/supplang.hxx @@ -0,0 +1,117 @@ +/*=========================================================================== + $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/linguistic/inc/supplang.hxx,v 1.2 2004-11-27 13:20:05 kz Exp $ + + status: + + (c) 1998-1999, Star Office Entwicklungs GmbH, Hamburg +===========================================================================*/ + +#ifndef _LINGUISTIC_SUPPLANG_HXX_ +#define _LINGUISTIC_SUPPLANG_HXX_ + +#include // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include // helper for implementations + + +#ifndef _OSL_MUTEX_HXX_ +#include +#endif +#ifndef _STRING_HXX +#include +#endif +#ifndef _TOOLS_INTN_HXX +#include +#endif +#ifndef _TOOLS_TABLE_HXX +#include +#endif +#ifndef _SV_SVAPP_HXX +#include +#endif + +#include +#ifndef _OSL_THREAD_H_ +#include +#endif + +#ifndef _UNOTOOLS_CHARCLASS_HXX +#include +#endif + +#include +#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ +#include +#endif +#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUES_HPP_ +#include +#endif +#ifndef _COM_SUN_STAR_FRAME_XTERMINATELISTENER_HPP_ +#include +#endif +#include +#include +#include +#include +#include + +namespace com { namespace sun { namespace star { namespace beans { + class XPropertySet; + class XFastPropertySet; +}}}}; + +namespace com { namespace sun { namespace star { namespace frame { + class XDesktop; +}}}}; + + +namespace linguistic +{ + +/////////////////////////////////////////////////////////////////////////// + +// defines for actual state (availability) of languages +#define LANG_NOT_AVAIL ((short) 0x0303) +#define LANG_QUERY ((short) 0x5555) +#define LANG_FAILED ((short) 0) +#define LANG_OK ((short) 1) + +enum ModuleName { MOD_SPELL, MOD_HYPH, MOD_THES }; + +struct LanguageState +{ + INT16 nLanguage; + INT16 nSpellState; + INT16 nHyphState; + INT16 nThesState; + + INT16 & GetState( ModuleName eModule ); +}; + +LanguageState * GetLanguageState( INT16 nLanguage, LanguageState *pArray ); + +/////////////////////////////////////////////////////////////////////////// + +DECLARE_TABLE( SuppLangTable, INT16 * ) + +class SuppLanguages +{ + SuppLangTable aLanguages; + +protected: + virtual INT16 CheckLanguage( INT16 nLanguage ) const = 0; + +public: + SuppLanguages( LanguageState *pState, USHORT nCount ); + ~SuppLanguages(); + + BOOL HasLanguage( INT16 nLanguage ) const; + const com::sun::star::uno::Sequence< INT16 > + GetLanguages() const; +}; + +/////////////////////////////////////////////////////////////////////////// + +} // namespace linguistic + +#endif + -- cgit