On 04/10/2009 13:15, Pavel Sanda wrote:
you...@lyx.org wrote:
Author: younes
Date: Mon Sep 21 14:36:22 2009
New Revision: 31433
URL: http://www.lyx.org/trac/changeset/31433
Log:
Introduce a new LyXAction property 'NoInternal' to take care of LFUNs that
should not be applied to internal Buffers and use that in BufferView.
Modified: lyx-devel/trunk/src/BufferView.cpp
==============================================================================
--- lyx-devel/trunk/src/BufferView.cpp Mon Sep 21 14:29:40 2009 (r31432)
+++ lyx-devel/trunk/src/BufferView.cpp Mon Sep 21 14:36:22 2009 (r31433)
@@ -1092,11 +1093,13 @@
string const argument = to_utf8(cmd.argument());
Cursor& cur = d->cursor_;
+ // Don't dispatch function that does not apply to internal buffers.
+ if (buffer_.isInternal()&& lyxaction.funcHasFlag(cmd.action,
LyXAction::NoInternal))
+ return false;
+
switch (cmd.action) {
Abdel, why is this not done also in guiview?
Because all Buffer related LFUNs should either be in Buffer or in
BufferView... But maybe there are still some LFUNs that are not
transfered yet...
Abdel.