On Fri, Mar 22, 2013 at 3:14 PM, Scott Kostyshak <[email protected]> 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
> index a6e6ce3..d29194a 100644
> --- a/src/insets/InsetGraphics.h
> +++ 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 GUIndependent dialog.
> +       docstring layoutName() const { return from_ascii("Graphics"); }
> +       ///
>         InsetGraphicsParams const & params() const;
>         ///
>         void draw(PainterInfo & pi, int x, int y) const;
> --
> 1.7.9.5
>

Can this go in?

use case:
I came across this because I wanted to delete all graphics in a
document I was sent asking for help (without the graphics attached).
The following command did not work:
inset-forall Graphics char-delete-forward

Thanks,

Scott

Reply via email to