[Libreoffice-commits] .: starmath/inc starmath/source
Michael Meeks
mmeeks at kemper.freedesktop.org
Fri Oct 29 02:09:44 PDT 2010
starmath/inc/view.hxx | 4 +---
starmath/source/view.cxx | 7 +++++++
2 files changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 0bee48e601da2f4ba07917e0327c5cc080865f1a
Author: Michael Meeks <michael.meeks at novell.com>
Date: Fri Oct 29 10:00:58 2010 +0100
Enable in-line formula editing when in experimental mode
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index f867e4a..925b2cc 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 7e98170..120e3b5 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: */
More information about the Libreoffice-commits
mailing list