summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/prnsetup.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 15:40:40 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 15:40:40 +0000
commit8a39c3ee01a342512a87e324067acf586ba410b3 (patch)
treefa181084e33d8f3d438eab32889a84cfdf76e6b9 /svtools/source/dialogs/prnsetup.cxx
parent171ab8fdeb737c86ea5036ad2aba1841bbc0ac74 (diff)
INTEGRATION: CWS nativeprintdlg01_DEV300 (1.8.146); FILE MERGED
2008/02/22 12:59:46 pl 1.8.146.1: #i86352# add options button
Diffstat (limited to 'svtools/source/dialogs/prnsetup.cxx')
-rw-r--r--svtools/source/dialogs/prnsetup.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx
index 564b6da28fa0..972435896823 100644
--- a/svtools/source/dialogs/prnsetup.cxx
+++ b/svtools/source/dialogs/prnsetup.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: prnsetup.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 21:28:58 $
+ * last change: $Author: kz $ $Date: 2008-03-05 16:40:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -252,6 +252,7 @@ PrinterSetupDialog::PrinterSetupDialog( Window* pWindow ) :
maFtName ( this, SvtResId( FT_NAME ) ),
maLbName ( this, SvtResId( LB_NAMES ) ),
maBtnProperties ( this, SvtResId( BTN_PROPERTIES ) ),
+ maBtnOptions ( this, SvtResId( BTN_OPTIONS ) ),
maFtStatus ( this, SvtResId( FT_STATUS ) ),
maFiStatus ( this, SvtResId( FI_STATUS ) ),
maFtType ( this, SvtResId( FT_TYPE ) ),
@@ -267,6 +268,9 @@ PrinterSetupDialog::PrinterSetupDialog( Window* pWindow ) :
{
FreeResource();
+ // show options button only if link is set
+ maBtnOptions.Hide();
+
mpPrinter = NULL;
mpTempPrinter = NULL;
@@ -286,6 +290,17 @@ PrinterSetupDialog::~PrinterSetupDialog()
// -----------------------------------------------------------------------
+void PrinterSetupDialog::SetOptionsHdl( const Link& rLink )
+{
+ maBtnOptions.SetClickHdl( rLink );
+ maBtnOptions.Show( rLink.IsSet() );
+}
+
+const Link& PrinterSetupDialog::GetOptionsHdl() const
+{
+ return maBtnOptions.GetClickHdl();
+}
+
void PrinterSetupDialog::ImplSetInfo()
{
const QueueInfo* pInfo = Printer::GetQueueInfo(maLbName.GetSelectEntry(), true);