summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-10-29 14:39:07 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-29 14:39:07 +0100
commite89fdd128f4313400eb18f182381309b9aa678c5 (patch)
tree94aaf98f5aa0d1d168afd9040980dd984e4655f8 /sfx2
parent3ae6596222b071e6f2a32b1f07191538db548072 (diff)
disable macro recording unless in experimental mode
Macro recording is extremely buggy, and generates un-readable or debuggable macros, keep it available, but only in experimental mode.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index e281c53b1ef6..cd868c512117 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -49,6 +49,7 @@
#include <svl/undo.hxx>
#include <vcl/msgbox.hxx>
#include <svtools/sfxecode.hxx>
+#include <svtools/miscopt.hxx>
#include <svtools/ehdl.hxx>
#include <tools/diagnose_ex.h>
#include <com/sun/star/container/XIndexAccess.hpp>
@@ -3242,8 +3243,10 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
case SID_RECORDMACRO :
{
+ SvtMiscOptions aMiscOptions;
const char* pName = GetObjectShell()->GetFactory().GetShortName();
- if ( strcmp(pName,"swriter") && strcmp(pName,"scalc") )
+ if ( !aMiscOptions.IsExperimentalMode() ||
+ ( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
{
rSet.DisableItem( nWhich );
break;
@@ -3265,8 +3268,10 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
case SID_STOP_RECORDING :
{
+ SvtMiscOptions aMiscOptions;
const char* pName = GetObjectShell()->GetFactory().GetShortName();
- if ( strcmp(pName,"swriter") && strcmp(pName,"scalc") )
+ if ( !aMiscOptions.IsExperimentalMode() ||
+ ( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
{
rSet.DisableItem( nWhich );
break;