summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdownicon.cxx
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2001-11-19 10:03:09 +0000
committerHennes Rohling <hro@openoffice.org>2001-11-19 10:03:09 +0000
commitaf7cc96ca04d128edccc4b44ce063feceb6cd2da (patch)
tree12454112631f11f0c7cf7e6f11d68a9335a87296 /sfx2/source/appl/shutdownicon.cxx
parent5d0209a06d4bc109723e8842ebed02b5a638bb3f (diff)
#94629# Read version property as sal_Int32 from file picker service
Diffstat (limited to 'sfx2/source/appl/shutdownicon.cxx')
-rw-r--r--sfx2/source/appl/shutdownicon.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index 897087617e99..aea825285bed 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shutdownicon.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: hro $ $Date: 2001-11-12 16:45:02 $
+ * last change: $Author: hro $ $Date: 2001-11-19 11:03:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -232,14 +232,26 @@ void ShutdownIcon::FileOpen()
if ( xPickerControls.is() )
{
+ sal_Bool bReadOnly = sal_False;
+
aArgs[0].Name = OUString::createFromAscii( "ReadOnly" );
aArgs[0].Value = xPickerControls->getValue( ExtendedFilePickerElementIds::CHECKBOX_READONLY, 0 );
+ aArgs[0].Value >>= bReadOnly;
+
+ OUString aFilterName;
aArgs[1].Name = OUString::createFromAscii( "FilterName" );
aArgs[1].Value = xPickerControls->getValue( CommonFilePickerElementIds::LISTBOX_FILTER, ControlActions::GET_SELECTED_ITEM );
+ aArgs[1].Value >>= aFilterName;
aArgs[2].Name = OUString::createFromAscii( "Version" );
- aArgs[2].Value = xPickerControls->getValue( CommonFilePickerElementIds::LISTBOX_FILTER, ControlActions::GET_SELECTED_ITEM );
+
+ sal_Int32 iVersion = -1;
+ sal_uInt16 uVersion = (sal_uInt16)-1;
+
+ xPickerControls->getValue( ExtendedFilePickerElementIds::LISTBOX_VERSION, ControlActions::GET_SELECTED_ITEM_INDEX ) >>= iVersion;
+ uVersion = (sal_uInt16)iVersion;
+ aArgs[2].Value <<= uVersion;
}
if ( 1 == nFiles )