Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-20 Thread Michael Gerz
Andre Poenitz schrieb: On Sun, Mar 18, 2007 at 06:26:27PM +0100, Michael Gerz wrote: The difficulties are partly caused by the many helper methods that result in a high degree of indirection. It is very difficult to get to the core. Less (similar) methods would be better. I am open fo

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-18 Thread Andre Poenitz
On Sun, Mar 18, 2007 at 06:26:27PM +0100, Michael Gerz wrote: > The difficulties are partly caused by the many helper methods that > result in a high degree of indirection. It is very difficult to get to > the core. Less (similar) methods would be better. I am open for concrete proposals. Andre

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-18 Thread Michael Gerz
Abdelrazak Younes schrieb: Andre Poenitz wrote: On Thu, Mar 15, 2007 at 06:36:15PM +0100, Abdelrazak Younes wrote: My point is that is not equivalent. A tree-like approach will inevitably lead to cleaner and shorter code, I am 100% sure of that. Besides, I still have difficulty to grasp the cu

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Andre Poenitz
On Fri, Mar 16, 2007 at 10:46:57AM +0100, Abdelrazak Younes wrote: > >It surely has. In the main inset go down to cell slice[0].cell, walk > >down to paragraph slice[0].pit, go to pos slice[0].pos, Take the inset > >there. Go to its cell slice[1].cell, paragraph slice[1].pit, position > >slice[1].p

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I am fine with this. I've done it because that's the current behaviour in 1.4.x. Only partially. If you put a section in a tabular float and insert a label, you get the "sec:" prefix (as it should be). So shall I commit only the caption pa

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Are you saying that the chosen prefix (sub: in this case) is used by Prettyref? Yes. That is the main reason to use these prefixes. So this _is_ about what is on printed text. Of course it would be nice if it would be possible to distinguish further.

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Georg Baum
Abdelrazak Younes wrote: > Are you saying that the chosen prefix (sub: in this case) is used by > Prettyref? Yes. That is the main reason to use these prefixes. So this _is_ about what is on printed text. Of course it would be nice if it would be possible to distinguish further. But that means to

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I am wondering, for subsection, wouldn't it be better to use "ssec" for example and "sssec:" for subsubsection? That could be configurable, but by default, no. Prettyref only supports the "sec" prefix (by default), and I would not refer to "S

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jean-Marc Lasgouttes
> "Jürgen" == Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: Jürgen> Abdelrazak Younes wrote: >> I am wondering, for subsection, wouldn't it be better to use "ssec" >> for example and "sssec:" for subsubsection? Jürgen> That could be configurable, but by default, no. Prettyref only Jürgen> su

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > I am wondering, for subsection, wouldn't it be better to use "ssec" for > example and "sssec:" for subsubsection? That could be configurable, but by default, no. Prettyref only supports the "sec" prefix (by default), and I would not refer to "Subsection x.x" in text, b

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: But that does not solve the nested inset problem, does it? It does. OK, fine with me then. OK, I committed a cleanup version that will allow to add more types easily. I am wondering, for subsection, wouldn't it be better to use "ssec" for

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > But that does not solve the nested inset problem, does it? > > It does. OK, fine with me then. Jürgen

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I am fine with this. I've done it because that's the current behaviour in 1.4.x. Only partially. If you put a section in a tabular float and insert a label, you get the "sec:" prefix (as it should be). So shall I commit only the caption pa

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > I am fine with this. I've done it because that's the current behaviour > in 1.4.x. Only partially. If you put a section in a tabular float and insert a label, you get the "sec:" prefix (as it should be). > So shall I commit only the caption part? But that does not s

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Andre Poenitz wrote: On Thu, Mar 15, 2007 at 06:36:15PM +0100, Abdelrazak Younes wrote: My point is that is not equivalent. A tree-like approach will inevitably lead to cleaner and shorter code, I am 100% sure of that. Besides, I still have difficulty to grasp the cursor slice concept. Make a p

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: With my last patch we don't need to check explicitly for the LABEL_SENSITIVE because everything within a float (or a wrap) will get the label prefix, LABEL_SENSITIVE or not. I don't think that's a good idea. There might be other things than th

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: With my last patch we don't need to check explicitly for the LABEL_SENSITIVE because everything within a float (or a wrap) will get the label prefix, LABEL_SENSITIVE or not. I don't think that's a good idea. There might be other things than th

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jean-Marc Lasgouttes
> "Jürgen" == Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: Jürgen> Abdelrazak Younes wrote: >> With my last patch we don't need to check explicitly for the >> LABEL_SENSITIVE because everything within a float (or a wrap) will >> get the label prefix, LABEL_SENSITIVE or not. Jürgen> I don't

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-16 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > With my last patch we don't need to check explicitly for the > LABEL_SENSITIVE because everything within a float (or a wrap) will get > the label prefix, LABEL_SENSITIVE or not. I don't think that's a good idea. There might be other things than the caption inside floats

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Andre Poenitz
On Thu, Mar 15, 2007 at 06:36:15PM +0100, Abdelrazak Younes wrote: > My point is that is not equivalent. A tree-like approach will inevitably > lead to cleaner and shorter code, I am 100% sure of that. Besides, I > still have difficulty to grasp the cursor slice concept. Make a poll in > the lis

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Am Donnerstag, 15. März 2007 20:06 schrieb Abdelrazak Younes: > With my last patch we don't need to check explicitly for the > LABEL_SENSITIVE because everything within a float (or a wrap) will get > the label prefix, LABEL_SENSITIVE or not. Now I understand. Does anybody know why the check for

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 15. März 2007 19:53 schrieb Abdelrazak Younes: Georg Baum wrote: I don't understand how it works. Why is the test for LABEL_SENSITIVE no longer needed? Because there is no paragraph with LABEL_SENSITIVE layout any more within the float. No! This is not true

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Am Donnerstag, 15. März 2007 19:53 schrieb Abdelrazak Younes: > Georg Baum wrote: > > I don't understand how it works. Why is the test for > > LABEL_SENSITIVE no longer needed? > > Because there is no paragraph with LABEL_SENSITIVE layout any more > within the float. No! This is not true, as I

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 15. März 2007 19:27 schrieb Abdelrazak Younes: My newer patch fixes this I think. If it does it does. I don't understand how it works. Why is the test for LABEL_SENSITIVE no longer needed? Because there is no paragraph with LABEL_SENSITIVE layout any mor

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Am Donnerstag, 15. März 2007 19:27 schrieb Abdelrazak Younes: > My newer patch fixes this I think. If it does I don't understand how it works. Why is the test for LABEL_SENSITIVE no longer needed? Georg

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Am Donnerstag, 15. März 2007 18:41 schrieb Abdelrazak Younes: Anyway, I agree that something like the attached (not tested) should solve the current caption label problem. At the cost of introducing the same problem for LABEL_SENSITIVE layouts, e.g. Captionbelow of scrclass

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: And if anybody forgot: Now is not the time to make such decisions or even to discuss them. There are plenty of open bugs and regressions with 1.5.0 target in bugzilla. Abdelra

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Am Donnerstag, 15. März 2007 18:41 schrieb Abdelrazak Younes: > Anyway, I agree that something like the attached (not tested) should > solve the current caption label problem. At the cost of introducing the same problem for LABEL_SENSITIVE layouts, e.g. Captionbelow of scrclass.inc. If you fix

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: And if anybody forgot: Now is not the time to make such decisions or even to discuss them. There are plenty of open bugs and regressions with 1.5.0 target in bugzilla. Abdelrazak> OK, let's postpone th

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: I do not see why you want to find a suboptimal method which only interest is to fit some theory of yours. Abdelrazak> My theory is simple: use what we have access to. Scanning Abdelrazak> all the enclos

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> I do not see why you want to find a suboptimal method which only >> interest is to fit some theory of yours. Abdelrazak> My theory is simple: use what we have access to. Scanning Abdelrazak> all the enclosing inset in search f

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> And if anybody forgot: Now is not the time to make such decisions >> or even to discuss them. There are plenty of open bugs and >> regressions with 1.5.0 target in bugzilla. Abdelrazak> OK, let's postpone the discussion to 1.

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: I miss some info about point 3 (KOMA-Script) and 4 (layout appearance) to properly decide if it is difficult or not to implement. I added a bit of information. This is how I think it could be implemehted, Thanks. if you have a better way please e

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Abdelrazak Younes wrote: > I miss some info about point 3 (KOMA-Script) and 4 (layout appearance) > to properly decide if it is difficult or not to implement. I added a bit of information. This is how I think it could be implemehted, if you have a better way please explain it. > Maybe we need a

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Georg Baum wrote: It would be nice if somebody could make a list of Les grands esprits se rencontrent ;-) I even went one step further and created a wiki page for comparison: http://wiki.lyx.org/Devel/Captions It would be nice if everybody could

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Abdelrazak Younes wrote: > Georg Baum wrote: >> It would be nice if somebody could make a list of > > > Les grands esprits se rencontrent ;-) I even went one step further and created a wiki page for comparison: http://wiki.lyx.org/Devel/Captions It would be nice if everybody could fill in his

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I understand but I still don't like the scanning... :-) I don't like it either. But I don't see an alternative yet. We could just provide the feature if the label is not deeper than one-level. If t

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I understand but I still don't like the scanning... :-) I don't like it either. But I don't see an alternative yet. Abdelrazak> We could

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Jürgen Spitzmüller wrote: >> Abdelrazak Younes wrote: >>> I understand but I still don't like the scanning... :-) >> I don't like it either. But I don't see an alternative yet. Abdelrazak> We could just provide the f

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-15 Thread Georg Baum
Abdelrazak Younes wrote: > Jürgen Spitzmüller wrote: >> Abdelrazak Younes wrote: >>> I understand but I still don't like the scanning... :-) >> >> I don't like it either. But I don't see an alternative yet. > > We could just provide the feature if the label is not deeper than > one-level. If the

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I understand but I still don't like the scanning... :-) I don't like it either. But I don't see an alternative yet. We could just provide the feature if the label is not deeper than one-level. If the user wants to deeply bury the label insi

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > I understand but I still don't like the scanning... :-) I don't like it either. But I don't see an alternative yet. Jürgen

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Abdelrazak Younes wrote: I'd rather do: - if (layout->labeltype == LABEL_SENSITIVE) { + if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || layout->labeltype == LABEL_SENSITIVE) { Yes. That's what I meant in my previous comment (obviously InsetCaption derives

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Enrico Forestieri wrote: I would say that when choosing a float thing, it should come up empty, such that you have to explicitly put the caption in there. After all, I could well have a floating figure or table without any caption. Sure but that's independent of inset versus no inset. I agree t

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Andre Poenitz wrote: On Wed, Mar 14, 2007 at 11:09:03AM +0100, Abdelrazak Younes wrote: I'd rather do: - if (layout->labeltype == LABEL_SENSITIVE) { + if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || layout->labeltype == LABEL_SENSITIVE) { Yes. That's what I meant in my previous comm

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Enrico Forestieri
On Wed, Mar 14, 2007 at 07:22:32PM +0200, Martin Vermeer wrote: > On Wed, 2007-03-14 at 15:39 +0100, Enrico Forestieri wrote: > > On Wed, Mar 14, 2007 at 03:18:54PM +0100, Jean-Marc Lasgouttes wrote: > > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > > > > Enrico> One adva

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Martin Vermeer
On Wed, 2007-03-14 at 15:39 +0100, Enrico Forestieri wrote: > On Wed, Mar 14, 2007 at 03:18:54PM +0100, Jean-Marc Lasgouttes wrote: > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > > Enrico> One advantage is that you get numbered figures on screen. > > > > It would have b

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Andre Poenitz
On Wed, Mar 14, 2007 at 11:09:03AM +0100, Abdelrazak Younes wrote: > >I'd rather do: > > > >-if (layout->labeltype == LABEL_SENSITIVE) { > >+if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || > >layout->labeltype == LABEL_SENSITIVE) { > > Yes. That's what I meant in my previous comment

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Enrico Forestieri
On Wed, Mar 14, 2007 at 03:18:54PM +0100, Jean-Marc Lasgouttes wrote: > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > Enrico> One advantage is that you get numbered figures on screen. > > It would have been very easy to do even in 1.4; the only reason why I > did not do it i

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> One advantage is that you get numbered figures on screen. It would have been very easy to do even in 1.4; the only reason why I did not do it is because (1) not enough time (2) procrastination about the syntax to choose in th

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > OK, let's list the regressions then: > > 1) the automatic label: this should be solved soon easily (and cleanly > see other thread) > 2) configurability in the layout file: I am not a layout or latex expert > (ignorant is a better qualifier for me ;-)), so what exactly is

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > Having said that, the labels could of course also be set a bit less > > hackish: The inset could return a proper prefix. But this is entails more > > changes up to the insetbase level. > > Which would be a good solution. But we still need the hacks, as long as we canno

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jürgen Spitzmüller
Abdelrazak Younes wrote: > > I'd rather do: > > > > - if (layout->labeltype == LABEL_SENSITIVE) { > > + if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || > > layout->labeltype == LABEL_SENSITIVE) { > > Yes. That's what I meant in my previous comment (obviously InsetCaption > derives from

[PATCH] LyXText needs parent inset (was Re: [patch] bug 3226: labels in caption insets don't have a prefix)

2007-03-14 Thread Abdelrazak Younes
Abdelrazak Younes wrote: I'd rather do: -if (layout->labeltype == LABEL_SENSITIVE) { +if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || layout->labeltype == LABEL_SENSITIVE) { Yes. That's what I meant in my previous comment (obviously InsetCaption derives from InsetText, not LyXT

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Georg Baum wrote: Enrico Forestieri wrote: One advantage is that you get numbered figures on screen. This is actually one part of the code that could also be used for layout type captions. It was not implemented before, but it could be adapted easily to layouts. It would be nice if somebody

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Georg Baum
Enrico Forestieri wrote: > One advantage is that you get numbered figures on screen. This is actually one part of the code that could also be used for layout type captions. It was not implemented before, but it could be adapted easily to layouts. It would be nice if somebody could make a list of

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Personally I like the inset approach. We just need some more cleanup and design. I am confident that the benefit will show up in the future so I am not in favour of reverting it. In principle I like the inset too, but it looks like it is not as power

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Wed, Mar 14, 2007 at 11:02:19AM +0100, Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Am Dienstag, 13. März 2007 19:57 schrieb Jürgen Spitzmüller: The attached patch seems the most easiest way to implement this. Comments? Georg

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Jürgen" == Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: Jürgen> The attached patch seems the most easiest way to implement Jürgen> this. Comments? I'd rather do: - if (layout->labeltype == LABEL_SENSITIVE) { + if (cur.innerInsetOfType(InsetBase::CAPT

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Georg Baum
Abdelrazak Younes wrote: > Personally I like the inset approach. We just need some more cleanup and > design. I am confident that the benefit will show up in the future so I > am not in favour of reverting it. In principle I like the inset too, but it looks like it is not as powerful as the layou

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Enrico Forestieri
On Wed, Mar 14, 2007 at 11:02:19AM +0100, Jean-Marc Lasgouttes wrote: > > "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: > > Georg> Am Dienstag, 13. März 2007 19:57 schrieb Jürgen Spitzmüller: > >> The attached patch seems the most easiest way to implement this. > >> Comments? > > Georg> T

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Am Dienstag, 13. März 2007 19:57 schrieb Jürgen Spitzmüller: >> The attached patch seems the most easiest way to implement this. >> Comments? Georg> This patch finally convinced me that the move to insets was Georg> wrong. I am sorry

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Jean-Marc Lasgouttes
> "Jürgen" == Jürgen Spitzmüller <[EMAIL PROTECTED]> writes: Jürgen> The attached patch seems the most easiest way to implement Jürgen> this. Comments? I'd rather do: - if (layout->labeltype == LABEL_SENSITIVE) { + if (cur.innerInsetOfType(InsetBase::CAPTION_CODE) || layout->labe

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: The attached patch seems the most easiest way to implement this. Comments? Jürgen Index: src/text.C === --- src/text.C (Revision

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Georg Baum wrote: This patch finally convinced me that the move to insets was wrong. I am sorry that I caused others to work on this, but at that time I was not aware that we would need so many hacks. Personally, I don't mind if we revert to the caption layout. I don'

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-14 Thread Georg Baum
Michael Gerz wrote: > Argh... reverting all caption inset patches will be bloody. We have to > be VERY careful! I would not revert these patches, but rather remove the caption inset and fix all compile errors, readding the old code on a case by case basis. I know that this is some work, and that

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-13 Thread Jürgen Spitzmüller
Georg Baum wrote: > This patch finally convinced me that the move to insets was wrong. I am > sorry that I caused others to work on this, but at that time I was not > aware that we would need so many hacks. Personally, I don't mind if we revert to the caption layout. I don't see any advantage in

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-13 Thread Michael Gerz
Georg Baum wrote: This patch finally convinced me that the move to insets was wrong. I am sorry that I caused others to work on this, but at that time I was not aware that we would need so many hacks. Argh... reverting all caption inset patches will be bloody. We have to be VERY careful!

Re: [patch] bug 3226: labels in caption insets don't have a prefix

2007-03-13 Thread Georg Baum
Am Dienstag, 13. März 2007 19:57 schrieb Jürgen Spitzmüller: > The attached patch seems the most easiest way to implement this. > Comments? This patch finally convinced me that the move to insets was wrong. I am sorry that I caused others to work on this, but at that time I was not aware that we

[patch] bug 3226: labels in caption insets don't have a prefix

2007-03-13 Thread Jürgen Spitzmüller
The attached patch seems the most easiest way to implement this. Comments? Jürgen Index: src/text.C === --- src/text.C (Revision 17417) +++ src/text.C (Arbeitskopie) @@ -1744,8 +1744,18 @@ docstring name = from_ascii(layout->latex