mirror of
https://github.com/LibreOffice/core.git
synced 2025-07-23 04:42:03 +00:00
[API CHANGE] Replace VCL Settings (PrintDialog/CollateBox)
in order to simplify code. Drop this config key entirely, it was used for lockdown of the Collate checkbox depending on a non-default value. Change-Id: Ied93bd3ce531c15b7ca4b2b23da110e051bcf74c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185177 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
This commit is contained in:
@ -18,13 +18,6 @@
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../component-update.dtd">
|
||||
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:install="http://openoffice.org/2004/installation" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="VCL" oor:package="org.openoffice">
|
||||
<node oor:name="Settings">
|
||||
<node oor:name="PrintDialog" oor:op="replace">
|
||||
<prop oor:name="CollateBox" oor:op="replace" oor:type="xs:string">
|
||||
<value>Default</value>
|
||||
</prop>
|
||||
</node>
|
||||
</node>
|
||||
<node oor:name="DefaultFonts">
|
||||
<node oor:name="en" oor:op="replace">
|
||||
<prop oor:name="LATIN_DISPLAY" oor:type="xs:string" oor:op="replace">
|
||||
|
@ -809,9 +809,7 @@ void PrintDialog::readFromSettings()
|
||||
m_xDialog->set_window_state(aValue);
|
||||
|
||||
// collate
|
||||
aValue = pItem->getValue( u"PrintDialog"_ustr,
|
||||
u"CollateBox"_ustr );
|
||||
if( aValue.equalsIgnoreAsciiCase("alwaysoff") )
|
||||
if( officecfg::VCL::VCLSettings::PrintDialog::Collate::isReadOnly() )
|
||||
{
|
||||
mbCollateAlwaysOff = true;
|
||||
mxCollateBox->set_active( false );
|
||||
|
Reference in New Issue
Block a user