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>
This commit is contained in:
@@ -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*/ )
|
||||
|
Reference in New Issue
Block a user