Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-26 Thread Jean-Marc Lasgouttes
Le 25/03/2013 22:19, Richard Heck a écrit : Actually, I should figure this out, because it would make it possible to put the CSS for InsetTOC into an InsetLayout for TOC, which would then be included only when it was needed. As it is now, it has to be included no matter what. Yes, it would be n

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-25 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > I do not know what InsetLayout parameters would make sense to change, and > whether InsetGraphics honor them. What trick would you like? I was just curious, no particular need. Pavel

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-25 Thread Richard Heck
On 03/25/2013 10:54 AM, Jean-Marc Lasgouttes wrote: Le 23/03/2013 07:04, Pavel Sanda a écrit : Scott Kostyshak wrote: Can this go in? Looks reasonable. Can we do some new magic with graphic inset via layout files now? :) I do not know what InsetLayout parameters would make sense to change,

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-25 Thread Jean-Marc Lasgouttes
Le 23/03/2013 07:04, Pavel Sanda a écrit : Scott Kostyshak wrote: Can this go in? Looks reasonable. Can we do some new magic with graphic inset via layout files now? :) I do not know what InsetLayout parameters would make sense to change, and whether InsetGraphics honor them. What trick wo

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-23 Thread Scott Kostyshak
On Sat, Mar 23, 2013 at 6:47 AM, Pavel Sanda wrote: > Scott Kostyshak wrote: >> On Sat, Mar 23, 2013 at 2:04 AM, Pavel Sanda wrote: >> > Scott Kostyshak wrote: >> >> Can this go in? >> > >> > Looks reasonable. Can we do some new magic with graphic inset via layout >> > files now? :) >> >> It's i

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-23 Thread Pavel Sanda
Scott Kostyshak wrote: > On Sat, Mar 23, 2013 at 2:04 AM, Pavel Sanda wrote: > > Scott Kostyshak wrote: > >> Can this go in? > > > > Looks reasonable. Can we do some new magic with graphic inset via layout > > files now? :) > > It's in at 8831e4a1. I don't know much about layout files. What kind

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-23 Thread Scott Kostyshak
On Sat, Mar 23, 2013 at 2:04 AM, Pavel Sanda wrote: > Scott Kostyshak wrote: >> Can this go in? > > Looks reasonable. Can we do some new magic with graphic inset via layout > files now? :) It's in at 8831e4a1. I don't know much about layout files. What kind of magic do you have in mind? Thanks,

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Pavel Sanda
Scott Kostyshak wrote: > Can this go in? Looks reasonable. Can we do some new magic with graphic inset via layout files now? :) Pavel

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Scott Kostyshak
On Fri, Mar 22, 2013 at 8:54 PM, Pavel Sanda wrote: > Scott Kostyshak wrote: >> > +++ b/src/insets/InsetGraphics.h >> > @@ -87,6 +87,8 @@ private: >> > /// returns LyX code associated with the inset. Used for TOC, ...) >> > InsetCode lyxCode() const { return GRAPHICS_CODE; } >> >

[PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Scott Kostyshak
Now when using inset-forall, "Graphics" can be used to refer to all Graphics insets. --- src/insets/InsetGraphics.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index a6e6ce3..d6ccfe2 100644 --- a/src/insets/InsetGraphics.h +++ b/

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Pavel Sanda
Scott Kostyshak wrote: > > +++ b/src/insets/InsetGraphics.h > > @@ -87,6 +87,8 @@ private: > > /// returns LyX code associated with the inset. Used for TOC, ...) > > InsetCode lyxCode() const { return GRAPHICS_CODE; } > > /// Get the inset parameters, used by the GUIndepende

Re: [PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Scott Kostyshak
On Fri, Mar 22, 2013 at 3:14 PM, Scott Kostyshak wrote: > Now when using inset-forall, "Graphics" can be used > to refer to all Graphics insets. > --- > src/insets/InsetGraphics.h |2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h

[PATCH] InsetGraphics: add a layoutName method

2013-03-22 Thread Scott Kostyshak
Now when using inset-forall, "Graphics" can be used to refer to all Graphics insets. --- src/insets/InsetGraphics.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index a6e6ce3..d29194a 100644 --- a/src/insets/InsetGraphics.h +++ b/