summaryrefslogtreecommitdiff
path: root/sfx2/source/control/msg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/control/msg.cxx')
-rw-r--r--sfx2/source/control/msg.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/sfx2/source/control/msg.cxx b/sfx2/source/control/msg.cxx
index 95ab30d49e..5f26113b4b 100644
--- a/sfx2/source/control/msg.cxx
+++ b/sfx2/source/control/msg.cxx
@@ -29,9 +29,6 @@
#include "precompiled_sfx2.hxx"
#include <svl/itempool.hxx>
#include <svl/eitem.hxx>
-#ifndef GCC
-#endif
-
#include <sfx2/msg.hxx>
//====================================================================
@@ -63,4 +60,16 @@ USHORT SfxSlot::GetWhich( const SfxItemPool &rPool ) const
return nMasterSlotId;
}
+::rtl::OString SfxSlot::GetCommand() const
+{
+ rtl::OString sRet(".uno:");
+ sRet += pUnoName;
+ return sRet;
+}
+
+::rtl::OUString SfxSlot::GetCommandString() const
+{
+ rtl::OString aCmd(GetCommand());
+ return rtl::OUString( aCmd, aCmd.getLength(), RTL_TEXTENCODING_UTF8 );
+}