]> git.lyx.org Git - features.git/commitdiff
Different types of boxes should all have their own layouts. This
authorRichard Heck <rgheck@comcast.net>
Sun, 3 Apr 2011 12:56:58 +0000 (12:56 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 3 Apr 2011 12:56:58 +0000 (12:56 +0000)
involves no change of functionality, due to the fall-back mechanism and
is needed for XHTML CSS output for the boxes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38225 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index b6d574e4c229c4f1043be37419c5360ff40c771e..7b8d8232c292ee734d8d81d90f4158eb39279982 100644 (file)
@@ -105,10 +105,7 @@ InsetBox::InsetBox(Buffer * buffer, string const & label)
 docstring InsetBox::layoutName() const
 {
        // FIXME: UNICODE
-       string name = "Box";
-       if (boxtranslator().find(params_.type) == Shaded)
-               name += ":Shaded";
-       return from_ascii(name);
+       return from_ascii("Box:" + params_.type);
 }