stuart macgregor wrote:
> lyx-1.3.3/development/lyxserver/ has two demos, one in tcl and one
> in C.
>
> The C example needs xforms, which I have not yet installed (I'm
> using a GTK lyx build).
This seems unlikely. LyX 1.3.x has xforms and qt frontends...
> The tcl example needs 'the addinput command'. Where does this
> come from - I have 'ActiveTcl 8.4.3.0 May, 2003' installed,
> but I see no mention of this command?
sampleclient.tcl was last updated 4 years ago. It may well be
suffering from bit rot. The perl example code is similarly ancient.
server_monitor.c does work (last updated only 16 months ago ;-)
> I was going to have a go at a gvim interface for nice interactive
> editing of noweb doc 'Scrap' paragraphs.
>
> Also:
>
> Is there any lyc command to find the current paragraph type (testing
> for in-scrap)?
A search of LyXAction.C suggests "server-get-layout"... Hmmmm. You'll
also need to apply this patch if you want to get any useful
information...
Index: src/text3.C
@@ -1096,7 +1096,7 @@ Inset::RESULT LyXText::dispatch(FuncRequ
break;
case LFUN_GETLAYOUT:
- cmd.message(tostr(cursor.par()->layout()));
+ cmd.message(cursor.par()->layout()->name());
break;
> Is is possible to search for a text pattern only in a particular
> (Scrap) paragraph type? - or to find if a search has succeded?
No. Search for the pattern and then use "server-get-layout".
> What is the best way to set ctrl-enter eol marks using the server
> pipes?
"break_line"
--
Angus