summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-23 19:43:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-24 10:04:35 +0200
commit8684de9aae185ff340adc63ec8f1e5207e6e8cec (patch)
tree334f06c916361f389e6fdf24a2ad4a6fc054840b /filter
parent0bd2ebaa039633659d0aab816d72306cc9660872 (diff)
enable/disable page toplevel container
instead of the vcl TabPage that contains it Change-Id: I1d1da894afce4cf6d8fc109a77fd809e993de454 Reviewed-on: https://gerrit.libreoffice.org/79424 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/impdialog.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index b2e864674705..deb1503f8743 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -1220,7 +1220,7 @@ void ImpPDFTabSecurityPage::enablePermissionControls()
}
else
{
- if (mbHaveUserPassword && IsEnabled())
+ if (mbHaveUserPassword && m_xContainer->get_sensitive())
{
mxUserPwdSet->show();
mxUserPwdUnset->hide();
@@ -1234,7 +1234,7 @@ void ImpPDFTabSecurityPage::enablePermissionControls()
}
}
- bool bLocalEnable = mbHaveOwnerPassword && IsEnabled();
+ bool bLocalEnable = mbHaveOwnerPassword && m_xContainer->get_sensitive();
if (bIsPDFASel)
{
mxOwnerPwdPdfa->show();
@@ -1264,16 +1264,10 @@ void ImpPDFTabSecurityPage::enablePermissionControls()
// This tab page is under control of the PDF/A-1a checkbox:
// TODO: implement a method to do it.
-void ImpPDFTabSecurityPage::ImplPDFASecurityControl( bool bEnableSecurity )
+void ImpPDFTabSecurityPage::ImplPDFASecurityControl( bool bEnableSecurity )
{
- if( bEnableSecurity )
- {
- Enable();
+ m_xContainer->set_sensitive(bEnableSecurity);
// after enable, check the status of control as if the dialog was initialized
- }
- else
- Enable( false );
-
enablePermissionControls();
}