summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-10-22 10:48:39 +0200
committerMathias Bauer <mba@openoffice.org>2010-10-22 10:48:39 +0200
commit8409cfd0c4842fae1e087f8c932748f9305871a8 (patch)
treee02fb061778ac20844c871f0c4a39977c1323878 /sw/source/ui/shells
parentd75f8e9da5c8748e8f5f118c37f86b6d9169b866 (diff)
CWS changehid: #i113152#: arguments shall be checked only for plugins
Notes
Notes: split repo tag: writer_ooo/DEV300_m91
Diffstat (limited to 'sw/source/ui/shells')
-rw-r--r--sw/source/ui/shells/textsh.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx
index 2e39e1ebd6d4..52b60c66d178 100644
--- a/sw/source/ui/shells/textsh.cxx
+++ b/sw/source/ui/shells/textsh.cxx
@@ -292,17 +292,13 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
pName = &aName;
}
- SFX_REQUEST_ARG( rReq, pClassItem, SfxStringItem, FN_PARAM_1, sal_False );
SFX_REQUEST_ARG( rReq, pClassLocationItem, SfxStringItem, FN_PARAM_2, sal_False );
SFX_REQUEST_ARG( rReq, pCommandsItem, SfxStringItem, FN_PARAM_3, sal_False );
//TODO/LATER: recording currently not working, need code for Commandlist
svt::EmbeddedObjectRef xObj;
- if( pClassItem || pClassLocationItem || pCommandsItem )
+ if( nSlot == SID_INSERT_PLUGIN && ( pClassLocationItem || pCommandsItem ) )
{
- String sClass;
String sClassLocation;
- if(pClassItem)
- sClass = pClassItem->GetValue();
if(pClassLocationItem)
sClassLocation = pClassLocationItem->GetValue();