diff options
author | Andras Timar <andras.timar@collabora.com> | 2016-11-26 19:52:54 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-11-26 20:30:03 +0000 |
commit | d5be8dddc43e8a880d546fb9a6e8fbb45278eeca (patch) | |
tree | 146293763ffed96f3cca5d12fc798dd060e46d8d /cui | |
parent | 87a098e3bb72910399473ee0fbe32a70cad9c737 (diff) |
respect read-only config items in Basic IDE Options dialog
Change-Id: I4a23b347c5fed948045427bc440e7a821b95b63c
Reviewed-on: https://gerrit.libreoffice.org/31242
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optbasic.cxx | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/cui/source/options/optbasic.cxx b/cui/source/options/optbasic.cxx index 3feb235a0ae9..38324ea1a2f0 100644 --- a/cui/source/options/optbasic.cxx +++ b/cui/source/options/optbasic.cxx @@ -62,19 +62,18 @@ void SvxBasicIDEOptionsPage::dispose() void SvxBasicIDEOptionsPage::LoadConfig() { - bool bProcClose = officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::get(); - bool bExtended = officecfg::Office::BasicIDE::Autocomplete::UseExtended::get(); - bool bCodeCompleteOn = officecfg::Office::BasicIDE::Autocomplete::CodeComplete::get(); - bool bParenClose = officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::get(); - bool bQuoteClose = officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::get(); - bool bCorrect = officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::get(); - - pCodeCompleteChk->Check( bCodeCompleteOn ); - pAutocloseProcChk->Check( bProcClose ); - pAutocloseQuotesChk->Check( bQuoteClose ); - pAutocloseParenChk->Check( bParenClose ); - pAutoCorrectChk->Check( bCorrect ); - pUseExtendedTypesChk->Check( bExtended ); + pCodeCompleteChk->Check( officecfg::Office::BasicIDE::Autocomplete::CodeComplete::get() ); + pCodeCompleteChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::CodeComplete::isReadOnly() ); + pAutocloseProcChk->Check( officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::get() ); + pAutocloseProcChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::AutocloseProc::isReadOnly() ); + pAutocloseQuotesChk->Check( officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::get() ); + pAutocloseQuotesChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::AutocloseDoubleQuotes::isReadOnly() ); + pAutocloseParenChk->Check( officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::get() ); + pAutocloseParenChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::AutocloseParenthesis::isReadOnly() ); + pAutoCorrectChk->Check( officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::get() ); + pAutoCorrectChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::AutoCorrect::isReadOnly() ); + pUseExtendedTypesChk->Check( officecfg::Office::BasicIDE::Autocomplete::UseExtended::get() ); + pUseExtendedTypesChk->Enable( !officecfg::Office::BasicIDE::Autocomplete::UseExtended::isReadOnly() ); } bool SvxBasicIDEOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) |