]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommand.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetCommand.cpp
index 74cb84585577c28cdfd191441b156a35e4330384..c98ea20a872cc2981a9d38548b1f9e527c6f9142 100644 (file)
@@ -29,7 +29,6 @@ namespace lyx {
 
 using std::string;
 using std::istringstream;
-using std::ostream;
 using std::ostringstream;
 
 
@@ -53,7 +52,7 @@ bool InsetCommand::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        if (updateButtonLabel_) {
                updateButtonLabel_ = false;
-               button_.update(getScreenLabel(*mi.base.bv->buffer()),
+               button_.update(getScreenLabel(mi.base.bv->buffer()),
                               editable() != NOT_EDITABLE);
        }
        button_.metrics(mi, dim);
@@ -86,7 +85,7 @@ void InsetCommand::setParams(InsetCommandParams const & p)
 
 
 int InsetCommand::latex(Buffer const &, odocstream & os,
-                        OutputParams const &) const
+                       OutputParams const &) const
 {
        os << getCommand();
        return 0;
@@ -94,7 +93,7 @@ int InsetCommand::latex(Buffer const &, odocstream & os,
 
 
 int InsetCommand::plaintext(Buffer const & buf, odocstream & os,
-                            OutputParams const &) const
+                           OutputParams const &) const
 {
        docstring const str = "[" + buf.B_("LaTeX Command: ") + from_utf8(getCmdName()) + "]";
        os << str;
@@ -103,7 +102,7 @@ int InsetCommand::plaintext(Buffer const & buf, odocstream & os,
 
 
 int InsetCommand::docbook(Buffer const &, odocstream &,
-                          OutputParams const &) const
+                         OutputParams const &) const
 {
        return 0;
 }