]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetVSpace.cpp
index b35a46cfc054f072e6a674dc052d6abe96f88d38..24cfe3ebcf14869a9e8ddf1576e211d28143b992 100644 (file)
 
 #include "Buffer.h"
 #include "Cursor.h"
+#include "Dimension.h"
 #include "DispatchResult.h"
 #include "FuncRequest.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "Lexer.h"
 #include "Text.h"
 #include "MetricsInfo.h"
 
 #include <sstream>
 
+using namespace std;
 
 namespace lyx {
 
-using std::istringstream;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-using std::max;
-
-
 namespace {
 
 int const ADD_TO_VSPACE_WIDTH = 5;
@@ -123,7 +118,7 @@ void InsetVSpace::metrics(MetricsInfo & mi, Dimension & dim) const
        if (space_.length().len().value() >= 0.0)
                height = max(height, space_.inPixels(*mi.base.bv));
 
-       Font font;
+       FontInfo font;
        font.decSize();
        font.decSize();
 
@@ -175,7 +170,7 @@ void InsetVSpace::draw(PainterInfo & pi, int x, int y) const
        int a = 0;
        int d = 0;
 
-       Font font;
+       FontInfo font;
        font.setColor(Color_added_space);
        font.decSize();
        font.decSize();