diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-12-11 13:10:00 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-12-11 13:10:00 +0100 |
commit | d8bba185c2b34969e8c4c7d2d052f87c50ca50e5 (patch) | |
tree | b9a1c4c6a4522073cea1d4486c81079976ffdce3 /sfx2/inc | |
parent | 78e16138e84c0bbcf30695c007ea55e81bbbdad7 (diff) |
autorecovery: allowed the SFX doc loader to in-place replace a view in an existing frame
This was previously done in SfxViewFrame::LoadNewSfxView_Impl. Now, the loader recognizes if a model is to be
loaded into a frame with an existing view to the same model, and properly handles this (passing a PreviousViewController
argument to the view factory). LoadNewSfxView_Impl died in this course (the remaining few lines have been outline).
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/sfx2/viewfrm.hxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sfx2/inc/sfx2/viewfrm.hxx b/sfx2/inc/sfx2/viewfrm.hxx index 9afbdc1d1e21..ab218d89034a 100644 --- a/sfx2/inc/sfx2/viewfrm.hxx +++ b/sfx2/inc/sfx2/viewfrm.hxx @@ -320,18 +320,9 @@ private: SAL_DLLPRIVATE BOOL SwitchToViewShell_Impl( USHORT nNo, BOOL bIsIndex = FALSE ); SAL_DLLPRIVATE void PopShellAndSubShells_Impl( SfxViewShell& i_rViewShell ); - /** loads a new view of our document into our frame - - This method completely bypasses the UNO loader mechanism, it exchanges the current view on SFX level. Use - it for quick inplace view switches only. - */ - SAL_DLLPRIVATE SfxViewShell* LoadNewSfxView_Impl( const ::rtl::OUString& i_rViewName, SfxViewShell* i_pOldShell ); - /** loads the given existing document into the given frame - This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked. Don't - use this method if you want to plug the document into the frame on SFX level only. In such a case, use - LoadNewSfxView_Impl instead. + This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked. @param i_rDoc the document to load @@ -346,7 +337,7 @@ private: @throws Exception if something goes wrong. The caller is responsible for handling this. */ - SAL_DLLPRIVATE static void LoadViewIntoFrame_Impl( + SAL_DLLPRIVATE static SfxViewShell* LoadViewIntoFrame_Impl( const SfxObjectShell& i_rDoc, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& i_rFrame, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& i_rLoadArgs, @@ -356,9 +347,7 @@ private: /** loads the given existing document into the given frame - This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked. Don't - use this method if you want to plug the document into the frame on SFX level only. In such a case, use - LoadNewSfxView_Impl instead. + This is done using the XComponentLoader interface of the frame, so the SFX document loader is invoked. If no frame is given, a blank top level frame is created. |