crashtesting: only warn about outsize scretch value
[LibreOffice.git] / include / svl / languageoptions.hxx
blobe780ed4751e5da31513bf1ff6787045d8aa3d6a6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SVL_LANGUAGEOPTIONS_HXX
20 #define INCLUDED_SVL_LANGUAGEOPTIONS_HXX
22 #include <svl/svldllapi.h>
23 #include <sal/types.h>
24 #include <o3tl/typed_flags_set.hxx>
25 #include <i18nlangtag/lang.h>
27 // class SvtLanguageOptions ----------------------------------------------------
29 // these defines can be ORed
30 // note these values DO NOT match the values in css::i18n::ScriptType
31 enum class SvtScriptType : sal_uInt8
33 NONE = 0x00,
34 LATIN = 0x01,
35 ASIAN = 0x02,
36 COMPLEX = 0x04,
37 UNKNOWN = 0x08 // (only used in SC) if type has not been determined yet
39 namespace o3tl
41 template<> struct typed_flags<SvtScriptType> : is_typed_flags<SvtScriptType, 0x0f> {};
44 namespace SvtLanguageOptions
46 // CJK options
47 // SVL_DLLPUBLIC bool IsCJKFontEnabled() { m_pCJKOptions->IsCJKFontEnabled(); }
48 // SVL_DLLPUBLIC bool IsVerticalTextEnabled() m_pCJKOptions->IsVerticalTextEnabled();
49 // SVL_DLLPUBLIC bool IsAsianTypographyEnabled() m_pCJKOptions->IsAsianTypographyEnabled();
50 // SVL_DLLPUBLIC bool IsJapaneseFindEnabled() m_pCJKOptions->IsJapaneseFindEnabled();
51 // SVL_DLLPUBLIC void SetAll( bool _bSet ) m_pCJKOptions->SetAll( _bSet );
52 // SVL_DLLPUBLIC bool IsAnyEnabled() m_pCJKOptions->IsAnyEnabled();
54 // CTL options
55 //SVL_DLLPUBLIC void SetCTLFontEnabled( bool _bEnabled ) m_pCTLOptions->SetCTLFontEnabled( _bEnabled );
56 // SVL_DLLPUBLIC bool IsCTLFontEnabled() m_pCTLOptions->IsCTLFontEnabled();
58 // SVL_DLLPUBLIC void SetCTLSequenceChecking( bool _bEnabled ) m_pCTLOptions->SetCTLSequenceChecking( _bEnabled );
60 //SVL_DLLPUBLIC void SetCTLSequenceCheckingRestricted( bool _bEnable ) m_pCTLOptions->SetCTLSequenceCheckingRestricted( _bEnable );
62 // SVL_DLLPUBLIC void SetCTLSequenceCheckingTypeAndReplace( bool _bEnable ) m_pCTLOptions->SetCTLSequenceCheckingTypeAndReplace( _bEnable );
64 // returns for a language the scripttype
65 SVL_DLLPUBLIC SvtScriptType GetScriptTypeOfLanguage( LanguageType nLang );
67 // convert from css::i18n::ScriptType constants to SvtScriptType
68 SVL_DLLPUBLIC SvtScriptType FromI18NToSvtScriptType( sal_Int16 nI18NType );
70 SVL_DLLPUBLIC sal_Int16 FromSvtScriptTypeToI18N( SvtScriptType nI18NType );
72 SVL_DLLPUBLIC sal_Int16 GetI18NScriptTypeOfLanguage( LanguageType nLang );
76 /** #i42730# Gives access to the Windows 16bit system locale
78 namespace SvtSystemLanguageOptions
80 bool isCJKKeyboardLayoutInstalled();
83 #endif // INCLUDED_SVL_LANGUAGEOPTIONS_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */