diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-11-27 12:20:05 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-11-27 12:20:05 +0000 |
commit | 63762e597a028ab691a744100534f6639365c5b5 (patch) | |
tree | a77e6a83178760e8cd2eb8aea74a6fa036d666ab /linguistic | |
parent | f0b3c0aff1abe3b3e0f190f0bf1cd6cad81eb2f2 (diff) |
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
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/inc/supplang.hxx | 117 |
1 files changed, 117 insertions, 0 deletions
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 <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include <cppuhelper/implbase1.hxx> // helper for implementations + + +#ifndef _OSL_MUTEX_HXX_ +#include <osl/mutex.hxx> +#endif +#ifndef _STRING_HXX +#include <tools/string.hxx> +#endif +#ifndef _TOOLS_INTN_HXX +#include <tools/intn.hxx> +#endif +#ifndef _TOOLS_TABLE_HXX +#include <tools/table.hxx> +#endif +#ifndef _SV_SVAPP_HXX +#include <vcl/svapp.hxx> +#endif + +#include <tools/isolang.hxx> +#ifndef _OSL_THREAD_H_ +#include <osl/thread.h> +#endif + +#ifndef _UNOTOOLS_CHARCLASS_HXX +#include <unotools/charclass.hxx> +#endif + +#include <com/sun/star/uno/Sequence.h> +#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_ +#include <com/sun/star/uno/Reference.h> +#endif +#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUES_HPP_ +#include <com/sun/star/beans/PropertyValues.hpp> +#endif +#ifndef _COM_SUN_STAR_FRAME_XTERMINATELISTENER_HPP_ +#include <com/sun/star/frame/XTerminateListener.hpp> +#endif +#include <com/sun/star/beans/PropertyValues.hpp> +#include <com/sun/star/lang/Locale.hpp> +#include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/linguistic2/XDictionaryEntry.hpp> +#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp> + +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 + |