summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-01-31 08:28:06 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-01-31 08:28:06 +0000
commit3bf6f26a7734c60300b05eacc5a3a246d1c6216f (patch)
tree9c781e3e126ae9f8b10fe59c1fc51c14bfd29a1f /padmin
parent5f28dcc397d33cf3fec60764a256e7c757ade9f3 (diff)
INTEGRATION: CWS vcl34 (1.13.4); FILE MERGED
2004/12/15 17:21:03 pl 1.13.4.1: #i38660# mimic vcl SalFrame behaviour: check for printer updates on focus change
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/padialog.cxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index ef016a77a029..28e6935d418f 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: padialog.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2004-11-09 16:50:55 $
+ * last change: $Author: rt $ $Date: 2005-01-31 09:28:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,6 +83,9 @@
#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
#endif
+#ifndef _SV_EVENT_HXX
+#include <vcl/event.hxx>
+#endif
#ifndef _STREAM_HXX
#include <tools/stream.hxx>
#endif
@@ -166,8 +169,8 @@ PADialog::PADialog( Window* pParent, BOOL bAdmin ) :
m_aFaxImg( Bitmap( PaResId( RID_BMP_SMALL_FAX ) ), Color( 0xff, 0x00, 0xff ) ),
m_aPdfImg( Bitmap( PaResId( RID_BMP_SMALL_PDF ) ), Color( 0xff, 0x00, 0xff ) )
{
- Init();
FreeResource();
+ Init();
}
void PADialog::Init()
@@ -199,6 +202,20 @@ PADialog::~PADialog()
freePadminRC();
}
+long PADialog::Notify( NotifyEvent& rEv )
+{
+ if( rEv.GetType() == EVENT_GETFOCUS || rEv.GetType() == EVENT_LOSEFOCUS )
+ {
+ if( m_rPIManager.checkPrintersChanged() )
+ {
+ UpdateDevice();
+ UpdateText();
+ }
+ }
+ return ModalDialog::Notify( rEv );
+}
+
+
String PADialog::getSelectedDevice()
{
int nPos = m_aDevicesLB.GetSelectEntryPos();