]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetWrap.cpp
index 64b7ccd55fa9fa4eccafc36ad2da1b7d0e38b3d6..35271bbf1e10a5c97e35f2304288b4d746e2b098 100644 (file)
@@ -4,6 +4,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Dekel Tsur
+ * \author Uwe Stöhr
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "FuncStatus.h"
 #include "gettext.h"
 #include "LaTeXFeatures.h"
-#include "Color.h"
 #include "Lexer.h"
 #include "OutputParams.h"
 #include "TocBackend.h"
 
 #include "support/convert.h"
+#include "support/docstream.h"
 
 
 namespace lyx {
@@ -46,11 +47,6 @@ InsetWrap::InsetWrap(BufferParams const & bp, string const & type)
        : InsetCollapsable(bp), name_(from_utf8(type))
 {
        setLabel(_("wrap: ") + floatName(type, bp));
-       Font font(Font::ALL_SANE);
-       font.decSize();
-       font.decSize();
-       font.setColor(Color::collapsable);
-       setLabelFont(font);
        params_.type = type;
        params_.lines = 0;
        params_.placement = "o";
@@ -260,7 +256,7 @@ int InsetWrap::docbook(Buffer const & buf, odocstream & os,
 }
 
 
-bool InsetWrap::insetAllowed(Inset::Code code) const
+bool InsetWrap::insetAllowed(InsetCode code) const
 {
        switch(code) {
        case FLOAT_CODE: