diff options
author | Wang Lei <leiw@apache.org> | 2012-10-09 07:35:59 +0000 |
---|---|---|
committer | Wang Lei <leiw@apache.org> | 2012-10-09 07:35:59 +0000 |
commit | 121b5090651912359533500e4a9ba9630cc3555f (patch) | |
tree | 83384da1169917316ed165f148ac77e61e038b1f /sfx2 | |
parent | 723bb36255f525000d8a3f7911f57c1bcfd6f7ba (diff) |
#i121136 Improve Spreadsheet performance in some area (Patch 2)
Patch by: Wang Lei
Review by: Wang Lei
Notes
Notes:
reject: too horrible
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/objsh.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/objsh.hxx b/sfx2/inc/sfx2/objsh.hxx index 80266b707519..33ecaf877ee7 100644 --- a/sfx2/inc/sfx2/objsh.hxx +++ b/sfx2/inc/sfx2/objsh.hxx @@ -204,6 +204,8 @@ private: sal_Bool bHasName :1, // sal_True := bestehendes Objekt, sal_False := es ist ein neues Objekt bIsTmp :1; // temp. Storage sal_Bool bIsInGenerateThumbnail; //optimize thumbnail generate and store procedure to improve odt saving performance, i120030 + virtual void BeforeLoading( SfxMedium&, const ::rtl::OUString &, const ::rtl::OUString & ){}; + virtual void AfterLoading( SfxMedium&, const ::rtl::OUString &, const ::rtl::OUString & ){}; private: //#if 0 // _SOLAR__PRIVATE diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 19d2c1ae9d0a..776061ade457 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2364,6 +2364,7 @@ sal_Bool SfxObjectShell::ImportFrom( SfxMedium& rMedium ) ::rtl::OUString aTypeName( rMedium.GetFilter()->GetTypeName() ); ::rtl::OUString aFilterName( rMedium.GetFilter()->GetFilterName() ); + BeforeLoading( rMedium, aTypeName, aFilterName ); uno::Reference< lang::XMultiServiceFactory > xMan = ::comphelper::getProcessServiceFactory(); uno::Reference < lang::XMultiServiceFactory > xFilterFact ( xMan->createInstance( DEFINE_CONST_UNICODE( "com.sun.star.document.FilterFactory" ) ), uno::UNO_QUERY ); @@ -2463,6 +2464,8 @@ sal_Bool SfxObjectShell::ImportFrom( SfxMedium& rMedium ) } } } + AfterLoading( rMedium, aTypeName, aFilterName ); + return bRtn; //<- #i119492 }catch(const uno::Exception&) |