summaryrefslogtreecommitdiff
path: root/padmin/source/helper.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-09-03 12:23:11 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-09-03 12:23:11 +0000
commit02a3b6f7b53a80b99c05854a534ba72bbc2fd411 (patch)
tree5088759327f56fa4507b4f07745fdf6c7ac999c9 /padmin/source/helper.cxx
parentaf306c3106f40b29e739e27dacfedfbe5ab2340b (diff)
#96930# disable help button in folder picker
Diffstat (limited to 'padmin/source/helper.cxx')
-rw-r--r--padmin/source/helper.cxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx
index 801153b10dc7..1dd13a9e9dd5 100644
--- a/padmin/source/helper.cxx
+++ b/padmin/source/helper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helper.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: pl $ $Date: 2001-09-04 16:24:50 $
+ * last change: $Author: pl $ $Date: 2002-09-03 13:23:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -92,6 +92,9 @@
#ifndef _COM_SUN_STAR_UI_DIALOGS_XFOLDERPICKER_HPP_
#include <com/sun/star/ui/dialogs/XFolderPicker.hpp>
#endif
+#ifndef _COM_SUN_STAR_UI_DIALOGS_XCONTROLACCESS_HPP_
+#include <com/sun/star/ui/dialogs/XControlAccess.hpp>
+#endif
#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#endif
@@ -307,6 +310,22 @@ bool padmin::chooseDirectory( Window* pParent, String& rInOutPath )
Reference< XFolderPicker > xFolderPicker( xFactory->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ui.dialogs.FolderPicker" ) ) ), UNO_QUERY );
if( xFolderPicker.is() )
{
+ Reference< XControlAccess > xCA( xFolderPicker, UNO_QUERY );
+ if( xCA.is() )
+ {
+ try
+ {
+ Any aState;
+ aState <<= sal_False;
+ xCA->setControlProperty( OUString( RTL_CONSTASCII_USTRINGPARAM( "HelpButton" ) ),
+ OUString( RTL_CONSTASCII_USTRINGPARAM( "Visible" ) ),
+ aState );
+
+ }
+ catch( ... )
+ {
+ }
+ }
INetURLObject aObj( rInOutPath, INET_PROT_FILE, INetURLObject::ENCODE_ALL );
xFolderPicker->setDisplayDirectory( aObj.GetMainURL() );
if( xFolderPicker->execute() == ExecutableDialogResults::OK )