diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-01-25 15:15:05 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-01-25 15:15:05 +0000 |
commit | 827c4ed1e4469cd7c52bae85b7b2b9156e89b59f (patch) | |
tree | bb88071516b92bc9b9a7728c511b05e6853f4e6a /toolkit | |
parent | f0c6ce31aa75ac8501371be0ad89f32733ec0fde (diff) |
Changes test program...
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/workben/unodialog.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/toolkit/workben/unodialog.cxx b/toolkit/workben/unodialog.cxx index b0842574b6cf..34f01882dd47 100644 --- a/toolkit/workben/unodialog.cxx +++ b/toolkit/workben/unodialog.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unodialog.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mt $ $Date: 2001-01-25 13:40:59 $ + * last change: $Author: mt $ $Date: 2001-01-25 16:15:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -225,6 +225,10 @@ void MyApp::Main() uno::Reference< beans::XPropertySet > xDlgPSet( xC, uno::UNO_QUERY ); aValue <<= ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Test-Dialog" ) ); xDlgPSet->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Title" ) ), aValue ); + aValue <<= (sal_Int32) 600; + xDlgPSet->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Width" ) ), aValue ); + aValue <<= (sal_Int32) 200; + xDlgPSet->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Height" ) ), aValue ); // Create a Dialog uno::Reference< awt::XControl > xDlg( xMSF->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.UnoControlDialog" ) ) ), uno::UNO_QUERY ); @@ -251,7 +255,7 @@ void MyApp::Main() aValue <<= (sal_Int32) 20; xPSet->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "PositionX" ) ), aValue ); -// xDlg->createPeer( xToolkit, NULL ); + xDlg->createPeer( xToolkit, NULL ); uno::Reference< awt::XDialog > xD( xDlg, uno::UNO_QUERY ); xD->execute(); |