LibreOffice Module svl (master) 1
languageoptions.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SVL_LANGUAGEOPTIONS_HXX
20#define INCLUDED_SVL_LANGUAGEOPTIONS_HXX
21
22#include <svl/svldllapi.h>
23#include <sal/types.h>
25#include <i18nlangtag/lang.h>
26
27// class SvtLanguageOptions ----------------------------------------------------
28
29// these defines can be ORed
30// note these values DO NOT match the values in css::i18n::ScriptType
32{
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
38};
39namespace o3tl
40{
41 template<> struct typed_flags<SvtScriptType> : is_typed_flags<SvtScriptType, 0x0f> {};
42}
43
44namespace SvtLanguageOptions
45{
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();
53
54 // CTL options
55 //SVL_DLLPUBLIC void SetCTLFontEnabled( bool _bEnabled ) m_pCTLOptions->SetCTLFontEnabled( _bEnabled );
56// SVL_DLLPUBLIC bool IsCTLFontEnabled() m_pCTLOptions->IsCTLFontEnabled();
57
58// SVL_DLLPUBLIC void SetCTLSequenceChecking( bool _bEnabled ) m_pCTLOptions->SetCTLSequenceChecking( _bEnabled );
59
60 //SVL_DLLPUBLIC void SetCTLSequenceCheckingRestricted( bool _bEnable ) m_pCTLOptions->SetCTLSequenceCheckingRestricted( _bEnable );
61
62// SVL_DLLPUBLIC void SetCTLSequenceCheckingTypeAndReplace( bool _bEnable ) m_pCTLOptions->SetCTLSequenceCheckingTypeAndReplace( _bEnable );
63
64 // returns for a language the scripttype
66
67 // convert from css::i18n::ScriptType constants to SvtScriptType
69
71
73
74};
75
79{
81};
82
83#endif // INCLUDED_SVL_LANGUAGEOPTIONS_HXX
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define COMPLEX
#define ASIAN
UNKNOWN
SvtScriptType
SvtScriptType FromI18NToSvtScriptType(sal_Int16 nI18NType)
SvtScriptType GetScriptTypeOfLanguage(LanguageType nLang)
sal_Int16 GetI18NScriptTypeOfLanguage(LanguageType nLang)
sal_Int16 FromSvtScriptTypeToI18N(SvtScriptType nItemType)
#i42730# Gives access to the Windows 16bit system locale
NONE
#define SVL_DLLPUBLIC
Definition: svldllapi.h:28
unsigned char sal_uInt8