http://bugzilla.lyx.org/show_bug.cgi?id=5407
This patch makes insetfloat search its styles using "Float:<floatname>" (or
"Float" if this fails). This allows to define a default behaviour for new
floats that makes sense.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27266
a592a061-630c-0410-9148-
cb99ea01b6c8
LaTeXBuiltin false
End
-InsetLayout tableau
- LabelString Tableau
- LabelFont
- Color collapsable
- Size Small
- EndFont
- MultiPar true
-End
MultiPar true
End
-InsetLayout figure
- LabelString Figure
- LabelFont
- Color collapsable
- Size Small
- EndFont
- MultiPar true
-End
-
-InsetLayout table
- LabelString Table
- LabelFont
- Color collapsable
- Size Small
- EndFont
- MultiPar true
-End
-
-InsetLayout algorithm
- LabelString Algorithm
+InsetLayout Float
LabelFont
Color collapsable
Size Small
}
+docstring InsetFloat::name() const
+{
+ return "Float:" + name_;
+}
+
+
docstring InsetFloat::toolTip(BufferView const & bv, int x, int y) const
{
if (InsetCollapsable::toolTip(bv, x, y).empty() || isOpen())
InsetFloatParams const & params() const { return params_; }
private:
///
- docstring name() const { return name_; }
+ docstring name() const;
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///