Manoj Rajagopalan wrote:
Hi all
Hi,
Could someone help me understand the difference between
LyXView::currentBufferView() and LyXView::documentBufferView()?
Thanks,
Manoj
currentBufferView() refers to the current BufferView, including for
example the one that is created when you use the Advanced Search
functionality (C-S-f) in a specific pane on the right.
documentBufferView() refers always to the view's main document
BufferView, so, even if the Advanced Search BufferView is currently
selected for editing, calling documentBufferView() retrieves the main
document's BV (the one relative to the real document you're editing with
LyX).
Hope this clarifies.
T.