Re: new layout files for g-brief2

2003-10-27 Thread Felix Kurth
just corrected a typo. Please use the new version at the same url. thanks Felix -- Felix Kurth pgp public key: http://www.fkurth.de/keys/felix.fkurth.asc key fingerprint: D401 DCF8 2BF8 50DF 2FAD 8136 C29B 83EE C0A1 F2AD

Re: Assertion crash playing with new insets.

2003-10-27 Thread Alfredo Braunstein
Lars Gullik BjÃnnes wrote: > | for the records... it wasn't me (I don't make mistakes!) > > Oh no... not another one. ;-) You mean I'm not alone? ;-) Alfredo

Re: zombie characters

2003-10-27 Thread Alfredo Braunstein
Juergen Spitzmueller wrote: > do you see this too? > > - delete a char with the del key. > - press right arrow to move the cursor in the direction where the char > was. => you have to press twice to move on. Seems like the deleted char is > still recognized by the cursor. Fixed. (a gnome joke it

Re: zombie characters

2003-10-27 Thread Alfredo Braunstein
Juergen Spitzmueller wrote: > do you see this too? > > - delete a char with the del key. > - press right arrow to move the cursor in the direction where the char > was. => you have to press twice to move on. Seems like the deleted char is > still recognized by the cursor. I see it. Alfredo

[patch] simple cursorEnd fix

2003-10-27 Thread Alfredo Braunstein
Ok to apply? Index: text2.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.487 diff -u -p -u -r1.487 text2.C --- text2.C 27 Oct 2003 12:41:23 - 1.487 +++ text2.C 27 Oct 2003 19:52:1

Re: [patch] strange hack?

2003-10-27 Thread Alfredo Braunstein
John Levon wrote: > Have you tested a variety of deeply nested lists/descriptions ? Seems to work ok. But "a variety..." is not very precise. > rowBreakPoint() has changed beyond my recognition grumpy as always? Regards, Alfredo

Re: Assertion crash playing with new insets.

2003-10-27 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | for the records... it wasn't me (I don't make mistakes!) Oh no... not another one. ;-) -- Lgb

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> I think a counting iterator would work better. | My go: what's a counting iterator? One that help you count. :-) counting_iterator::type start(0); counting_iterator::type end(10); for (; start != end; ++start) cout <<

Re: Assertion crash playing with new insets.

2003-10-27 Thread Alfredo Braunstein
Andre Poenitz wrote: > Hm... > > Let's blame Alfredo. stabber > I nowadays can insert an ordinary character behind a displayed math > inset, too, so something's fishy there... for the records... it wasn't me (I don't make mistakes!) Alfredo

Re: [patch] lastPos removal

2003-10-27 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > I think a counting iterator would work better. My go: what's a counting iterator? -- Angus

zombie characters

2003-10-27 Thread Juergen Spitzmueller
do you see this too? - delete a char with the del key. - press right arrow to move the cursor in the direction where the char was. => you have to press twice to move on. Seems like the deleted char is still recognized by the cursor. Jürgen.

Re: mathed color inset

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 5:17 pm, Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 05:08:15PM +, Angus Leeming wrote: > > On Monday 27 October 2003 5:03 pm, Andre Poenitz wrote: > > > On Mon, Oct 27, 2003 at 04:49:08PM +, Angus Leeming wrote: > > > > André, I have mentioned in the past that

Re: mathed color inset

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:08:15PM +, Angus Leeming wrote: > On Monday 27 October 2003 5:03 pm, Andre Poenitz wrote: > > On Mon, Oct 27, 2003 at 04:49:08PM +, Angus Leeming wrote: > > > André, I have mentioned in the past that I really like your new color > > > inset. > > > > I just noticed

Re: mathed color inset

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 5:03 pm, Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 04:49:08PM +, Angus Leeming wrote: > > André, I have mentioned in the past that I really like your new color > > inset. > > I just noticed there is a bug problem > > x \color{blue}{y} z > > Create a blue z. > > S

Re: mathed color inset

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 5:01 pm, Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 05:54:12PM +0100, Andre' Poenitz wrote: > > > Thoughts? > > > > Urm ... > > Better now? Yes. Thank you. Nonetheless, I do think that the macro-display machinery is a very powerful feature that could make the displa

Re: mathed color inset

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:49:08PM +, Angus Leeming wrote: > André, I have mentioned in the past that I really like your new color > inset. I just noticed there is a bug problem x \color{blue}{y} z Create a blue z. Should that get exported as x {\color{blues}{y}} z ? Andre' -- Tho

Re: mathed color inset

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:54:12PM +0100, Andre' Poenitz wrote: > > Thoughts? > > Urm ... Better now? Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)

Re: mathed color inset

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:49:08PM +, Angus Leeming wrote: > André, I have mentioned in the past that I really like your new color > inset. (Attached is the lyx file I used to generate the 'improved' > buttons in the Qt math toolbar.) > > However, it is very intrusive isn't it? Hm yes. > I

mathed color inset

2003-10-27 Thread Angus Leeming
André, I have mentioned in the past that I really like your new color inset. (Attached is the lyx file I used to generate the 'improved' buttons in the Qt math toolbar.) However, it is very intrusive isn't it? Instead of displaying a fraction as [blue]a --- [blue]b w

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: >> Shorter variant. (but a bit harder to read) >> >> int numberOfSeparators(Paragraph const & par, Row const & row) >> { >> return count_if( >>make_counting_iterator(max_row.pos(), par.beginningOfBody()), > | Is that 'make_counting

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:15:46PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | What I find so disgusting is the amount of 'setup code' i.e. the > | typedef and initialization. I think I could get accustomed to the bind > | and count_if stuff... > > Then loo

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > | | int numberOfSeparators(Paragraph const & par, Row const & row) | | { | | typedef counting_iterator_generator::type CountIt; >> | | CountIt first(max(row.pos(), par.beginningOfBody())); | |

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | What I find so disgusting is the amount of 'setup code' i.e. the | typedef and initialization. I think I could get accustomed to the bind | and count_if stuff... Then look at the other version I just posted, there the setup code is a lot simpler. --

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:05:28PM +0100, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | int numberOfSeparators(Paragraph const & par, Row const & row) > | { > | typedef counting_iterator_generator::type CountIt; > > > | CountIt first(max(row.pos(), par.begi

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:58:37PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | I think the code we have right now is fine as I understand it. > > well... yes but where is the fun. > > | I don't understand the iterator adaptor solutions. > > Some of them a

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | int numberOfSeparators(Paragraph const & par, Row const & row) | { | typedef counting_iterator_generator::type CountIt; > | CountIt first(max(row.pos(), par.beginningOfBody())); | CountIt last(lastPos(par, row)); | return std::count_if(firs

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | I think the code we have right now is fine as I understand it. well... yes but where is the fun. | I don't understand the iterator adaptor solutions. Some of them are quite fun. Not too hard to understand. | They don't even _look_ simpler. Not even

Re: Assertion crash playing with new insets.

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 04:29:32PM +0100, Lars Gullik Bjønnes wrote: >> I think we should get rid of the concept of "inlined" insets. > | I don't care too much, but if I were to decide on a direction I'd move | the other way, i.e. move away from a format

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:43:24PM +0100, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: > >> | Lars, I'm shocked (and smiling ;-) You have missed a trick! We > >> | could use boost's iterator adaptors or whatever they're called. > >> | One

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Alfredo Braunstein <[EMAIL PROTECTED]> writes: > | | Comments? > | I think it looks good. So if you have no regressions... > | | int numberOfSeparators(Paragraph const & par, Row const & row) | | { | | - pos_type const last = lastPos(par, row);

Re: Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
On Monday 27 October 2003 15:42, Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 03:30:41PM +, Jose' Matos wrote: > > > Looks funny. > > > > An weird. :-) I meant: And weird. :-) > Better now. Ok. > Andre' -- José Abílio

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> | Lars, I'm shocked (and smiling ;-) You have missed a trick! We >> | could use boost's iterator adaptors or whatever they're called. >> | One of them works perfectly for such cases. >> >> :-) I havent' looked at those yet.

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:30:41PM +, Jose' Matos wrote: > > Looks funny. > > An weird. :-) Better now. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:29:32PM +0100, Lars Gullik Bjønnes wrote: > I think we should get rid of the concept of "inlined" insets. I don't care too much, but if I were to decide on a direction I'd move the other way, i.e. move away from a format where newlines are significant. > The amount of b

Re: Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
On Monday 27 October 2003 15:26, Andre Poenitz wrote: > > I nowadays can insert an ordinary character behind a displayed math > > inset, too, so something's fishy there... > > Hm, it rather looks like the first character on the following row is > echoed behind a displayed math row. That happens

Re: Assertion crash playing with new insets.

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 04:17:59PM +0100, Lars Gullik Bjønnes wrote: >> "Jose' Matos" <[EMAIL PROTECTED]> writes: >> >> | On Monday 27 October 2003 15:02, Andre Poenitz wrote: >> >> On Mon, Oct 27, 2003 at 02:55:24PM +, Jose' Matos wrote: >> >> > Hi

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:21:12PM +0100, Andre' Poenitz wrote: > On Mon, Oct 27, 2003 at 03:12:15PM +, Jose' Matos wrote: > > On Monday 27 October 2003 14:55, Jose' Matos wrote: > > > Hi André, > > > probably not your doing, but... :-) > > > > > > If I insert a new inset horizontal line wh

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:17:59PM +0100, Lars Gullik Bjønnes wrote: > "Jose' Matos" <[EMAIL PROTECTED]> writes: > > | On Monday 27 October 2003 15:02, Andre Poenitz wrote: > >> On Mon, Oct 27, 2003 at 02:55:24PM +, Jose' Matos wrote: > >> > Hi André, > >> > probably not your doing, but... :-

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:12:15PM +, Jose' Matos wrote: > On Monday 27 October 2003 14:55, Jose' Matos wrote: > > Hi André, > > probably not your doing, but... :-) > > > > If I insert a new inset horizontal line while playing with it I get: > > > > Assertion triggered in void LyXText::

Re: Assertion crash playing with new insets.

2003-10-27 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | On Monday 27 October 2003 15:02, Andre Poenitz wrote: >> On Mon, Oct 27, 2003 at 02:55:24PM +, Jose' Matos wrote: >> > Hi André, >> >probably not your doing, but... :-) >> >> Of course not. >> >> But as you are among the living: I'd need some lyx

Re: Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
On Monday 27 October 2003 14:55, Jose' Matos wrote: Not sure if related but: I always get the first char of a new line in the previous. Probably already reported... This is probably to Alfredo. :-) -- José Abílio LyX and docbook, a perfect match. :-)

Re: Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
On Monday 27 October 2003 14:55, Jose' Matos wrote: > Hi André, > probably not your doing, but... :-) > > If I insert a new inset horizontal line while playing with it I get: > > Assertion triggered in void LyXText::setCursor(LyXCursor&, int, int, bool) > by failing check "par != int(ow

Re: Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
On Monday 27 October 2003 15:02, Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 02:55:24PM +, Jose' Matos wrote: > > Hi André, > > probably not your doing, but... :-) > > Of course not. > > But as you are among the living: I'd need some lyx2lyx magic to > translate pagebreak above/below int

Re: Assertion crash playing with new insets.

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:55:24PM +, Jose' Matos wrote: > Hi André, > probably not your doing, but... :-) Of course not. But as you are among the living: I'd need some lyx2lyx magic to translate pagebreak above/below into a "\newpage\n" before or after the paragaphh. > If I inse

Re: [patch] strange hack?

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:51:05PM +0100, Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | On Mon, Oct 27, 2003 at 03:22:50PM +0100, Andre Poenitz wrote: > > > >> Ah... so you were the one called 'nobody' > > > | It's just like school all over again ! > > John "Nobby" Lev

Assertion crash playing with new insets.

2003-10-27 Thread Jose' Matos
Hi André, probably not your doing, but... :-) If I insert a new inset horizontal line while playing with it I get: Assertion triggered in void LyXText::setCursor(LyXCursor&, int, int, bool) by failing check "par != int(ownerParagraphs().size())" in file text2.C:1286 I si

Re: [patch] strange hack?

2003-10-27 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 03:22:50PM +0100, Andre Poenitz wrote: > >> Ah... so you were the one called 'nobody' > | It's just like school all over again ! John "Nobby" Levon. -- Lgb

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:40:49PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | We issue the same LaTeX code as before. > > > > > | "\\newcommand{\\lyxline}[1]{\n" > | " {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n" > | "}"; > >

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | We issue the same LaTeX code as before. > > | "\\newcommand{\\lyxline}[1]{\n" | " {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n" | "}"; > | [I wonder a bit about the #1, though...] > | There used to be no guarantee tha

Re: [patch] strange hack?

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 03:22:50PM +0100, Andre Poenitz wrote: > Ah... so you were the one called 'nobody' It's just like school all over again ! john -- Khendon's Law: If the same point is made twice by the same person, the thread is over.

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 03:22:04PM +0100, Andre Poenitz wrote: > > Oh OK. Where are they and with what names and mnemonics ? > > Insert->Special Formatting. Seems mnemonics could be added (looking at the diff) ? > We issue the same LaTeX code as before. OK john -- Khendon's Law: If the sam

Re: [patch] strange hack?

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:14:22PM +, John Levon wrote: > On Mon, Oct 27, 2003 at 03:10:46PM +0100, Andre Poenitz wrote: > > > I any case I think one has now a chance to understand what's going on > > there, so bug hunting could be based on looking at code not the phase of > > the moon. > >

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:12:51PM +, John Levon wrote: > On Mon, Oct 27, 2003 at 03:08:44PM +0100, Andre Poenitz wrote: > > > They are there already unless I forgot to commit... > > Oh OK. Where are they and with what names and mnemonics ? Insert->Special Formatting. > > You decide in whic

Re: [patch] strange hack?

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 03:10:46PM +0100, Andre Poenitz wrote: > I any case I think one has now a chance to understand what's going on > there, so bug hunting could be based on looking at code not the phase of > the moon. Actually I understood it in its entirety ... not my fault others are so la

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 03:08:44PM +0100, Andre Poenitz wrote: > They are there already unless I forgot to commit... Oh OK. Where are they and with what names and mnemonics ? > [I have this habit of sitting always under /src..] Me too... > > I assume that the way this is coded means that the s

Re: [patch] strange hack?

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 01:59:45PM +, John Levon wrote: > On Mon, Oct 27, 2003 at 12:57:51PM +0100, Alfredo Braunstein wrote: > > > Does annyone knows what goes wrong if I remove the first '-' line in this > > diff? (alternatively, show bad rowbreaking with this patch applied). It > > seems to

branches & locking stuff

2003-10-27 Thread Alfredo Braunstein
Sorry for losing the thread (cannot find it anymore). Try this against current cvs: Index: lyxfunc.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v retrieving revision 1.524 diff -u -p -u -r1.524 lyxfunc.C --- lyxfun

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 01:57:07PM +, John Levon wrote: > On Mon, Oct 27, 2003 at 08:42:41AM +0100, Andre Poenitz wrote: > > > The 'real' stuff is moving line and pagebreak above/below from the > > paragraph (and the core...) two two insets InsetPagebreak and InsetLine. > > Instead of being i

Re: [patch] strange hack?

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 12:57:51PM +0100, Alfredo Braunstein wrote: > Does annyone knows what goes wrong if I remove the first '-' line in this > diff? (alternatively, show bad rowbreaking with this patch applied). It > seems to me a hack that is not needed anymore. In exactly which situations > i

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread John Levon
On Mon, Oct 27, 2003 at 08:42:41AM +0100, Andre Poenitz wrote: > The 'real' stuff is moving line and pagebreak above/below from the > paragraph (and the core...) two two insets InsetPagebreak and InsetLine. Instead of being in the dialogs, they should now go in the Insert menu somewhere. As you p

Re: cvs complie error

2003-10-27 Thread Gandalf GreyHair
> Try something out and post it to the list. You'll get heaps of > feedback about why it is crap ;-) You may even get the odd gem of > information about how to improve it. Well, I couldn't resist, so here it is I don't think I have to comment it much, since it's a design I understand! LyX name i

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 11:17:21AM +, Angus Leeming wrote: >> Sigh. André, I understand your desire for clean code. I'm not asking >> you to justify that. >> >> I'm asking you to think about how to cope with environments that >> insert a line befo

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:45:28PM +0100, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: > >> I wonder if std::count could be used here :-) > >> > >> std::count_if(par.begin() + first, par.begin() + last, > >>

Re: [patch] lastPos removal

2003-10-27 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | Lars, I'm shocked (and smiling ;-) You have missed a trick! We > | could use boost's iterator adaptors or whatever they're called. > | One of them works perfectly for such cases. > > :-) I havent' looked at those yet. http://www.boost.org/libs/utility/iterator_adapt

Re: [Better patch] Re: Bug: Problem with "Navigate" menu and Branches

2003-10-27 Thread Martin Vermeer
On Sat, Oct 25, 2003 at 11:28:00AM +0200, Alfredo Braunstein spake thusly: > Martin Vermeer wrote: > > > The problem was indeed, that if the target paragraph is inside an > > inset, then in lyxfunc.C dispatch() LFUN_GOTO_PARAGRAPH we have > > a call to setCursor() which takes its 'this' from the

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> I wonder if std::count could be used here :-) >> >> std::count_if(par.begin() + first, par.begin() + last, >>bind(&Paragraph::isSeparator, &par, _1)); >> >> but probably not since we are no

[patch] strange hack?

2003-10-27 Thread Alfredo Braunstein
Does annyone knows what goes wrong if I remove the first '-' line in this diff? (alternatively, show bad rowbreaking with this patch applied). It seems to me a hack that is not needed anymore. In exactly which situations is/was it needed? Regards, Alfredo Index: text.C ===

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:50:35PM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > I'd rather prepare LyX for Martian localization. > > > >> Is it possible using your inset-based solution? > > > > No. > > > > [Well, of course, after the Martians have invaded Earth they might bring

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:46:42PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | And now? > > I think I understand more, and I guess that you do so to. The latter at a high price. Andre'

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:44:33PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | There are two concepts both of which you and Lars seem to mix up. > > Only because they are mixed in current LyX. Which is not my fault I believe ;-} > I agree completely, ther

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | And now? I think I understand more, and I guess that you do so to. -- Lgb

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Alfredo Braunstein
Andre Poenitz wrote: > I'd rather prepare LyX for Martian localization. > >> Is it possible using your inset-based solution? > > No. > > [Well, of course, after the Martians have invaded Earth they might bring > in some suitable technology. But as we are not talking about > hypothetical situat

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | There are two concepts both of which you and Lars seem to mix up. Only because they are mixed in current LyX. I agree completely, there are layout-defined and user-defined. Ideall they should not be mixed. | There are 'LaTeX page breaks' ('defined' in

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote: > I talked about the two notions of 'user defined pagebreak' and '.cls > defined page break' Which I like a great deal. Thanks for providing illumination. >> I'll go along with removing page-break from paragraph layouts, but >> not if this is some whim from your side that thi

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:17:21AM +, Angus Leeming wrote: > Sigh. André, I understand your desire for clean code. I'm not asking > you to justify that. > > I'm asking you to think about how to cope with environments that > insert a line before them already. There is no such thing. I'd ra

Re: [patch] lastPos removal

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:16:52PM +0100, Alfredo Braunstein wrote: > Comments? Just commit. I'll try to keep Lars busy. > I can hear John's curse already. And John. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one.

Re: [patch] lastPos removal

2003-10-27 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > I wonder if std::count could be used here :-) > > std::count_if(par.begin() + first, par.begin() + last, >bind(&Paragraph::isSeparator, &par, _1)); > > but probably not since we are not using iterators here. Lars, I'm shocked (and smi

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 12:16:41PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Mon, Oct 27, 2003 at 11:39:16AM +0100, Lars Gullik Bjønnes wrote: > >> | So you agree this patch does not make anything worse? > >> > >> But it does. You both add and remove f

Re: [patch] lastPos removal

2003-10-27 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Comments? I think it looks good. So if you have no regressions... | int numberOfSeparators(Paragraph const & par, Row const & row) | { | - pos_type const last = lastPos(par, row); | + pos_type const first = max(row.pos(), par.beginningOf

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 10:43:19AM +, Angus Leeming wrote: >> How the line/pagebreak is implemented is orthogonal to this. > > No. > >> Or am I missing something? > > Honestly? > > Yes. Several points I made already. > > 1. Horizontal lines a bad type setting. Ther

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:06:45AM +, Angus Leeming wrote: > Lars Gullik Bjønnes wrote: > > > | You two, just humour me for a minute. What would be needed to > > | support forced page breaks in a layout? It seems to me that the > > | support should go in the layout language/lyxtextclass.. Some

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 11:39:16AM +0100, Lars Gullik Bjønnes wrote: >> | So you agree this patch does not make anything worse? >> >> But it does. You both add and remove functionality. Why not just add >> and tackle the removal later when we understand

[patch] lastPos removal

2003-10-27 Thread Alfredo Braunstein
Comments? I can hear John's curse already. Regards, Alfredo ? lyxrow_funcs.C-bad1 ? paragraph.C-bad1 ? text.C-bad1 ? text.C-goood ? text3-save.C Index: Bidi.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/Bidi.C,v retrieving re

Re: cvs complie error

2003-10-27 Thread Angus Leeming
Gandalf GreyHair wrote: > >>> >> >> What is the current status of the theorem support? >>> Setup,GUI etc. Yes. >> We don't have a GUI for ordinary layouts either so I'd figure it >> would work for environment layouts as well. >>> And that is the real job. >> A GUI. Yes. But that's not strictly ne

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 10:43:19AM +, Angus Leeming wrote: > How the line/pagebreak is implemented is orthogonal to this. No. > Or am I missing something? Honestly? Yes. Several points I made already. 1. Horizontal lines a bad type setting. There should be no native support for it. Howev

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | You two, just humour me for a minute. What would be needed to > | support forced page breaks in a layout? It seems to me that the > | support should go in the layout language/lyxtextclass.. Something > | like >> > | Style Foo > |PrecededBy  Line > |FollowedBy

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:39:16AM +0100, Lars Gullik Bjønnes wrote: > | So you agree this patch does not make anything worse? > > But it does. You both add and remove functionality. Why not just add > and tackle the removal later when we understand the issues better? Because the code stands in m

Re: cvs complie error

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 10:58:04AM +0100, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | On Mon, Oct 27, 2003 at 10:26:23AM +0100, Lars Gullik Bjønnes wrote: >> >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> >> >> |

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Andre Poenitz <[EMAIL PROTECTED]> writes: > | | On Mon, Oct 27, 2003 at 10:56:45AM +0100, Lars Gullik Bjønnes wrote: >>> Some LaTeX documentclasse environments have forced pagebreaks after >>> them. >> | | Which? >> > | book several of the classes

Re: cvs complie error

2003-10-27 Thread Gandalf GreyHair
>> >> >> What is the current status of the theorem support? >> Setup,GUI etc. Yes. > We don't have a GUI for ordinary layouts either so I'd figure it would > work for environment layouts as well. >> And that is the real job. > A GUI. Yes. But that's not strictly needed If by GUI you mean a gui whe

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Andre Poenitz wrote: > >> On Mon, Oct 27, 2003 at 11:26:23AM +0100, Lars Gullik Bjønnes wrote: >>> Andre Poenitz <[EMAIL PROTECTED]> writes: >>> >>> | On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes >>> | wrote: >>> >> Andre Poenitz <[EMAI

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: >> >>> >>> | PS: To cite my favourite user: "What are you doing right now?" >>> | -- "LyX. Removing pagebreak above/below from the paragraph >>> | dialog?" -- "??? I did not even know it was t

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote: > On Mon, Oct 27, 2003 at 11:26:23AM +0100, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes >> | wrote: >> >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> >> >> | On Mon, Oct 27,

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> >> | PS: To cite my favourite user: "What are you doing right now?" -- >> | "LyX. Removing pagebreak above/below from the paragraph dialog?" >> | -- "??? I did not even know it was there." >> >> pagebreak should be very

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 11:26:23AM +0100, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes wrote: >> >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> >> >> |

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 11:12:41AM +0100, Lars Gullik Bjønnes wrote: >> pagebreak should be very visible in the gui. if not that is a bug. > | Have you tried the patch? It looks the same as before. > | With the patch it's just a displayed inset that dra

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:26:23AM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes wrote: > >> Andre Poenitz <[EMAIL PROTECTED]> writes: > >> > >> | On Mon, Oct 27, 2003 at 10:56:45AM +0100, Lars Gul

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes wrote: >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | On Mon, Oct 27, 2003 at 10:56:45AM +0100, Lars Gullik Bjønnes wrote: >> >> Some LaTeX documentclasse environments have forced pageb

Re: [patch] rowbreakpoint

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:12:32AM +0100, Alfredo Braunstein wrote: > Alfredo Braunstein wrote: > > > These are the two missing fixes + a bit of noncontroversial rowbreakpoint > > simplification. > > I'd apply this if no one objects. Not me ;-) Andre'

Re: [patch] LFUN_REPEAT, line/pagebreak above/below -> insets

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 11:13:01AM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | On Mon, Oct 27, 2003 at 10:56:45AM +0100, Lars Gullik Bjønnes wrote: > >> Some LaTeX documentclasse environments have forced pagebreaks after > >> them. > > > | Which? > > > > bo

  1   2   >