LibreOffice Module sc (master) 1
spellparam.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#pragma once
20
21#include <vcl/font.hxx>
22
25{
29};
30
33{
34public:
36 explicit ScConversionParam( ScConversionType eConvType );
37
39 explicit ScConversionParam(
40 ScConversionType eConvType,
41 LanguageType eLang,
42 sal_Int32 nOptions,
43 bool bIsInteractive );
44
46 explicit ScConversionParam(
47 ScConversionType eConvType,
48 LanguageType eSourceLang,
49 LanguageType eTargetLang,
50 vcl::Font aTargetFont,
51 sal_Int32 nOptions,
52 bool bIsInteractive );
53
57 const vcl::Font* GetTargetFont() const { return mbUseTargetFont ? &maTargetFont : nullptr; }
58 sal_Int32 GetOptions() const { return mnOptions; }
59 bool IsInteractive() const { return mbIsInteractive; }
60
61private:
66 sal_Int32 mnOptions;
69};
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Parameters for conversion.
Definition: spellparam.hxx:33
ScConversionParam(ScConversionType eConvType)
Constructs an empty parameter struct with the passed conversion type.
Definition: spelleng.cxx:379
bool mbIsInteractive
True = Use maTargetFont to change font during conversion.
Definition: spellparam.hxx:68
LanguageType meTargetLang
Source language for conversion.
Definition: spellparam.hxx:64
ScConversionType meConvType
Definition: spellparam.hxx:62
ScConversionType GetType() const
Definition: spellparam.hxx:54
vcl::Font maTargetFont
Target language for conversion.
Definition: spellparam.hxx:65
LanguageType GetSourceLang() const
Definition: spellparam.hxx:55
sal_Int32 mnOptions
Target font to be used if language has to be changed.
Definition: spellparam.hxx:66
bool IsInteractive() const
Definition: spellparam.hxx:59
LanguageType GetTargetLang() const
Definition: spellparam.hxx:56
const vcl::Font * GetTargetFont() const
Definition: spellparam.hxx:57
LanguageType meSourceLang
Type of the conversion.
Definition: spellparam.hxx:63
bool mbUseTargetFont
Conversion options.
Definition: spellparam.hxx:67
sal_Int32 GetOptions() const
Definition: spellparam.hxx:58
ScConversionType
Specifiers for sheet conversion (functions iterating over the sheet and modifying cells).
Definition: spellparam.hxx:25
@ SC_CONVERSION_CHINESE_TRANSL
Hangul-Hanja converter.
Definition: spellparam.hxx:28
@ SC_CONVERSION_SPELLCHECK
Definition: spellparam.hxx:26
@ SC_CONVERSION_HANGULHANJA
Spell checker.
Definition: spellparam.hxx:27