summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-11-14 15:42:20 +0000
committerTino Rachui <tra@openoffice.org>2001-11-14 15:42:20 +0000
commit4abab2a54b526d5bd74805d3b6541b21c25ae7a9 (patch)
tree63c65483c2382905b4dd02f4642f9b1dafb5ff78
parenta55aaa1efd8c6266b7f17bdd1a1eb91e66a2e5b5 (diff)
#94499#no even caching the index of the last selected item of a listbox
-rw-r--r--fpicker/source/win32/filepicker/filepickerstate.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/filepickerstate.cxx b/fpicker/source/win32/filepicker/filepickerstate.cxx
index b2142827e572..965caa4342c4 100644
--- a/fpicker/source/win32/filepicker/filepickerstate.cxx
+++ b/fpicker/source/win32/filepicker/filepickerstate.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: filepickerstate.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: tra $ $Date: 2001-11-05 07:52:26 $
+ * last change: $Author: tra $ $Date: 2001-11-14 16:42:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -645,7 +645,9 @@ void SAL_CALL CExecuteFilePickerState::cacheControlState( HWND hwndControl, CFil
else if ( LISTBOX == aCtrlClass )
{
// for listboxes we save only the
- // last selected item
+ // last selected item and the last
+ // selected item index
+
aControlAction = GET_SELECTED_ITEM;
lpfnGetValue = GetCtrlGetValueFunction( aCtrlClass, aControlAction );
@@ -654,6 +656,15 @@ void SAL_CALL CExecuteFilePickerState::cacheControlState( HWND hwndControl, CFil
GetDlgCtrlID( hwndControl ),
aControlAction,
lpfnGetValue( hwndControl ) );
+
+ aControlAction = ::com::sun::star::ui::dialogs::ControlActions::GET_SELECTED_ITEM_INDEX;
+
+ lpfnGetValue = GetCtrlGetValueFunction( aCtrlClass, aControlAction );
+
+ aNonExecFilePickerState->setValue(
+ GetDlgCtrlID( hwndControl ),
+ aControlAction,
+ lpfnGetValue( hwndControl ) );
}
}