]> git.lyx.org Git - features.git/commitdiff
InsetGraphics: add a layoutName method
authorScott Kostyshak <skostysh@lyx.org>
Fri, 22 Mar 2013 19:09:59 +0000 (15:09 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 23 Mar 2013 09:35:09 +0000 (05:35 -0400)
Now when using inset-forall, "Graphics" can be used
to refer to all Graphics insets.

src/insets/InsetGraphics.h

index a6e6ce33815ac60734a28b20f4405d1f316f0353..d6ccfe2331ab6b42ddd4097f01b431d0029275c8 100644 (file)
@@ -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;
        ///