summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-06-21 13:36:56 +0000
committerMathias Bauer <mba@openoffice.org>2001-06-21 13:36:56 +0000
commit27f7ecd28c20be346a0dd2792c51598d9b6c61c5 (patch)
treed62e9e481a7b43c46a387f0ce4338b06f7ca6c55 /sfx2
parent8cc014557dceac381a4dc6fd8cc7f73c3e98412e (diff)
#88527#: allow property names as parameter names
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appuno.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index 85838e764586..35aa5572e8cd 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appuno.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: dv $ $Date: 2001-06-19 15:35:33 $
+ * last change: $Author: mba $ $Date: 2001-06-21 14:36:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -213,6 +213,19 @@ void TransformParameters( sal_uInt16 nSlotId, const ::com::sun::star::uno::Seque
const ::com::sun::star::beans::PropertyValue& rProp = pPropsVal[n];
String aName = rProp.Name ;
+ if ( pSlot->GetType()->Type() != TYPE(SfxVoidItem) )
+ {
+ if ( aName.CompareToAscii( pSlot->pName+1 ) == COMPARE_EQUAL )
+ {
+ SfxPoolItem* pItem = pSlot->GetType()->CreateItem();
+ pItem->SetWhich( nSlotId );
+ if ( pItem->PutValue( rProp.Value ) )
+ rSet.Put( *pItem );
+ delete pItem;
+ break;
+ }
+ }
+
sal_uInt16 nArgs;
for ( nArgs=0; nArgs<pSlot->nArgDefCount; nArgs++ )
{