[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:
Gabor Kelemen
2025-05-10 23:03:58 +02:00
parent 4014ee43a9
commit 1988a527d4
2 changed files with 1 additions and 10 deletions

View File

@ -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">

View File

@ -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 );