]> git.lyx.org Git - features.git/commit
The Buffer::dispatch() patch.
authorRichard Heck <rgheck@comcast.net>
Mon, 6 Apr 2009 12:12:06 +0000 (12:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 6 Apr 2009 12:12:06 +0000 (12:12 +0000)
commit4daf7b5dfc3ee2372124a75437d17fe9cd5c5f08
treefb90cbe55071c8a2a9c23976205944016b0a31dd
parent14845fcaece4efb880e355be3f31caaec9f9c56f
The Buffer::dispatch() patch.

This patch enhances the Buffer::dispatch() method to make it a full-fledged
member of the dispatch sequence. The most immediate payoff is that LFUNs that
are handled in Buffer::dispatch() can be used from the command line.

We make better use of the DispatchResult object and return error information
through it, rather than using return values. (This was JMarc's suggestion.) We
also introduce a  corresponding Buffer::getStatus() method, and modify
BufferView::getStatus() to return a flag indicating whether a decision has been
made, as is already done in some other cases.

Finally, some LFUNs are moved to Buffer::dispatch(), including LFUN_BUFFER_PRINT.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29125 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/Buffer.h
src/BufferView.cpp
src/BufferView.h
src/DispatchResult.h
src/LyX.cpp
src/LyXFunc.cpp