22#include <officecfg/Office/BasicIDE.hxx>
25 :
SfxTabPage(pPage, pController,
"cui/ui/optbasicidepage.ui",
"OptBasicIDEPage", &
rSet)
26 , m_xCodeCompleteChk(m_xBuilder->weld_check_button(
"codecomplete_enable"))
27 , m_xAutocloseProcChk(m_xBuilder->weld_check_button(
"autoclose_proc"))
28 , m_xAutocloseParenChk(m_xBuilder->weld_check_button(
"autoclose_paren"))
29 , m_xAutocloseQuotesChk(m_xBuilder->weld_check_button(
"autoclose_quotes"))
30 , m_xAutoCorrectChk(m_xBuilder->weld_check_button(
"autocorrect"))
31 , m_xUseExtendedTypesChk(m_xBuilder->weld_check_button(
"extendedtypes_enable"))
42 m_xCodeCompleteChk->set_active( officecfg::Office::BasicIDE::Autocomplete::CodeComplete::get() );
43 m_xCodeCompleteChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::CodeComplete::isReadOnly() );
44 m_xAutocloseProcChk->set_active( officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::get() );
45 m_xAutocloseProcChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::isReadOnly() );
46 m_xAutocloseQuotesChk->set_active( officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::get() );
47 m_xAutocloseQuotesChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::isReadOnly() );
48 m_xAutocloseParenChk->set_active( officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::get() );
49 m_xAutocloseParenChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::isReadOnly() );
50 m_xAutoCorrectChk->set_active( officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::get() );
51 m_xAutoCorrectChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::isReadOnly() );
53 m_xUseExtendedTypesChk->set_sensitive( !officecfg::Office::BasicIDE::Autocomplete::UseExtended::isReadOnly() );
58 bool bModified =
false;
63 officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::set(
m_xAutocloseProcChk->get_active(), batch );
71 officecfg::Office::BasicIDE::Autocomplete::CodeComplete::set(
m_xCodeCompleteChk->get_active(), batch );
78 officecfg::Office::BasicIDE::Autocomplete::UseExtended::set(
m_xUseExtendedTypesChk->get_active(), batch );
85 officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::set(
m_xAutocloseParenChk->get_active(), batch );
92 officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::set(
m_xAutocloseQuotesChk->get_active(), batch );
99 officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::set(
m_xAutoCorrectChk->get_active(), batch );
123 return std::make_unique<SvxBasicIDEOptionsPage>(pPage, pController, *rAttrSet);
static void SetAutoCloseQuotesOn(bool b)
static void SetAutoCloseParenthesisOn(bool b)
static void SetProcedureAutoCompleteOn(bool b)
static void SetAutoCorrectOn(bool b)
static void SetCodeCompleteOn(bool b)
static void SetExtendedTypeDeclaration(bool b)
void SetUserData(const OUString &rString)
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xCodeCompleteChk
std::unique_ptr< weld::CheckButton > m_xAutoCorrectChk
std::unique_ptr< weld::CheckButton > m_xAutocloseProcChk
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
virtual ~SvxBasicIDEOptionsPage() override
std::unique_ptr< weld::CheckButton > m_xAutocloseQuotesChk
virtual void Reset(const SfxItemSet *rSet) override
virtual void FillUserData() override
std::unique_ptr< weld::CheckButton > m_xAutocloseParenChk
SvxBasicIDEOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xUseExtendedTypesChk
static std::shared_ptr< ConfigurationChanges > create()