LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScConversionParam Class Reference

Parameters for conversion. More...

#include <spellparam.hxx>

Collaboration diagram for ScConversionParam:
[legend]

Public Member Functions

 ScConversionParam (ScConversionType eConvType)
 Constructs an empty parameter struct with the passed conversion type. More...
 
 ScConversionParam (ScConversionType eConvType, LanguageType eLang, sal_Int32 nOptions, bool bIsInteractive)
 Constructs parameter struct for text conversion without changing the language. More...
 
 ScConversionParam (ScConversionType eConvType, LanguageType eSourceLang, LanguageType eTargetLang, vcl::Font aTargetFont, sal_Int32 nOptions, bool bIsInteractive)
 Constructs parameter struct for text conversion with language change. More...
 
ScConversionType GetType () const
 
LanguageType GetSourceLang () const
 
LanguageType GetTargetLang () const
 
const vcl::FontGetTargetFont () const
 
sal_Int32 GetOptions () const
 
bool IsInteractive () const
 

Private Attributes

ScConversionType meConvType
 
LanguageType meSourceLang
 Type of the conversion. More...
 
LanguageType meTargetLang
 Source language for conversion. More...
 
vcl::Font maTargetFont
 Target language for conversion. More...
 
sal_Int32 mnOptions
 Target font to be used if language has to be changed. More...
 
bool mbUseTargetFont
 Conversion options. More...
 
bool mbIsInteractive
 True = Use maTargetFont to change font during conversion. More...
 

Detailed Description

Parameters for conversion.

Definition at line 32 of file spellparam.hxx.

Constructor & Destructor Documentation

◆ ScConversionParam() [1/3]

ScConversionParam::ScConversionParam ( ScConversionType  eConvType)
explicit

Constructs an empty parameter struct with the passed conversion type.

Definition at line 379 of file spelleng.cxx.

References LANGUAGE_NONE.

◆ ScConversionParam() [2/3]

ScConversionParam::ScConversionParam ( ScConversionType  eConvType,
LanguageType  eLang,
sal_Int32  nOptions,
bool  bIsInteractive 
)
explicit

Constructs parameter struct for text conversion without changing the language.

Definition at line 389 of file spelleng.cxx.

References LANGUAGE_KOREAN, and mnOptions.

◆ ScConversionParam() [3/3]

ScConversionParam::ScConversionParam ( ScConversionType  eConvType,
LanguageType  eSourceLang,
LanguageType  eTargetLang,
vcl::Font  aTargetFont,
sal_Int32  nOptions,
bool  bIsInteractive 
)
explicit

Constructs parameter struct for text conversion with language change.

Definition at line 402 of file spelleng.cxx.

References LANGUAGE_KOREAN, meSourceLang, meTargetLang, and mnOptions.

Member Function Documentation

◆ GetOptions()

sal_Int32 ScConversionParam::GetOptions ( ) const
inline

Definition at line 58 of file spellparam.hxx.

References mnOptions.

Referenced by ScTextConversionEngine::ConvertAll().

◆ GetSourceLang()

LanguageType ScConversionParam::GetSourceLang ( ) const
inline

◆ GetTargetFont()

const vcl::Font * ScConversionParam::GetTargetFont ( ) const
inline

Definition at line 57 of file spellparam.hxx.

References maTargetFont, and mbUseTargetFont.

Referenced by ScTextConversionEngine::ConvertAll().

◆ GetTargetLang()

LanguageType ScConversionParam::GetTargetLang ( ) const
inline

Definition at line 56 of file spellparam.hxx.

References meTargetLang.

Referenced by ScTextConversionEngine::ConvertAll().

◆ GetType()

ScConversionType ScConversionParam::GetType ( ) const
inline

Definition at line 54 of file spellparam.hxx.

References meConvType.

Referenced by ScViewFunc::DoSheetConversion(), and ScUndoConversion::GetComment().

◆ IsInteractive()

bool ScConversionParam::IsInteractive ( ) const
inline

Definition at line 59 of file spellparam.hxx.

References mbIsInteractive.

Referenced by ScTextConversionEngine::ConvertAll().

Member Data Documentation

◆ maTargetFont

vcl::Font ScConversionParam::maTargetFont
private

Target language for conversion.

Definition at line 65 of file spellparam.hxx.

Referenced by GetTargetFont().

◆ mbIsInteractive

bool ScConversionParam::mbIsInteractive
private

True = Use maTargetFont to change font during conversion.

Definition at line 68 of file spellparam.hxx.

Referenced by IsInteractive().

◆ mbUseTargetFont

bool ScConversionParam::mbUseTargetFont
private

Conversion options.

Definition at line 67 of file spellparam.hxx.

Referenced by GetTargetFont().

◆ meConvType

ScConversionType ScConversionParam::meConvType
private

Definition at line 62 of file spellparam.hxx.

Referenced by GetType().

◆ meSourceLang

LanguageType ScConversionParam::meSourceLang
private

Type of the conversion.

Definition at line 63 of file spellparam.hxx.

Referenced by GetSourceLang(), and ScConversionParam().

◆ meTargetLang

LanguageType ScConversionParam::meTargetLang
private

Source language for conversion.

Definition at line 64 of file spellparam.hxx.

Referenced by GetTargetLang(), and ScConversionParam().

◆ mnOptions

sal_Int32 ScConversionParam::mnOptions
private

Target font to be used if language has to be changed.

Definition at line 66 of file spellparam.hxx.

Referenced by GetOptions(), and ScConversionParam().


The documentation for this class was generated from the following files: