+// -*- C++ -*-
+/**
+ * \file metricsinfo.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#ifndef METRICSINFO_H
#define METRICSINFO_H
#include "lyxfont.h"
-#include "LString.h"
+#include "support/std_string.h"
class Painter;
class BufferView;
///
MetricsBase();
///
- MetricsBase(BufferView * bv, LyXFont const & font);
+ MetricsBase(BufferView * bv, LyXFont const & font, int textwidth);
/// the current view
BufferView * bv;
LyXFont font;
/// current math style (display/text/script/..)
Styles style;
- /// name of current font
+ /// name of current font - mathed specific
string fontname;
- /// if this is set...
- bool restrictwidth;
- /// ... this is valid
+ /// This is the width available in pixels
int textwidth;
};
///
MetricsInfo();
///
- MetricsInfo(BufferView * bv, LyXFont const & font);
+ MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth);
///
MetricsBase base;