diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2002-07-24 13:16:03 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2002-07-24 13:16:03 +0000 |
commit | 933a0682bedb244ecfdecc9aac8cb269cfb469da (patch) | |
tree | 6b4c15e96ebceb46e4c382dad57d2b8380a0c289 /sfx2/source/doc/objstor.cxx | |
parent | 46d7a03f0909484cb637f39cdb3cbb75db827c5e (diff) |
#97681# update Recent Documents list
Diffstat (limited to 'sfx2/source/doc/objstor.cxx')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index e762a44e6176..1b518def60d8 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objstor.cxx,v $ * - * $Revision: 1.101 $ + * $Revision: 1.102 $ * - * last change: $Author: mba $ $Date: 2002-07-18 09:58:00 $ + * last change: $Author: mav $ $Date: 2002-07-24 14:16:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -178,6 +178,7 @@ #include <unotools/tempfile.hxx> #include <ucbhelper/content.hxx> #include <sot/storinfo.hxx> +#include <shell/systemshell.hxx> #include "objsh.hxx" #include "childwin.hxx" @@ -837,8 +838,22 @@ sal_Bool SfxObjectShell::DoLoad( SfxMedium *pMed ) } if ( SFX_CREATE_MODE_EMBEDDED != eCreateMode ) + { GetpApp()->HideStatusText(); + SFX_ITEMSET_ARG( pMedium->GetItemSet(), pAsTempItem, SfxBoolItem, SID_TEMPLATE, sal_False); + SFX_ITEMSET_ARG( pMedium->GetItemSet(), pPreviewItem, SfxBoolItem, SID_PREVIEW, sal_False); + SFX_ITEMSET_ARG( pMedium->GetItemSet(), pHiddenItem, SfxBoolItem, SID_HIDDEN, sal_False); + if( bOk && pMedium->GetOrigURL().Len() + && !( pAsTempItem && pAsTempItem->GetValue() ) + && !( pPreviewItem && pPreviewItem->GetValue() ) + && !( pHiddenItem && pHiddenItem->GetValue() ) ) + { + INetURLObject aUrl( pMedium->GetOrigURL() ); + SystemShell::AddToRecentDocumentList( aUrl.GetURLNoPass( INetURLObject::NO_DECODE ) ); + } + } + return bOk; } |