Source Code inset?

2004-05-15 Thread Andreas Klostermann
Hi! I'd like to be able to inline styled source code (python, C++, whatever) into a Lyx document. I tried to use SciTE (a Programmer's text editor) to export code to Tex, but I can't include the resulting file nor can I ERT it or anything else. Even if so, I'd have to export it manually every ti

[patch] remove const casts

2004-05-15 Thread Georg Baum
Some time ago when lyx was crashing every second I played a bit with const_casts. The attached patch exchanges some of them with the use of const_iterators. It makes also Paragraph::simpleTeXOnePar const. Furthermore I think that this line in Paragraph::startTeXParParams should be a "+=" instea

Re: Make DVI export with graphics work

2004-05-15 Thread Georg Baum
The patch was incomplete, the missing bit is attached. Georg diff -p -r -U 4 -X excl.tmp lyx-1.4-clean/src/outputparams.h lyx-1.4-cvs/src/outputparams.h --- lyx-1.4-clean/src/outputparams.h 2004-05-14 19:53:31.0 +0200 +++ lyx-1.4-cvs/src/outputparams.h 2004-05-14 18:27:49.0 +0200 @

mouse wheel

2004-05-15 Thread Alfredo Braunstein
Scroll with the mouse wheel without "cursor follows scrollbar" is severely broken in xforms. The qt version works because scroll doesn't get through LyX dispatch mechanism. In xforms 1) mouse button 4 & 5 (mouse wheel) open collapsibles (because they get dispatched to the tip inset before getting d

Re: Make DVI export with graphics work

2004-05-15 Thread Georg Baum
Am Montag, 10. Mai 2004 15:49 schrieb Angus Leeming: > > What do you think? Should I use the hack described above and collect > > the data in latex(), or should I do it in validate(), and how should > > I pass the files to Exporter::Export()? > > However you think it should be done best. Here com

Re: 1.4.0cvs crash

2004-05-15 Thread Alfredo Braunstein
Robin S. Socha wrote: > ssertion triggered in virtual void InsetText::draw(PainterInfo&, int, int) > const by failing check "!text_.paragraphs().begin()->rows.empty()" in file > insettext.C:192 The bug responsible for this is the following: all handled LFUNS (including opening/closing footnotes)

Re: [patch] navigating

2004-05-15 Thread Alfredo Braunstein
Alfredo Braunstein wrote: > second attempt to have an updateless cursor movement. Except that I forgot to restrict it to the few LFUNs that need it. Third attempt. Alfredo ? PosIterator.C-save ? PosIterator.h-save ? all.diff ? bfs.cpp ? files ? save ? frontends/screen.C-save Index: cursor.C

[patch] navigating

2004-05-15 Thread Alfredo Braunstein
second attempt to have an updateless cursor movement. The structural work was already done some months ago... ;-) Can anyone see something wrong with this? Alfredo ? PosIterator.C-save ? PosIterator.h-save ? all.diff ? bfs.cpp ? files ? save ? frontends/screen.C-save Index: cursor.C

Another comment about http://www.devel.lyx.org/cvs.php3

2004-05-15 Thread Reuben Thomas
This entry is rather confusing: lyx This is the unstable development branch, and is not in use anymore. Use this only if you know want to see in what direction LyX is going (e.g. the new LyX kernel). Expect this to crash frequently. The second and third sentences should be deleted (if I understa

http://www.devel.lyx.org/cvs.php3

2004-05-15 Thread Reuben Thomas
The link to CVS would perhaps be better to the official home site for CVS www.cvshome.org, which also has rather more obvious links to binary distributions &c. -- http://rrt.sc3d.org/ | historian, n. a broad-gauge gossip (Bierce)

lyx crash

2004-05-15 Thread Maurizio Monge
Hello. I compiled lyx cvs (lyx-devel) on and amd64-pc-linux, with gcc-3.4, latest binutils and qt font-end (qt-3.3.2). I get: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Aborted Have you an