20#undef SC_DLLIMPLEMENTATION
29 : GenericDialogController(pParent,
"modules/scalc/ui/textimportoptions.ui",
"TextImportOptionsDialog")
30 , m_xBtnOk(m_xBuilder->weld_button(
"ok"))
31 , m_xRbAutomatic(m_xBuilder->weld_radio_button(
"automatic"))
32 , m_xRbCustom(m_xBuilder->weld_radio_button(
"custom"))
33 , m_xCkbConvertDate(m_xBuilder->weld_check_button(
"convertdata"))
34 , m_xCkbConvertScientific(m_xBuilder->weld_check_button(
"convertscientificnotation"))
35 , m_xCkbKeepAsking(m_xBuilder->weld_check_button(
"keepasking"))
36 , m_xLbCustomLang(new
SvxLanguageBox(m_xBuilder->weld_combo_box(
"lang")))
80 SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN,
false);
94 if (&rBtn == m_xRbAutomatic.get())
96 m_xLbCustomLang->set_sensitive(
false);
98 else if (&rBtn == m_xRbCustom.get())
100 m_xLbCustomLang->set_sensitive(
true);
102 else if (&rBtn == m_xCkbConvertDate.get())
104 if (m_xCkbConvertDate->get_active())
106 m_xCkbConvertScientific->set_active(
true);
107 m_xCkbConvertScientific->set_sensitive(
false);
111 m_xCkbConvertScientific->set_sensitive(
true);
114 else if (&rBtn == m_xCkbConvertScientific.get())
116 assert( !m_xCkbConvertDate->get_active() &&
"ScTextImportOptionsDlg::RadioCheckHdl - scientific option disabled if Detect numbers active" );
Reference< XExecutableDialog > m_xDialog
const LanguageTag & GetLanguageTag() const
static const AllSettings & GetSettings()
LanguageType getLanguageType(bool bResolveSystem=true) const
std::unique_ptr< weld::CheckButton > m_xCkbConvertDate
virtual ~ScTextImportOptionsDlg() override
bool isKeepAskingSet() const
std::unique_ptr< SvxLanguageBox > m_xLbCustomLang
std::unique_ptr< weld::CheckButton > m_xCkbKeepAsking
bool isScientificConversionSet() const
ScTextImportOptionsDlg(weld::Window *pParent)
std::unique_ptr< weld::RadioButton > m_xRbAutomatic
LanguageType getLanguageType() const
std::unique_ptr< weld::Button > m_xBtnOk
bool isDateConversionSet() const
std::unique_ptr< weld::CheckButton > m_xCkbConvertScientific
std::unique_ptr< weld::RadioButton > m_xRbCustom
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(ScTextImportOptionsDlg, OKHdl, weld::Button &, void)
IMPL_LINK(ScTextImportOptionsDlg, RadioCheckHdl, weld::Toggleable &, rBtn, void)