Kaydet (Commit) 296f8db0 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS opofxmlstorage (1.7.12); FILE MERGED

2006/09/05 15:29:35 mav 1.7.12.2: #122878# fix math object
2006/08/16 15:33:18 mav 1.7.12.1: #i68684# allow to insert iconified objects
üst c98507c4
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: xdialogcreator.cxx,v $ * $RCSfile: xdialogcreator.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: obo $ $Date: 2006-10-12 11:24:02 $ * last change: $Author: obo $ $Date: 2006-10-13 11:31:52 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -129,7 +129,7 @@ uno::Sequence< sal_Int8 > GetRelatedInternalID_Impl( const uno::Sequence< sal_In ...@@ -129,7 +129,7 @@ uno::Sequence< sal_Int8 > GetRelatedInternalID_Impl( const uno::Sequence< sal_In
// Math // Math
if ( ClassIDsEqual( aClassID, GetSequenceClassID( SO3_SM_OLE_EMBED_CLASSID_60 ) ) if ( ClassIDsEqual( aClassID, GetSequenceClassID( SO3_SM_OLE_EMBED_CLASSID_60 ) )
|| ClassIDsEqual( aClassID, GetSequenceClassID( SO3_SM_OLE_EMBED_CLASSID_60 ) ) ) || ClassIDsEqual( aClassID, GetSequenceClassID( SO3_SM_OLE_EMBED_CLASSID_8 ) ) )
return GetSequenceClassID( SO3_SM_CLASSID_60 ); return GetSequenceClassID( SO3_SM_CLASSID_60 );
return aClassID; return aClassID;
...@@ -161,13 +161,14 @@ uno::Reference< uno::XInterface > SAL_CALL MSOLEDialogObjectCreator::impl_static ...@@ -161,13 +161,14 @@ uno::Reference< uno::XInterface > SAL_CALL MSOLEDialogObjectCreator::impl_static
embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDialog( embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDialog(
const uno::Reference< embed::XStorage >& xStorage, const uno::Reference< embed::XStorage >& xStorage,
const ::rtl::OUString& sEntName, const ::rtl::OUString& sEntName,
const uno::Sequence< beans::PropertyValue >& lObjArgs ) const uno::Sequence< beans::PropertyValue >& aInObjArgs )
throw ( lang::IllegalArgumentException, throw ( lang::IllegalArgumentException,
io::IOException, io::IOException,
uno::Exception, uno::Exception,
uno::RuntimeException ) uno::RuntimeException )
{ {
embed::InsertedObjectInfo aObjectInfo; embed::InsertedObjectInfo aObjectInfo;
uno::Sequence< beans::PropertyValue > aObjArgs( aInObjArgs );
#ifdef WNT #ifdef WNT
...@@ -196,7 +197,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia ...@@ -196,7 +197,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
io.lpszFile = szFile; io.lpszFile = szFile;
io.cchFile = MAX_PATH; io.cchFile = MAX_PATH;
io.dwFlags = IOF_SELECTCREATENEW | IOF_DISABLELINK | IOF_DISABLEDISPLAYASICON; io.dwFlags = IOF_SELECTCREATENEW | IOF_DISABLELINK;
::vos::OModule aOleDlgLib; ::vos::OModule aOleDlgLib;
...@@ -238,7 +239,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia ...@@ -238,7 +239,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
//TODO: retrieve ClassName //TODO: retrieve ClassName
::rtl::OUString aClassName; ::rtl::OUString aClassName;
aObjectInfo.Object = uno::Reference< embed::XEmbeddedObject >( aObjectInfo.Object = uno::Reference< embed::XEmbeddedObject >(
xEmbCreator->createInstanceInitNew( aClassID, aClassName, xStorage, sEntName, lObjArgs ), xEmbCreator->createInstanceInitNew( aClassID, aClassName, xStorage, sEntName, aObjArgs ),
uno::UNO_QUERY ); uno::UNO_QUERY );
} }
else else
...@@ -271,11 +272,11 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia ...@@ -271,11 +272,11 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceByDia
throw uno::RuntimeException(); throw uno::RuntimeException();
aObjectInfo.Object = uno::Reference< embed::XEmbeddedObject >( aObjectInfo.Object = uno::Reference< embed::XEmbeddedObject >(
xEmbCreator->createInstanceInitFromMediaDescriptor( xStorage, sEntName, aMediaDescr, lObjArgs ), xEmbCreator->createInstanceInitFromMediaDescriptor( xStorage, sEntName, aMediaDescr, aObjArgs ),
uno::UNO_QUERY ); uno::UNO_QUERY );
} }
if ((io.dwFlags & IOF_CHECKDISPLAYASICON) && io.hMetaPict != NULL ) if ( ( io.dwFlags & IOF_CHECKDISPLAYASICON) && io.hMetaPict != NULL )
{ {
METAFILEPICT* pMF = ( METAFILEPICT* )GlobalLock( io.hMetaPict ); METAFILEPICT* pMF = ( METAFILEPICT* )GlobalLock( io.hMetaPict );
if ( pMF ) if ( pMF )
......
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