summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/tablink.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 11:45:54 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 11:45:54 +0000
commitb7e302b146ca08c5d05ed988c0488b7bb7e4c700 (patch)
tree24e1aa667a3299e4c2a992d497a30e28648ad123 /sc/source/ui/docshell/tablink.cxx
parent0aab3e94b1d06ea2be8a228593ce100ce3b2c745 (diff)
INTEGRATION: CWS tl37 (1.25.32); FILE MERGED
2007/04/11 13:01:35 tl 1.25.32.2: RESYNC: (1.25-1.27); FILE MERGED 2007/02/06 19:22:51 nn 1.25.32.1: #i74099# UseInteractionHandler moved out of GuessFilter
Diffstat (limited to 'sc/source/ui/docshell/tablink.cxx')
-rw-r--r--sc/source/ui/docshell/tablink.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 3a6bbeab2c98..6fa2b6bd35ed 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tablink.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: vg $ $Date: 2007-02-27 13:09:55 $
+ * last change: $Author: hr $ $Date: 2007-06-27 12:45:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -476,7 +476,8 @@ String ScDocumentLoader::GetOptions( SfxMedium& rMedium ) // static
}
BOOL ScDocumentLoader::GetFilterName( const String& rFileName,
- String& rFilter, String& rOptions, BOOL bWithContent ) // static
+ String& rFilter, String& rOptions,
+ BOOL bWithContent, BOOL bWithInteraction ) // static
{
TypeId aScType = TYPE(ScDocShell);
SfxObjectShell* pDocSh = SfxObjectShell::GetFirst( &aScType );
@@ -501,6 +502,9 @@ BOOL ScDocumentLoader::GetFilterName( const String& rFileName,
SfxMedium* pMedium = new SfxMedium( rFileName, STREAM_STD_READ, FALSE );
if ( pMedium->GetError() == ERRCODE_NONE )
{
+ if ( bWithInteraction )
+ pMedium->UseInteractionHandler(TRUE); // #i73992# no longer called from GuessFilter
+
SfxFilterMatcher aMatcher( String::CreateFromAscii("scalc") );
if( bWithContent )
aMatcher.GuessFilter( *pMedium, &pSfxFilter );
@@ -538,7 +542,7 @@ ScDocumentLoader::ScDocumentLoader( const String& rFileName,
pMedium(0)
{
if ( !rFilterName.Len() )
- GetFilterName( rFileName, rFilterName, rOptions, TRUE );
+ GetFilterName( rFileName, rFilterName, rOptions, TRUE, bWithInteraction );
const SfxFilter* pFilter = ScDocShell::Factory().GetFilterContainer()->GetFilter4FilterName( rFilterName );