Re: InsetText::the_locking_inset

2001-12-05 Thread Allan Rae
On Thu, 6 Dec 2001, Allan Rae wrote: > Ahhh I just spotted something interesting -- another case -- this time > a segfault. This also crashes if you leave out the > "insert->figure->float" step but importantly the cursor has to have > been in a dummy position in the tabular when you click on the

InsetText::the_locking_inset

2001-12-05 Thread Allan Rae
pure virtual method called _and_ a segfault === I clicked on a figure in a minipage in a float and the dialog popped up and then I got an abort. However seeing as how the initial mouse click on the figure resulted in the cursor being placed in the middle

vspace

2001-12-05 Thread Herbert Voss
looks cool ... I have only one problem: why should I see, that I don't have any space where by default is no additional space ... ;-) the floatingfigure is converted from 1.1.6 to 1.2 by lyx. Herbert -- http://www.lyx.org/help/

[PATCH][RFC] FormTabular and width/alignment

2001-12-05 Thread John Levon
Any reason why we can't just do like the attached patch does ? thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/frontends/xforms/FormTabula

Another table selection problem

2001-12-05 Thread John Levon
This code : 978 if ((ocell == sel_cell_end) || 979 (tabular->column_of_cell(ocell)>tabular->column_of_cell(actcell))) 980 setSelection(start, tabular->GetCellAbove(sel_cell_end)); 981 else 982

[PATCH][RFC] Table selection

2001-12-05 Thread John Levon
first, the bugs I noticed in both old and new code : 1) attached file : selection the multicolumn cell, then press up. the topright cell is not selected. 2) TableExamples.lyx - the minipage is screwed ! Now, my patch. 1) 1x1 entire table selections work perfectly. 2) more spreadsheet like fe

Re: #ifdef THIS_DOES_NOT_WORK

2001-12-05 Thread John Levon
On Thu, Dec 06, 2001 at 03:21:22PM +1300, Michael Koziarski wrote: > 451296 redo is losing text > > as well. I was looking at this one a while back. actually, that should be fixed now ? john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a

Re: Bug list - Update

2001-12-05 Thread Allan Rae
On Wed, 5 Dec 2001, John Levon wrote: > On Wed, Dec 05, 2001 at 04:38:09PM +1000, Allan Rae wrote: > > > Can someone (Jürgen?) remind me why it is a Good Thing to have every > > inset have its own LyXText? Why can't we just use the same LyXText > > for everything in a given buffer? > > how would

Re: #ifdef THIS_DOES_NOT_WORK

2001-12-05 Thread Michael Koziarski
At 01:58 AM 12/6/01 +, John Levon wrote: >in undo_funcs.C::textHandleUndo. Why doesn't it work ? Its comment >seems to imply it needs enabling to fix : > >451273 tables-in-tables, redo, and size updates > >and > >451272 Note inset and undo background problem I think it also needs enabling

#ifdef THIS_DOES_NOT_WORK

2001-12-05 Thread John Levon
in undo_funcs.C::textHandleUndo. Why doesn't it work ? Its comment seems to imply it needs enabling to fix : 451273 tables-in-tables, redo, and size updates and 451272 Note inset and undo background problem ?? thanks john -- "Faced with the prospect of rereading this book, I would rather

[PATCH] fix [ lyxbugs-Bugs-457381 ] keep text selected when font changes

2001-12-05 Thread John Levon
JMarc, don't you think we should just remove the line ? thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog

[PATCH] fix [ lyxbugs-Bugs-457396 ] cursor positioning with search

2001-12-05 Thread John Levon
please apply thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-05 Thread Ben Stanley
Please let me know if the attached patch fixes this problem. I also tried to fix the Solaris compile problem - Kayvan, could you please test it? I still need to get the proper DepTable patch out. The patch that is currently in 1.2 is b0rken. Ben. Jean-Marc Lasgouttes wrote: >>"Ben" == B

Re: [PATCH] fix some inset-in-inset update problems

2001-12-05 Thread Allan Rae
On Wed, 5 Dec 2001, Andre Poenitz wrote: > On Wed, Dec 05, 2001 at 11:57:30AM +0100, Juergen Vigna wrote: > > Anyway I love "other" things much more then stacks #:O) > > Shouldn't this depend on you position in the stack? > > Andre', just thinking... And nobody said there has to be just one stac

[PATCH] Re: Bug list - another major update

2001-12-05 Thread John Levon
On Tue, Dec 04, 2001 at 11:07:36PM +0100, Michael Schmitt wrote: > >>- When adding a label to a figure float, LyX offers, e.g., "sub: >>subsection>". In 99% > >> of all cases, a section name is not useful inside a float > > > >so it should just be blank ? > > Either blank - or it proposes the co

Allan: 1.1.5cvs IEICE document bug

2001-12-05 Thread John Levon
From: Allan Rae <[EMAIL PROTECTED]> > Take a 1.1.5cvs (latest) created IEICE class document > and load it into > 1.2.0cvs. Change document class to book. > > Caption becomes Address > LyX-Code becomes Paragraph* > LaTeX becomes Date Can I have this document ? I (sincerely) hope that all the a

Re: patches

2001-12-05 Thread John Levon
On Thu, Dec 06, 2001 at 12:25:37AM +0100, Lars Gullik Bjønnes wrote: > I have applied all the patches that I currently had a tab on, so if > anyone have patches ready that they want reviewed/applied; > please resend. attached. If you still have an issue with the X selection thing, tell me what

Re: Annoying LyX bugs

2001-12-05 Thread John Levon
On Thu, Dec 06, 2001 at 10:16:00AM +1100, Ben Stanley wrote: > >(6) I just installed Lyx1.1.6fix3-1 (the binary rpm) on my RedHat 7.2 > >box and now the rendering of eps figures in LyX is broken: It still says > >"rendering", but nothing appears. The same file works correctly under > >older RedH

Re: Annoying LyX bugs

2001-12-05 Thread Ben Stanley
Ronald Holzloehner wrote: >(6) I just installed Lyx1.1.6fix3-1 (the binary rpm) on my RedHat 7.2 >box and now the rendering of eps figures in LyX is broken: It still says >"rendering", but nothing appears. The same file works correctly under >older RedHat versions. > This is actually a bug in th

Re: Annoying LyX bugs

2001-12-05 Thread Ben Stanley
I have been working on improving error handling in my personal tree of lyx-1.1.6fix3... I have already written code which addresses some of these problems, but I have not contributed the patches. Some of the code required a large amount of infrastructure, and as such would not be accepted for

Re: [PATCH] remove LFUN_LAYOUTNO

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 10:54:48PM +0100, Lars Gullik Bjønnes wrote: > I guess some code changed so that we select by contents instead of by > index in the Layouts dropdown. yes, we use Combox::getline(). regards john -- "Faced with the prospect of rereading this book, I would rather have m

Re: [PATCH] remove LFUN_LAYOUTNO

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 08:57:55PM +0100, Lars Gullik Bjønnes wrote: > | it is unused ... > > Are you sure? It was used a "short" while ago. yep - it doesn't have a bindable name and : moz lyx-devel 641 cgrepall LFUN_LAYOUTNO moz lyx-devel 642 regards john -- "Faced with the prospect of rer

Re: [PATCH] lyxlex cleanup

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 07:42:12PM +0100, Andre Poenitz wrote: > > > especially if there are more "cases" or (a) and (d) are "enforcing" > > > prerequisites for "//stuff"... > > > > but this loses the semantic information that a and d are mutually exclusive. > > That's important. > > The sema

Re: [PATCH] lyxlex cleanup

2001-12-05 Thread Andre Poenitz
On Wed, Dec 05, 2001 at 06:34:00PM +, John Levon wrote: > > especially if there are more "cases" or (a) and (d) are "enforcing" > > prerequisites for "//stuff"... > > but this loses the semantic information that a and d are mutually exclusive. > That's important. The semantics are the same

Re: [PATCH] lyxlex cleanup

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 07:31:04PM +0100, Andre Poenitz wrote: > What do the code rules say for > > if (a) { > return b; > } else if (d) { > return e; > } else { > // main stuff > return c; > } > > I'd actually prefer > > if (a) { > return b; > } > if (d) { >

Re: [PATCH] lyxlex cleanup

2001-12-05 Thread Andre Poenitz
On Wed, Dec 05, 2001 at 06:17:29PM +, John Levon wrote: > please apply ... What do the code rules say for if (a) { return b; } else if (d) { return e; } else { // main stuff return c; } I'd actually prefer if (a) { return b; } if (d) { return e; }

Re: layout->Paragraph and stippled lines

2001-12-05 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> > > writes: > > Juergen> Propose a good (i.e. ugly) name and I will change it in the > Juergen> Paragraph dialog (on which I am still breeding, i.e. on the > Juergen> Implementation of VSpace Stretch and

[PATCH] tiny cleanup

2001-12-05 Thread John Levon
please apply thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

[PATCH] lyxlex cleanup

2001-12-05 Thread John Levon
please apply ... thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

[PATCH] remove LFUN_LAYOUTNO

2001-12-05 Thread John Levon
it is unused ... thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

[PATCH] uncompiled files

2001-12-05 Thread John Levon
please apply thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

[PATCH] fix ascii insert

2001-12-05 Thread John Levon
please apply thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog ===

Quoting in InsetCommands

2001-12-05 Thread John Levon
An unanswered question: is it OK to add code to quote '_' etc. in InsetCommand::asLyXCommand() so the user doesn't have to ? I would like (for this purpose) to add LRegExp::replace(pattern, replacement) : regexp.replace("[^\\]_", "\\_"); What other chars need to be escaped ? thanks john --

math-panel with button

2001-12-05 Thread Herbert Voss
attached a xpm-image for a math-panel. makes it easier to activate it ... Herbert -- http://www.lyx.org/help/ /* XPM */ static char const * sans_xpm[] = { "20 20 2 1", " c None", ". c #", " . . ", " .... . . ", " ... ... ", " .. .. .

[PATCH] insetAllowed comment

2001-12-05 Thread John Levon
This change really needs a comment ... please apply john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/insets/insettext.C =

Re: invisible math symbols?

2001-12-05 Thread Jean-Marc Lasgouttes
> "Shigeru" == Shigeru Miyata <[EMAIL PROTECTED]> writes: Shigeru> It is natural that there are fonts of such XLFD with Shigeru> incompatible charcter sets/encodings. Shigeru> Try lyx -dbg font on a machine with the symptom. Trying lyx -dbg shows that the font used is -urw-symbol-* (do not

[PATCH] fix combo box env. update

2001-12-05 Thread John Levon
This patch updates the combo on inset unlock (bug 457558) please apply thanks john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought" Index: src/ChangeLog

Re: LyX bug with date in template (?)

2001-12-05 Thread Dekel Tsur
On Wed, Dec 05, 2001 at 05:09:02PM +0100, Juergen Vigna wrote: > Well actually this is a user-question you should send at [EMAIL PROTECTED] > But I guess the only posibilty is instead of using \date use a hardcoded > date. Why we don't have a Date layout for the letter documentclass ?

RE: Another crasher !

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > > open the attached, and follow the instructions. Fixed (empty-para-thing ;)! -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-04

RE: LyX bug with date in template (?)

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 Janus Sandsgaard wrote: > > I run LyX v. 1.1.6fix3 and notices something odd: When I write a letter > using the letter.lyx-template the template uses the actuel date (today) > and not the create date, which is a problem if I am going to print the > letter later. Well actually

LyX bug with date in template (?)

2001-12-05 Thread Janus Sandsgaard
I run LyX v. 1.1.6fix3 and notices something odd: When I write a letter using the letter.lyx-template the template uses the actuel date (today) and not the create date, which is a problem if I am going to print the letter later. Any suggestions how to fix this? -j -- Men are from Earth. Wo

Re: [PATCH] mmap CRC checking 1.2cvs

2001-12-05 Thread Jean-Marc Lasgouttes
> "Ben" == Ben Stanley <[EMAIL PROTECTED]> writes: Ben> This is a version of the mmap patch which applies to cvs HEAD. Compilation of 1.2.0cvs with compaq cxx dies with: cxx: Error: ../../../lyx-devel/src/support/lyxsum.C, line 43: operand types are incompatible ("void *" and "lon

Re: layout->Paragraph and stippled lines

2001-12-05 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Propose a good (i.e. ugly) name and I will change it in the Juergen> Paragraph dialog (on which I am still breeding, i.e. on the Juergen> Implementation of VSpace Stretch and Shrink in the GUI). It seems to be dissicult

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > if you say so. I don't know how this would happen if I press control-v when I am > editing inside an insettext inside an insetert though ! Well you could follow it with your debugger but just for you the solution is: LyXFunc's dispatch function calls the Inse

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 04:00:31PM +0100, Juergen Vigna wrote: > > You can guarantee that bv_->theLockingInset is an insetERT at all of these points ? > > Not the insettext ? > > No I can't it can also be a InsetTabular, InsetFootnote, ..., but obviously > it can also be a InsetERT. I don't thin

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > You can guarantee that bv_->theLockingInset is an insetERT at all of these points ? > Not the insettext ? No I can't it can also be a InsetTabular, InsetFootnote, ..., but obviously it can also be a InsetERT. I don't think it can be a InsetText at all! > cool

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 03:33:55PM +0100, Juergen Vigna wrote: > > On 05-Dec-2001 John Levon wrote: > > > read your own source ! Not only does that already exist, you need to show me > > how that would work given the existing calls to insetAllowed(). Here they are : > > > > BufferView::Pimpl::

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > read your own source ! Not only does that already exist, you need to show me > how that would work given the existing calls to insetAllowed(). Here they are : > > BufferView::Pimpl::insertInset() > > - uses bv_->theLockingInset() - broken > > lyxfunc.C

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 03:07:19PM +0100, Juergen Vigna wrote: > > nope, the problem is insettext::insetAllowed() doesn't ask its owner, when it >should > > do. > > > > But it can't because insetcollapsable passes the buck back down. > > Maybe > > bool InsetERT::insetAllowed() > { > r

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > nope, the problem is insettext::insetAllowed() doesn't ask its owner, when it should > do. > > But it can't because insetcollapsable passes the buck back down. Maybe bool InsetERT::insetAllowed() { return false; } Would that work (well I'm pretty su

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 11:58:26AM +0100, Juergen Vigna wrote: > > I can insert a footnote with copy/paste into an insetERT. > > > > Looking, I see insettext::insetAllowed() basically always returns yes. > > > > What's going on ? > > Maybe a missing function in InsetERT? could that be ;) nope

Re: [PATCH] fix some inset-in-inset update problems

2001-12-05 Thread Andre Poenitz
On Wed, Dec 05, 2001 at 11:57:30AM +0100, Juergen Vigna wrote: > Anyway I love "other" things much more then stacks #:O) Shouldn't this depend on you position in the stack? Andre', just thinking... -- André Pönitz .. [EMAIL PROTECTED]

Re: decimal percent

2001-12-05 Thread Andre Poenitz
On Wed, Dec 05, 2001 at 11:28:21AM +0100, Juergen Vigna wrote: > Why? Your working in percent! if you want to work in Lenghts you can also > input 0.1mm if you like that more. I think we should not overdue stuff. Ok... so just accept integer percent. Should make the code as simple as possible. A

Re: [PATCH] fix some inset-in-inset update problems

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 Allan Rae wrote: > The insets allocated memory is at the same place isn't it? Wouldn't a > signal connection be sufficient? Or a table of waiting-insets and the > process they are waiting for a (UNIX) signal from? The signal stuff would be a good way to eliminate the use of a o

RE: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > > I can insert a footnote with copy/paste into an insetERT. > > Looking, I see insettext::insetAllowed() basically always returns yes. > > What's going on ? Maybe a missing function in InsetERT? could that be ;) Jug -- -._-._-._-._-._-._-._-._-._-

Re: lyxlength.C does not compile!

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 Andre Poenitz wrote: > Why this limitation? What's wrong with 120% of \columnwidth? You got a point here ;) Jug -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +

Re: decimal percent

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 Andre Poenitz wrote: > I think one digit after the point should be possible. 1% of \textwidth is > about 2 mm which is pretty crude when one needs to "tune" things". I > know it makes code more messy... Why? Your working in percent! if you want to work in Lenghts you can also inp

Re: layout->Paragraph and stippled lines

2001-12-05 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > Lars> besides that I really thing that almost all of the space > Lars> below/above in UserGuide.lyx should be removed (or exchanged > Lars> with symbolic lengths like smallskip (which also need a visu

Re: layout->Paragraph and stippled lines

2001-12-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> besides that I really thing that almost all of the space Lars> below/above in UserGuide.lyx should be removed (or exchanged Lars> with symbolic lengths like smallskip (which also need a visual Lars> clue)) A good choice would

Re: tabular dialog

2001-12-05 Thread Juergen Vigna
On 04-Dec-2001 John Levon wrote: > can we add a dialog on pressing "close" if the text has been changed since > opening the dialog to ask if it should be applied ? Yes I guess we could. Who's the xforms guru right now ;) Jürgen -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-

Icons for the toolbar

2001-12-05 Thread Elena . Samsonova
People, here are three icons for the toolbar that I made. Feel free to include them into the distribution if you like. Take care Elena citation-insert.xpm Description: Binary data index-insert.xpm Description: Binary data label-insert.xpm Description: Binary data

Re: decimal percent

2001-12-05 Thread Juergen Spitzmueller
Allan Rae wrote: > On Wed, 5 Dec 2001, Andre Poenitz wrote: > > I am not a big fan of restricting things to some range that looks > > sensible to me _now_, especially if that means extra code. But we already did that (in the Graphics dialog the unsigned_float_filter doesn't allow the user to ins

Re: lyxlength.C does not compile!

2001-12-05 Thread Andre Poenitz
On Wed, Dec 05, 2001 at 05:53:39PM +1000, Allan Rae wrote: > So how many decimal places do you want to be able to represent by the > int? You need to choose how many bits there should be before and > after the decimal point in order to determine what fixed-point we > will use. One after the poin

Re: decimal percent

2001-12-05 Thread Allan Rae
On Wed, 5 Dec 2001, Andre Poenitz wrote: > On Wed, Dec 05, 2001 at 05:42:48PM +1000, Allan Rae wrote: > > And if LaTeX doesn't produce a sensible document because a -200% > > scaled picture is requested don't you think it would be reasonable of > > us to ensure the user can't enter such an amount