+2003-09-05 Angus Leeming <leeming@lyx.org>
+
+ * math_binaryopinset.[Ch]:
+ * math_gridinfo.h:
+ * math_xyarrowinset.[Ch]:
+ ensure that the header file can be compiled stand-alone.
+
2003-09-05 Angus Leeming <leeming@lyx.org>
* *.C: strip out redundant #includes. (168 in total.)
{}
-InsetBase * MathBinaryOpInset::clone() const
+auto_ptr<InsetBase> MathBinaryOpInset::clone() const
{
- return new MathBinaryOpInset(*this);
+ return auto_ptr<InsetBase>(new MathBinaryOpInset(*this));
}
#include "math_nestinset.h"
#include "math_nestinset.h"
+#include "metricsinfo.h"
/// An inset for multiplication
///
explicit MathBinaryOpInset(char op);
///
- InsetBase * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
void draw(PainterInfo &, int x, int y) const;
///
#ifndef MATH_GRIDINFO_H
#define MATH_GRIDINFO_H
+#include "LString.h"
+
struct ColInfo
{
ColInfo() : align('c'), rightline(0), leftline(false) {}
{}
-InsetBase * MathXYArrowInset::clone() const
+auto_ptr<InsetBase> MathXYArrowInset::clone() const
{
- return new MathXYArrowInset(*this);
+ return auto_ptr<InsetBase>(new MathXYArrowInset(*this));
}
///
MathXYArrowInset();
///
- InsetBase * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
void metrics(MetricsInfo & mi) const;
///