summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-12-03 19:53:47 -0500
committerAugust Sodora <augsod@gmail.com>2011-12-03 19:53:47 -0500
commit2561e3f7860e79817658e536b91192cedaa4aab7 (patch)
tree0cf667b3d013a81b5ec8df8df12fbf0fccd29495 /sfx2
parentf4b3bd91ca177101d90f522e81163dc6421e14c9 (diff)
Revert "fdo#41865: Make macro recording work without experimental features"
This reverts commit f4b3bd91ca177101d90f522e81163dc6421e14c9.
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index a158f534d0ba..36b1e3e02f47 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -3037,6 +3037,14 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
case SID_RECORDMACRO :
{
SvtMiscOptions aMiscOptions;
+ const char* pName = GetObjectShell()->GetFactory().GetShortName();
+ if ( !aMiscOptions.IsExperimentalMode() ||
+ ( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
+ {
+ rSet.DisableItem( nWhich );
+ rSet.Put(SfxVisibilityItem(nWhich, sal_False));
+ break;
+ }
::rtl::OUString sProperty(RTL_CONSTASCII_USTRINGPARAM("DispatchRecorderSupplier"));
com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xSet(
@@ -3055,6 +3063,13 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
case SID_STOP_RECORDING :
{
SvtMiscOptions aMiscOptions;
+ const char* pName = GetObjectShell()->GetFactory().GetShortName();
+ if ( !aMiscOptions.IsExperimentalMode() ||
+ ( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
+ {
+ rSet.DisableItem( nWhich );
+ break;
+ }
::rtl::OUString sProperty(RTL_CONSTASCII_USTRINGPARAM("DispatchRecorderSupplier"));
com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xSet(