summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-07-30 13:19:26 +0000
committerChristian Lippka <cl@openoffice.org>2001-07-30 13:19:26 +0000
commit286a75d6c1382b119629454b354704e2507acecf (patch)
treee1fadbff82752e5e648a27324a8f5154fbb193d5 /xmloff
parenta9427e2dc95773cca5e67c2d249ee2510c978ee5 (diff)
#90330# added XActionLockable for shapes to speed up text import
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpshap.cxx13
-rw-r--r--xmloff/source/draw/ximpshap.hxx9
2 files changed, 18 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index a621aaf864f0..ed01d29e15df 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpshap.cxx,v $
*
- * $Revision: 1.57 $
+ * $Revision: 1.58 $
*
- * last change: $Author: thb $ $Date: 2001-07-24 17:06:07 $
+ * last change: $Author: cl $ $Date: 2001-07-30 14:19:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -255,6 +255,9 @@ SdXMLShapeContext::~SdXMLShapeContext()
if(mxOldCursor.is())
GetImport().GetTextImport()->SetCursor( mxOldCursor );
+
+ if( mxLockable.is() )
+ mxLockable->removeActionLock();
}
//////////////////////////////////////////////////////////////////////////////
@@ -439,6 +442,12 @@ void SdXMLShapeContext::AddShape(uno::Reference< drawing::XShape >& xShape)
if( mnShapeId != -1 )
xImp->createShapeId( xShape, mnShapeId );
}
+
+ mxLockable = uno::Reference< document::XActionLockable >::query( xShape );
+
+ if( mxLockable.is() )
+ mxLockable->addActionLock();
+
}
//////////////////////////////////////////////////////////////////////////////
diff --git a/xmloff/source/draw/ximpshap.hxx b/xmloff/source/draw/ximpshap.hxx
index b05c8d6e17c0..a8971ba22edf 100644
--- a/xmloff/source/draw/ximpshap.hxx
+++ b/xmloff/source/draw/ximpshap.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ximpshap.hxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: cl $ $Date: 2001-06-19 14:53:22 $
+ * last change: $Author: cl $ $Date: 2001-07-30 14:19:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,10 @@
#ifndef _XIMPSHAPE_HXX
#define _XIMPSHAPE_HXX
+#ifndef _COM_SUN_STAR_DOCUMENT_XACTIONLOCKABLE_HPP_
+#include <com/sun/star/document/XActionLockable.hpp>
+#endif
+
#ifndef _COM_SUN_STAR_CONTAINER_XIDENTIFIERCONTAINER_HPP_
#include <com/sun/star/container/XIdentifierContainer.hpp>
#endif
@@ -111,6 +115,7 @@ protected:
com::sun::star::uno::Reference< com::sun::star::text::XTextCursor > mxOldCursor;
com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList> mxAttrList;
com::sun::star::uno::Reference< com::sun::star::container::XIdentifierContainer > mxGluePoints;
+ com::sun::star::uno::Reference< com::sun::star::document::XActionLockable > mxLockable;
rtl::OUString maDrawStyleName;
rtl::OUString maTextStyleName;