From: Scott Kostyshak Date: Fri, 22 Mar 2013 19:09:59 +0000 (-0400) Subject: InsetGraphics: add a layoutName method X-Git-Tag: 2.1.0beta1~501 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8831e4a11f53dabc9022913ee0026420f7b7ec6a;p=features.git InsetGraphics: add a layoutName method Now when using inset-forall, "Graphics" can be used to refer to all Graphics insets. --- diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index a6e6ce3381..d6ccfe2331 100644 --- a/src/insets/InsetGraphics.h +++ b/src/insets/InsetGraphics.h @@ -86,6 +86,8 @@ private: void validate(LaTeXFeatures & features) const; /// returns LyX code associated with the inset. Used for TOC, ...) InsetCode lyxCode() const { return GRAPHICS_CODE; } + /// + docstring layoutName() const { return from_ascii("Graphics"); } /// Get the inset parameters, used by the GUIndependent dialog. InsetGraphicsParams const & params() const; ///