diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-10-29 10:00:58 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-29 10:08:22 +0100 |
commit | 0bee48e601da2f4ba07917e0327c5cc080865f1a (patch) | |
tree | 1cd1180115a52dd6d975736d607f35243152dff9 | |
parent | 1ed42a4bc1437d844a4f4eeebc8a9fe5a266f17b (diff) |
Enable in-line formula editing when in experimental mode
-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: */ |