]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetBox.cpp
index 0b2ab3eea1fca9e15a597fa720ee7892fab972ab..c61efe6d0165138be1b477ca344a4fea14100400 100644 (file)
@@ -189,7 +189,7 @@ void InsetBox::metrics(MetricsInfo & mi, Dimension & dim) const
        if (hasFixedWidth())
                mi.base.textwidth = mi.base.inPixels(params_.width);
        InsetCollapsible::metrics(mi, dim);
-       // retore textwidth.
+       // restore textwidth.
        mi.base.textwidth = textwidth_backup;
 }
 
@@ -281,7 +281,7 @@ void InsetBox::doDispatch(Cursor & cur, FuncRequest & cmd)
                cur.recordUndoInset(this);
                if (change_type) {
                        params_.type = cmd.getArg(1);
-                       // set a makebox if there is no inner box but Frameless was exectued
+                       // set a makebox if there is no inner box but Frameless was executed
                        // otherwise the result would be a non existent box (no inner AND outer box)
                        // (this was LyX bug 8712)
                        if (params_.type == "Frameless" && !params_.inner_box) {
@@ -715,9 +715,9 @@ int InsetBox::plaintext(odocstringstream & os,
 }
 
 
-int InsetBox::docbook(odocstream & os, OutputParams const & runparams) const
+void InsetBox::docbook(XMLStream & xs, OutputParams const & runparams) const
 {
-       return InsetText::docbook(os, runparams);
+       InsetText::docbook(xs, runparams);
 }