summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMaxime de Roucy <mderoucy@linagora.com>2012-06-26 15:52:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-26 15:59:17 +0100
commit7db0ac29c0962932bbcd8b460dc51c9e5009dbfa (patch)
tree5bb5cae6aaf566faec3ee2ffcdc0f3977f1d6609 /vcl/source
parent512b195910a7f73206c50a89ec5fc62cced49ace (diff)
Prevent print settings dialog to show help button
Prevent the printer settings dialog to show help button when it's called from the help. Add a PrinterController property : HideHelpButton Change-Id: I45585a30a2f429659f554747f93c650cb048711f
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/printdlg.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index d9aa5dd08b94..9c05203934e4 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -902,6 +902,9 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
// setup dependencies
checkControlDependencies();
+ if ( maPController->getBoolProperty( rtl::OUString( "HideHelpButton" ), sal_False ) )
+ maHelpButton.Hide();
+
// set initial focus to "Number of copies"
maJobPage.maCopyCountField.GrabFocus();
maJobPage.maCopyCountField.SetSelection( Selection(0, 0xFFFF) );