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