]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.cpp
Embedding: display a pin at the top left corner of embedded figures
[lyx.git] / src / insets / InsetWrap.cpp
index 64b7ccd55fa9fa4eccafc36ad2da1b7d0e38b3d6..9155960c2f4f833f9c42b0712075e8ca3043ca38 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 "BufferView.h"
 #include "Counters.h"
 #include "Cursor.h"
-#include "debug.h"
+#include "support/debug.h"
 #include "DispatchResult.h"
 #include "Floating.h"
 #include "FloatList.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "LaTeXFeatures.h"
-#include "Color.h"
 #include "Lexer.h"
 #include "OutputParams.h"
+#include "TextClass.h"
 #include "TocBackend.h"
 
 #include "support/convert.h"
+#include "support/docstream.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::endl;
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-
 
 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 +252,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: