#include "frontends/Painter.h"
+namespace lyx {
+
using std::string;
using std::max;
using std::auto_ptr;
void InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
{
- lyx::frontend::FontMetrics const & fm =
+ frontend::FontMetrics const & fm =
theFontMetrics(mi.base.font);
dim.asc = fm.maxAscent();
dim.des = fm.maxDescent();
switch (kind_) {
case THIN:
case NEGTHIN:
- dim.wid = fm.width(lyx::char_type('x')) / 3;
+ dim.wid = fm.width(char_type('x')) / 3;
break;
case PROTECTED:
case NORMAL:
- dim.wid = fm.width(lyx::char_type('x'));
+ dim.wid = fm.width(char_type('x'));
break;
case QUAD:
dim.wid = 20;
}
-int InsetSpace::latex(Buffer const &, ostream & os,
+int InsetSpace::latex(Buffer const &, odocstream & os,
OutputParams const & runparams) const
{
switch (kind_) {
}
-int InsetSpace::plaintext(Buffer const &, ostream & os,
+int InsetSpace::plaintext(Buffer const &, odocstream & os,
OutputParams const &) const
{
switch (kind_) {
}
-int InsetSpace::docbook(Buffer const &, ostream & os,
+int InsetSpace::docbook(Buffer const &, odocstream & os,
OutputParams const &) const
{
switch (kind_) {
}
-int InsetSpace::textString(Buffer const & buf, ostream & os,
+int InsetSpace::textString(Buffer const & buf, odocstream & os,
OutputParams const & op) const
{
return plaintext(buf, os, op);
{
return true;
}
+
+
+} // namespace lyx