summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-06-05 13:07:13 +0000
committerMalte Timmermann <mt@openoffice.org>2001-06-05 13:07:13 +0000
commit3fa91dffa3d28067db85015cae25f56e5428d4f3 (patch)
tree01331fabf3dd9430814dde67b7ef6ce46ccb4f91 /toolkit/source
parente398a4b04939332b3132f16e7a45de89950a9979 (diff)
#84512# VCLDialog::getInfo()
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx36
1 files changed, 34 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 975832602fb1..434ce7aa37ca 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: vclxwindows.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: mt $ $Date: 2001-06-01 11:21:55 $
+ * last change: $Author: mt $ $Date: 2001-06-05 14:07:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -288,6 +288,15 @@ void VCLXButton::setProperty( const ::rtl::OUString& PropertyName, const ::com::
((PushButton*)pButton)->SetState( (TriState)n );
}
}
+ case BASEPROPERTY_IMAGEALIGN:
+ {
+ if ( GetWindow()->GetType() == WINDOW_PUSHBUTTON )
+ {
+ sal_Int16 n;
+ if ( Value >>= n )
+ ((PushButton*)pButton)->SetImageAlign( (ImageAlign)n );
+ }
+ }
break;
default:
{
@@ -321,6 +330,14 @@ void VCLXButton::setProperty( const ::rtl::OUString& PropertyName, const ::com::
}
}
break;
+ case BASEPROPERTY_IMAGEALIGN:
+ {
+ if ( GetWindow()->GetType() == WINDOW_PUSHBUTTON )
+ {
+ aProp <<= (sal_Int16)((PushButton*)pButton)->GetImageAlign();
+ }
+ }
+ break;
default:
{
aProp <<= VCLXWindow::getProperty( PropertyName );
@@ -1755,6 +1772,21 @@ void VCLXDialog::endExecute() throw(::com::sun::star::uno::RuntimeException)
pDlg->EndDialog( 0 );
}
+::com::sun::star::awt::DeviceInfo VCLXDialog::getInfo() throw(::com::sun::star::uno::RuntimeException)
+{
+ ::com::sun::star::awt::DeviceInfo aInfo = VCLXDevice::getInfo();
+
+#if SUPD >= 634
+ ::vos::OGuard aGuard( GetMutex() );
+ Dialog* pDlg = (Dialog*) GetWindow();
+ if ( pDlg )
+ pDlg->GetDrawWindowBorder( aInfo.LeftInset, aInfo.TopInset, aInfo.RightInset, aInfo.BottomInset );
+#endif
+
+ return aInfo;
+}
+
+
// ----------------------------------------------------
// class VCLXFixedText
// ----------------------------------------------------