summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-06-10 12:32:28 +0000
committerKurt Zenker <kz@openoffice.org>2004-06-10 12:32:28 +0000
commit1df02b32cdc2fdb1327ed33eec844badbc021ac5 (patch)
tree623bc7c1df3a133417ab21d7ac1df64a3caafdb2 /sfx2
parent3addccdf73a5694ba406d51fded5b4e93dff9ddc (diff)
INTEGRATION: CWS fwk02ea (1.61.24); FILE MERGED
2004/05/26 13:29:18 mav 1.61.24.3: #116711# do not let Stream parameter of MediaDescriptor be cached by Model until it is correctly handled 2004/05/26 10:10:30 mba 1.61.24.2: #116829#: don't treat binary filters as own storage format 2004/05/25 08:15:38 as 1.61.24.1: #i28652# correct typo
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx22
1 files changed, 16 insertions, 6 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index edac75208a08..efb494e88a94 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sfxbasemodel.cxx,v $
*
- * $Revision: 1.64 $
+ * $Revision: 1.65 $
*
- * last change: $Author: rt $ $Date: 2004-05-19 08:35:17 $
+ * last change: $Author: kz $ $Date: 2004-06-10 13:32:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -978,10 +978,11 @@ sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUSTRING&
if ( m_pData->m_pObjectShell.Is() )
{
m_pData->m_sURL = rURL;
- m_pData->m_seqArguments = rArgs;
+ m_pData->m_seqArguments.realloc( rArgs.getLength() );
+ sal_Int32 nNewLen = 0;
- sal_Int32 nNewLength = rArgs.getLength();
for ( sal_Int32 nInd = 0; nInd < rArgs.getLength(); nInd++ )
+ {
if ( rArgs[nInd].Name.equalsAscii( "WinExtent" ) )
{
// the document should be resized
@@ -998,6 +999,15 @@ sal_Bool SAL_CALL SfxBaseModel::attachResource( const OUSTRING&
}
}
}
+ else if ( !rArgs[nInd].Name.equalsAscii( "Stream" ) )
+ {
+ // TODO/MAV: remove the above condition when the stream parameter is supported
+ m_pData->m_seqArguments[nNewLen++] = rArgs[nInd];
+ }
+ }
+
+ m_pData->m_seqArguments.realloc( nNewLen );
+
if( m_pData->m_pObjectShell->GetMedium() )
{
@@ -1241,7 +1251,7 @@ REFERENCE< XINTERFACE > SAL_CALL SfxBaseModel::getCurrentSelection() throw(::com
if ( xDocView.is() )
{
ANY xSel = xDocView->getSelection();
- // automatisch auskommentiert - Wird von UNO III nicht weiter untersttzt!
+ // automatisch auskommentiert - Wird von UNO III nicht weiter unterstuetzt!
// return xSel.getReflection() == XINTERFACE_getReflection()
// return xSel.getValueType() == ::getCppuType((const XINTERFACE*)0)
// ? *(REFERENCE< XINTERFACE > *) xSel.get() : REFERENCE< XINTERFACE > ();
@@ -2147,7 +2157,7 @@ void SAL_CALL SfxBaseModel::load( const SEQUENCE< PROPERTYVALUE >& seqArgument
pMedium->SetName( String(), sal_True );
pMedium->Init_Impl();
- if( pMedium->GetFilter()->IsOwnFormat() )
+ if( m_pData->m_pObjectShell->IsOwnStorageFormat_Impl( *pMedium ) )
{
// untitled document must be based on temporary storage
SvStorageRef xTmpStor = new SvStorage( ( m_pData->m_pObjectShell->GetStorage()->GetVersion() >= SOFFICE_FILEFORMAT_60), String() );