Re: NoGUI LyX

2000-10-04 Thread Allan Rae
On 4 Oct 2000, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Incidentally, why does the return below (insetinclude.C) return > Angus> ost.str().c_str() rather than ost.str()? > > Because ost.str() is always a basic_string, whereas string may

Re: NoGUI LyX

2000-10-04 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Incidentally, why does the return below (insetinclude.C) return Angus> ost.str().c_str() rather than ost.str()? Because ost.str() is always a basic_string, whereas string maybe a lyxstring. JMarc

Re: NoGUI LyX

2000-10-03 Thread Dekel Tsur
On Sun, Oct 01, 2000 at 10:38:38AM +0300, Dekel Tsur wrote: > However, with few changes, I've managed to make export work with no gui. > A patch is attached. Before submitting tihs patch, I did some tests, but I didn't perform "the test": exporting the user guide to Postscript. Of course, this t

Re: NoGUI LyX

2000-10-01 Thread Allan Rae
On Sun, 1 Oct 2000, Kayvan A. Sylvan wrote: > I've rolled some minor changed into Dekel's patch (simplify the > build-listerrors process). Applied in my tree will commit shortly. Allan. (ARRae)

Re: NoGUI LyX

2000-10-01 Thread Kayvan A. Sylvan
On Sun, Oct 01, 2000 at 10:38:39AM +0300, Dekel Tsur wrote: > On Wed, Sep 27, 2000 at 06:12:20PM +0200, Andre Poenitz wrote: > > > > Ok, so gui = false; is safe now: > > I tried and it doesn't work (i.e. LyX crashes). > For example, in Converter::runLaTeX we use a BufferView. > However, with fe

Re: NoGUI LyX

2000-10-01 Thread Dekel Tsur
On Wed, Sep 27, 2000 at 06:12:20PM +0200, Andre Poenitz wrote: > > Ok, so gui = false; is safe now: I tried and it doesn't work (i.e. LyX crashes). For example, in Converter::runLaTeX we use a BufferView. However, with few changes, I've managed to make export work with no gui. A patch is attach

Re: NoGUI LyX

2000-09-29 Thread John Levon
On Fri, 29 Sep 2000, Nicolas Thiery wrote: > SourceForge.net is providing support (CVS repository, anonymous ftp > site, Web page, Bug tracking system, mailing lists, forums ) for any > open-source project. I use it for my own projects. At least from the > purely technical point of view, setting

Re: NoGUI LyX

2000-09-29 Thread Nicolas Thiery
Hello, > as people pointed out last time I suggested such, like bugzilla, this > would require people with a knowledge of the codebase to adminstrate and > triage, prioritise etc. > > BUT this would be real advantage if people actually use it, especially for > tracking developer's/user's

Re: NoGUI LyX

2000-09-29 Thread John Levon
On 29 Sep 2000, Jean-Marc Lasgouttes wrote: > Even better would be a real bug-tracking database... > > JMarc > as people pointed out last time I suggested such, like bugzilla, this would require people with a knowledge of the codebase to adminstrate and triage, prioritise etc. BUT this would

Re: NoGUI LyX

2000-09-29 Thread Jean-Marc Lasgouttes
> "Baruch" == Baruch Even <[EMAIL PROTECTED]> writes: Baruch> On 27 Sep 2000, Jean-Marc Lasgouttes wrote: >> and fix session (I have several bug reports in my mail folder which >> depend on this). Baruch> How about updating a known bug list and a todo list on the Baruch> developers website f

Re: NoGUI LyX

2000-09-27 Thread Baruch Even
On 27 Sep 2000, Jean-Marc Lasgouttes wrote: > and fix session (I have several bug reports in my mail folder which > depend on this). How about updating a known bug list and a todo list on the developers website for all to see? It will help development since we'll all be able to know what bugs a

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
Attached is a log file of ALL the warnings posted when compiling the insets directory with DEC cxx -w0. I've editted this file so that each warning occurs ONCE only. It should, therefore, be useful! Angus make.log.bz2

Re: NoGUI LyX

2000-09-27 Thread Andre Poenitz
Ok, so gui = false; is safe now: --- schnipp - Index: lyx_main.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_main.C,v retrieving revision 1.50 diff -u -r1.50 lyx_main.C --- lyx_mai

Re: NoGUI LyX

2000-09-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Attached is a patch that cleans up the code in InsetBibtex and InsetInclude | as outlined earlier. | | Incidentally, why does the return below (insetinclude.C) return | ost.str().c_str() rather than ost.str()? Look for te same constuct other places

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
Attached is a patch that cleans up the code in InsetBibtex and InsetInclude as outlined earlier. Incidentally, why does the return below (insetinclude.C) return ost.str().c_str() rather than ost.str()? Angus static inline string unique_id() { static unsigned int seed = 1000;

Re: NoGUI LyX

2000-09-27 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> InsetInclude = A quick glance shows that Buffer * Angus> master can be replaced in each of the Latex(), DocBook(), Angus> Linuxdoc() methods. Angus> Are InsetInclude::getMasterFilename() and Angus> InsetInclude::Validate()

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
Further investigation: InsetBibtex In InsetBibtex::Latex(Buffer const *, ostream & os, bool /*fragile*/, bool/*fs*/) const use the buffer that is passed but not used. InsetBibtex::getKeys() is called only from Buffer. Call it as getKeys(this) No need, therefore t

Re: NoGUI LyX

2000-09-27 Thread Andre Poenitz
> Angus> Incidentally, in the case of InsetQuote, we can find the > Angus> language in other ways. Shall I do this (see other mail). It > Angus> doesn't address André's question about whether it's necessary, > Angus> but it'll work cleanly. > > Yes, for the case of InsetQuote, your solution seems

Re: NoGUI LyX

2000-09-27 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Incidentally, in the case of InsetQuote, we can find the Angus> language in other ways. Shall I do this (see other mail). It Angus> doesn't address André's question about whether it's necessary, Angus> but it'll work cleanly. Yes,

Re: NoGUI LyX

2000-09-27 Thread Juergen Vigna
On 27-Sep-2000 Angus Leeming wrote: > > This is a fair point that is valid not only in this case, but in all those > insets that store Buffer * buffer directly. Perhaps we should really think > hard about how to get rid of this store in all these cases. > Yes we should! > Incidentally, in t

Re: NoGUI LyX

2000-09-27 Thread Juergen Vigna
On 27-Sep-2000 Angus Leeming wrote: [snip] > features.bufferParams().language [snip] > why not use the Buffer * that is passed but not used? Good spotted! I use this and now InsetQuotes does not have any current_view. (as soon as I commit ;) While the first one is not needed anymore as I

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
JMarc> And what happens when insets are copy/pasted to another document? This is a fair point that is valid not only in this case, but in all those insets that store Buffer * buffer directly. Perhaps we should really think hard about how to get rid of this store in all these cases. Incidentall

Re: NoGUI LyX

2000-09-27 Thread Juergen Vigna
On 27-Sep-2000 Angus Leeming wrote: > Several of the insets already store Buffer * buffer directly, this being > passed to the inset through the constructor. If we do the same here and in > insetref.[Ch], then NONE of the insets use current_view at all. > > Shall I do this? Be aware that in g

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
Further investigation reveals alternative routes of finding the language: In InsetQuotes::Validate(LaTeXFeatures & features) use features.bufferParams().language in place of current_view->buffer()->GetLanguage() int InsetQuotes::Latex(Buffer const *, ostream & os,

Re: NoGUI LyX

2000-09-27 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Several of the insets already store Buffer * buffer directly, Angus> this being passed to the inset through the constructor. If we Angus> do the same here and in insetref.[Ch], then NONE of the insets Angus> use current_view at all

Re: NoGUI LyX

2000-09-27 Thread Andre Poenitz
> Several of the insets already store Buffer * buffer directly, this being > passed to the inset through the constructor. If we do the same here and in > insetref.[Ch], then NONE of the insets use current_view at all. > > Shall I do this? I live under the impression that current_view is a Bad

Re: NoGUI LyX

2000-09-27 Thread Angus Leeming
Several of the insets already store Buffer * buffer directly, this being passed to the inset through the constructor. If we do the same here and in insetref.[Ch], then NONE of the insets use current_view at all. Shall I do this? Angus On Wed, 27 Sep 2000, Andre Poenitz wrote: > The _only_ _tw

NoGUI LyX

2000-09-27 Thread Andre Poenitz
The _only_ _two_ obstacles for batch export to any format without popping up the GUI are around line 297 and line 236 in insets/insetquotes.C the use of current_view to get the buffer's language current_view->buffer()->GetLanguage(). If this is replaced by "default", it works! Of course, "de