#include "Painter.h"
#include "font_metrics.h"
-#include "WorkArea.h"
#include "LColor.h"
#include "lyxfont.h"
+using lyx::docstring;
+
using std::max;
using std::string;
+namespace lyx {
+namespace frontend {
void Painter::button(int x, int y, int w, int h)
{
void Painter::rectText(int x, int y,
- string const & str,
+ docstring const & str,
LyXFont const & font,
LColor_color back,
LColor_color frame)
}
-void Painter::buttonText(int x, int y, string const & str, LyXFont const & font)
+void Painter::buttonText(int x, int y, docstring const & str, LyXFont const & font)
{
int width;
int ascent;
else
fillRectangle(x, y + below, width, below + height, f.color());
}
+
+} // namespace frontend
+} // namespace lyx