summaryrefslogtreecommitdiffstats
path: root/padmin
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-04 14:40:30 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-04 14:40:30 +0000
commit212b4076afb3fc545e3b2c6b104b25775eadf1f0 (patch)
tree63d597956bc725b7e227a927d41a58c62b806475 /padmin
parentINTEGRATION: CWS i18n21 (1.33.10); FILE MERGED (diff)
downloadcore-212b4076afb3fc545e3b2c6b104b25775eadf1f0.tar.gz
core-212b4076afb3fc545e3b2c6b104b25775eadf1f0.zip
INTEGRATION: CWS padminhc (1.17.16); FILE MERGED
2005/11/01 11:06:07 pl 1.17.16.3: #i48643# no transparent color anymore, use GetDisplayBackground instead of settings 2005/10/31 14:19:18 pl 1.17.16.2: #i48643# forgot a const 2005/10/31 11:48:25 pl 1.17.16.1: #i48643# high contrast images for printer admin
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/adddlg.cxx24
1 files changed, 21 insertions, 3 deletions
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx
index a57cc20a23b7..84f6b2cf10aa 100644
--- a/padmin/source/adddlg.cxx
+++ b/padmin/source/adddlg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: adddlg.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 16:21:59 $
+ * last change: $Author: kz $ $Date: 2005-11-04 15:40:30 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -800,7 +800,7 @@ AddPrinterDialog::AddPrinterDialog( Window* pParent )
m_aTitleImage.SetBackgroundColor( Color( 0xff, 0xff, 0xff ) );
m_aTitleImage.SetText( m_pCurrentPage->getTitle() );
- m_aTitleImage.SetImage( Image( Bitmap( PaResId( RID_BMP_PRINTER ) ) ) );
+ updateSettings();
}
AddPrinterDialog::~AddPrinterDialog()
@@ -831,6 +831,24 @@ AddPrinterDialog::~AddPrinterDialog()
delete m_pPdfCommandPage;
}
+void AddPrinterDialog::updateSettings()
+{
+ if( ! GetDisplayBackground().GetColor().IsDark() )
+ m_aTitleImage.SetImage( Image( BitmapEx( PaResId( RID_BMP_PRINTER ) ) ) );
+ else
+ m_aTitleImage.SetImage( Image( BitmapEx( PaResId( RID_BMP_PRINTER_HC ) ) ) );
+}
+
+void AddPrinterDialog::DataChanged( const DataChangedEvent& rEv )
+{
+ ModalDialog::DataChanged( rEv );
+ if( (rEv.GetType() == DATACHANGED_SETTINGS) &&
+ (rEv.GetFlags() & SETTINGS_STYLE) )
+ {
+ updateSettings();
+ }
+}
+
void AddPrinterDialog::advance()
{
m_pCurrentPage->Show( FALSE );