summaryrefslogtreecommitdiff
path: root/sw/source/ui/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/ui/wrtsh/wrtsh1.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh1.cxx b/sw/source/ui/wrtsh/wrtsh1.cxx
index 04f87e877aa5..64199404687c 100644
--- a/sw/source/ui/wrtsh/wrtsh1.cxx
+++ b/sw/source/ui/wrtsh/wrtsh1.cxx
@@ -123,6 +123,7 @@
#include <editeng/acorrcfg.hxx>
#include "PostItMgr.hxx"
+#include <sfx2/msgpool.hxx>
using namespace sw::mark;
using namespace com::sun::star;
@@ -442,16 +443,6 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName
pReq->AppendItem(SfxStringItem(FN_PARAM_2, pURL->GetMainURL(INetURLObject::NO_DECODE)));
pReq->AppendItem(SfxStringItem(FN_PARAM_3 , aDlg.GetCommands()));
} */
- case SID_INSERT_APPLET:
- /*
- if(pReq)
- {
- SvAppletObjectRef xApplet ( xIPObj );
- if(xApplet.Is())
- pReq->AppendItem(SfxStringItem(FN_PARAM_1 , xApplet->GetCodeBase()));
- pReq->AppendItem(SfxStringItem(FN_PARAM_2 , aDlg.GetClass()));
- pReq->AppendItem(SfxStringItem(FN_PARAM_3 , aDlg.GetCommands()));
- }*/
case SID_INSERT_FLOATINGFRAME:
/*
if(pReq && xFloatingFrame.Is())
@@ -466,9 +457,13 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName
pReq->AppendItem(SfxBoolItem(FN_PARAM_5, pDescriptor->HasFrameBorder()));
}*/
{
+ SfxSlotPool* pSlotPool = SW_MOD()->GetSlotPool();
+ const SfxSlot* pSlot = pSlotPool->GetSlot(nSlotId);
+ rtl::OString aCmd(".uno:");
+ aCmd += pSlot->GetUnoName();
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
SfxAbstractInsertObjectDialog* pDlg =
- pFact->CreateInsertObjectDialog( GetWin(), nSlotId, xStor, &aServerList );
+ pFact->CreateInsertObjectDialog( GetWin(), rtl::OUString( aCmd, aCmd.getLength(), RTL_TEXTENCODING_UTF8 ), xStor, &aServerList );
if ( pDlg )
{
pDlg->Execute();