diff options
-rw-r--r-- | starmath/inc/view.hxx | 4 | ||||
-rw-r--r-- | starmath/source/view.cxx | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index f867e4a9df..925b2cc07e 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -313,9 +313,7 @@ public: void SetInsertIntoEditWindow(BOOL bEditWindowHadFocusLast = TRUE){ bInsertIntoEditWindow = bEditWindowHadFocusLast; } - bool IsInlineEditEnabled() const { - return false; - } + bool IsInlineEditEnabled() const; }; #endif diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 7e98170f5c..120e3b5bfe 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -56,6 +56,7 @@ #include <svl/ptitem.hxx> #include <svl/stritem.hxx> #include <svtools/transfer.hxx> +#include <svtools/miscopt.hxx> #include <svl/undo.hxx> #include <svl/whiter.hxx> #include <svx/dialogs.hrc> @@ -826,6 +827,7 @@ struct SmViewShell_Impl { sfx2::DocumentInserter* pDocInserter; SfxRequest* pRequest; + SvtMiscOptions aOpts; SmViewShell_Impl() : pDocInserter( NULL ) @@ -1994,4 +1996,9 @@ void SmViewShell::Notify( SfxBroadcaster& , const SfxHint& rHint ) } } +bool SmViewShell::IsInlineEditEnabled() const +{ + return pImpl->aOpts.IsExperimentalMode(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |