Kaydet (Commit) 1d060568 authored tarafından Julien Nabet's avatar Julien Nabet

Replace MACRO_PRFIX and MACRO_POSTFIX in eventsupplier.cxx

Change-Id: Ifd08a3414468e7685f55af66ed05f7a88187fa0e
Reviewed-on: https://gerrit.libreoffice.org/23606Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 709e99af
......@@ -47,10 +47,6 @@
#include <sfx2/frame.hxx>
#include <macroloader.hxx>
#define MACRO_PRFIX "macro://"
#define MACRO_POSTFIX "()"
using namespace css;
......@@ -458,10 +454,10 @@ void SfxEvents_Impl::NormalizeMacro( const ::comphelper::NamedValueCollection& i
}
else if ( !aMacroName.isEmpty() )
{
aScript = MACRO_PRFIX;
aScript = "macro://";
if ( aLibrary != SfxGetpApp()->GetName() && aLibrary != "StarDesktop" && aLibrary != "application" )
aScript += ".";
aScript += "/" + aMacroName + MACRO_POSTFIX;
aScript += "/" + aMacroName + "()";
}
else
// wrong properties
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment