Kaydet (Commit) 63ecb90e authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS os71 (1.81.24); FILE MERGED

2006/10/23 15:37:44 os 1.81.24.5: RESYNC: (1.85-1.87); FILE MERGED
2006/08/30 17:32:35 os 1.81.24.4: RESYNC: (1.83-1.85); FILE MERGED
2006/06/05 16:22:14 os 1.81.24.3: RESYNC: (1.82-1.83); FILE MERGED
2006/02/08 10:08:26 os 1.81.24.2: RESYNC: (1.81-1.82); FILE MERGED
2005/12/02 11:14:23 os 1.81.24.1: #i58773# move legacy filters to binfilter - first check-in
üst 3dc2554d
......@@ -4,9 +4,9 @@
*
* $RCSfile: docsh2.cxx,v $
*
* $Revision: 1.87 $
* $Revision: 1.88 $
*
* last change: $Author: obo $ $Date: 2006-10-12 11:07:27 $
* last change: $Author: kz $ $Date: 2006-11-08 13:38:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -1872,7 +1872,8 @@ ULONG SwDocShell::LoadStylesFromFile( const String& rURL,
if( aMed.IsStorage() )
{
ULONG nVersion = pFlt ? pFlt->GetVersion() : 0;
pRead = nVersion >= SOFFICE_FILEFORMAT_60 ? ReadXML : ReadSw3;
DBG_ASSERT(nVersion >= SOFFICE_FILEFORMAT_60, "which file version?")
pRead = ReadXML;
// the SW3IO - Reader need the pam/wrtshell, because only then he
// insert the styles!
if( bUnoCall )
......@@ -1886,9 +1887,9 @@ ULONG SwDocShell::LoadStylesFromFile( const String& rURL,
}
else if( pFlt )
{
if( pFlt->GetUserData().EqualsAscii( FILTER_SWG ) ||
pFlt->GetUserData().EqualsAscii( FILTER_SWGV ))
pRead = ReadSwg;
// if( pFlt->GetUserData().EqualsAscii( FILTER_SWG ) ||
// pFlt->GetUserData().EqualsAscii( FILTER_SWGV ))
// pRead = ReadSwg;
pReader = new SwReader( aMed, rURL, pDoc );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment