Re: FindAdv - MasterDocument Scope

2009-12-31 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Pavel Sanda wrote: >> we have to care what locale is set, i.e. when german ui is set we should >> search in >> german manuals - lfun help-open. >> > So, we have 2 possibilities: > > 1) introduce a simple "Open All Manuals" item in the Help Menu, which calls > "help-o

Re: FindAdv - MasterDocument Scope

2009-12-31 Thread Tommaso Cucinotta
Pavel Sanda wrote: we have to care what locale is set, i.e. when german ui is set we should search in german manuals - lfun help-open. So, we have 2 possibilities: 1) introduce a simple "Open All Manuals" item in the Help Menu, which calls "help-open" with a special argument (e.g., All), w

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Yes, r32678 fixes bug #4422 (when using the Advanced Find feature). You can > close/fixedintrunk it, AFAICS. >>> Next (hope easy) step should be "All open documents" scope. >>> >>> After that, it should be trivial to search for "All documentation", >>> >> that would

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread rgheck
On 12/30/2009 05:05 PM, Tommaso Cucinotta wrote: ? Is there any loop going over all manuals that builds the Help Menu ? No. It's hardcoded in classic.ui. rh

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Tommaso Cucinotta
Pavel Sanda wrote: it's in: r32678 and r32679 (cosmetics) so fixedintrunk for #4422 ? Yes, r32678 fixes bug #4422 (when using the Advanced Find feature). You can close/fixedintrunk it, AFAICS. Next (hope easy) step should be "All open documents" scope. After that, it should be trivial

FindAdv - OpenDocuments Scope (was: Re: FindAdv - MasterDocument Scope)

2009-12-30 Thread Tommaso Cucinotta
Tommaso Cucinotta wrote: Next (hope easy) step should be "All open documents" scope. r32680 Open more than 1 file (e.g., two or three Help Manuals), C-S-f, switch to "Advanced" pane, select "Open Documents", then keep searching, and you get occurrences in all open buffers (ordering is the sam

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Pavel Sanda wrote: >> i'm fine with that. >> pavel >> > it's in: r32678 and r32679 (cosmetics) so fixedintrunk for #4422 ? > Next (hope easy) step should be "All open documents" scope. > > After that, it should be trivial to search for "All documentation", that woul

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Tommaso Cucinotta
Pavel Sanda wrote: i'm fine with that. pavel it's in: r32678 and r32679 (cosmetics) Next (hope easy) step should be "All open documents" scope. After that, it should be trivial to search for "All documentation", once we have a means for "opening" all documentation buffers -- any way for d

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Perhaps it may be better to leave the user with the "puzzle" of whether > choosing "Current Document" or "Master Document" even if he/she has no clue i'm fine with that. pavel

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Tommaso Cucinotta
Tommaso Cucinotta wrote: ok, so I would disable the "master document" option if currentMainWA()->buffer()->masterBuffer() == currentMainWA()->buffer() or smth. like that. I'll circulate an updated patch before committing. please, find it attached (it also checks the children of the currentM

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Pavel Sanda
Tommaso Cucinotta wrote: >> std::vector is used many times - its maybe time for using clause in .cpp > didn't get it -- please, explain i just meant that having using namespace std; one does not need std:: prefixes. pavel

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Tommaso Cucinotta
Pavel Sanda wrote: Tommaso Cucinotta wrote: Unfortunately, it does not seem to currently work if you open the child document only (e.g., only b.lyx), but not its master -- if there is any with the expection of documents, which have set default master in settings there is no way how to

Re: FindAdv - MasterDocument Scope

2009-12-30 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Unfortunately, it does not seem to currently work if you open the child > document only (e.g., only b.lyx), but not its master -- if there is any with the expection of documents, which have set default master in settings there is no way how to know the master. so i thi

FindAdv - MasterDocument Scope

2009-12-29 Thread Tommaso Cucinotta
Hello, please, find attached an implementation of the "Master Document Scope" capability within the Advanced Find feature. When searching with C-S-f, goto the Advanced pane and switch from "Current Document" to "Master Document" scope, then search again and again, and the search template is