summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-07-18 12:09:26 +0000
committerOliver Bolte <obo@openoffice.org>2005-07-18 12:09:26 +0000
commitfbdb13aadd6e27d7df169cdccd00450d7ba40cee (patch)
treef8055c6a02bed052eb5a6fea23f7b7f303905e89
parent2406a3c29aa5859d433c197d4aa6747593b22b71 (diff)
INTEGRATION: CWS impress64 (1.10.484); FILE MERGED
2005/07/13 16:27:45 cl 1.10.484.1: #i50899# added a quickfix to let application remove unused items
-rw-r--r--svx/source/unodraw/UnoNameItemTable.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/svx/source/unodraw/UnoNameItemTable.cxx b/svx/source/unodraw/UnoNameItemTable.cxx
index a2a8f1fd73a9..04beda4af1ac 100644
--- a/svx/source/unodraw/UnoNameItemTable.cxx
+++ b/svx/source/unodraw/UnoNameItemTable.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoNameItemTable.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2004-11-18 09:19:15 $
+ * last change: $Author: obo $ $Date: 2005-07-18 13:09:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -185,6 +185,14 @@ void SAL_CALL SvxUnoNameItemTable::removeByName( const OUString& aApiName )
{
OGuard aGuard( Application::GetSolarMutex() );
+ // a little quickfix for 2.0 to let applications clear api
+ // created items that are not used
+ if( aApiName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("~clear~") ) )
+ {
+ dispose();
+ return;
+ }
+
String Name;
SvxUnogetInternalNameForItem( mnWhich, aApiName, Name );