summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-07-06 09:10:50 +0000
committerRüdiger Timm <rt@openoffice.org>2007-07-06 09:10:50 +0000
commit1ba93d58cb73fb3fcb95aa31beaf38bac2e5a8db (patch)
tree079809b733f8e9066f60bacda3dce674086284ca /embeddedobj
parent77d020e45b4faaaaf751c4da611562bc348de864 (diff)
INTEGRATION: CWS oj14 (1.23.2); FILE MERGED
2007/03/14 15:48:06 mav 1.23.2.8: #i75401# no need to use implementation service names any more 2007/02/20 20:48:15 oj 1.23.2.7: merge conflict 2007/02/20 16:22:16 oj 1.23.2.6: RESYNC: (1.33-1.35); FILE MERGED 2006/11/08 08:07:54 oj 1.23.2.5: use new MimeConfigurationHelper 2006/11/07 08:42:29 oj 1.23.2.4: RESYNC: (1.29-1.33); FILE MERGED 2006/07/04 07:25:16 oj 1.23.2.3: RESYNC: (1.26-1.29); FILE MERGED 2006/03/20 13:48:09 oj 1.23.2.2: RESYNC: (1.23-1.26); FILE MERGED 2006/03/20 08:42:51 oj 1.23.2.1: use mimeconfighelper
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/olepersist.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/embeddedobj/source/msole/olepersist.cxx b/embeddedobj/source/msole/olepersist.cxx
index 326d1285c31b..4b063e16ad20 100644
--- a/embeddedobj/source/msole/olepersist.cxx
+++ b/embeddedobj/source/msole/olepersist.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: olepersist.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: obo $ $Date: 2007-01-23 07:33:51 $
+ * last change: $Author: rt $ $Date: 2007-07-06 10:10:50 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -98,20 +98,17 @@
#include <rtl/logfile.hxx>
#include <comphelper/storagehelper.hxx>
+#include <comphelper/mimeconfighelper.hxx>
#include <comphelper/classids.hxx>
#include <olecomponent.hxx>
#include <closepreventer.hxx>
-#include <convert.hxx>
using namespace ::com::sun::star;
+using namespace ::comphelper;
-//------------------------------------------------------
-// TODO: probably later those common functions should be moved
-// to a separate helper library.
-
-//-----------------------------------------------
+//-------------------------------------------------------------------------
sal_Bool KillFile_Impl( const ::rtl::OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory )
{
if ( !xFactory.is() )
@@ -832,7 +829,7 @@ uno::Reference< io::XStream > OleEmbeddedObject::TryToRetrieveCachedVisualRepres
{
uno::Reference< embed::XClassifiedObject > xClassified( xNameContainer, uno::UNO_QUERY_THROW );
uno::Sequence< sal_Int8 > aClassID;
- if ( ClassIDsEqual( xClassified->getClassID(), GetSequenceClassID( SO3_OUT_CLASSID ) ) )
+ if ( MimeConfigurationHelper::ClassIDsEqual( xClassified->getClassID(), MimeConfigurationHelper::GetSequenceClassID( SO3_OUT_CLASSID ) ) )
{
// this is an OLE object wrongly stored in 5.0 format
// this object must be repaired since SO7 has done it
@@ -1029,8 +1026,8 @@ void OleEmbeddedObject::OnViewChanged_Impl()
if ( m_aVerbExecutionController.CanDoNotification()
&& m_pOleComponent && m_nUpdateMode == embed::EmbedUpdateModes::ALWAYS_UPDATE )
{
- OSL_ENSURE( ClassIDsEqual( m_aClassID, GetSequenceClassID( 0x852ee1c9, 0x9058, 0x44ba, 0x8c,0x6c,0x0c,0x5f,0xc6,0x6b,0xdb,0x8d ) )
- || ClassIDsEqual( m_aClassID, GetSequenceClassID( 0xcf1b4491, 0xbea3, 0x4c9f, 0xa7,0x0f,0x22,0x1b,0x1e,0xca,0xef,0x3e ) ),
+ OSL_ENSURE( MimeConfigurationHelper::ClassIDsEqual( m_aClassID, MimeConfigurationHelper::GetSequenceClassID( 0x852ee1c9, 0x9058, 0x44ba, 0x8c,0x6c,0x0c,0x5f,0xc6,0x6b,0xdb,0x8d ) )
+ || MimeConfigurationHelper::ClassIDsEqual( m_aClassID, MimeConfigurationHelper::GetSequenceClassID( 0xcf1b4491, 0xbea3, 0x4c9f, 0xa7,0x0f,0x22,0x1b,0x1e,0xca,0xef,0x3e ) ),
"Expected to be triggered for STAMPIT only! Please contact developers!\n" );
// The view is changed while the object is in running state, save the new object