mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
remove inset for \not
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4607 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fa02980a7e
commit
b80b2189f7
@ -97,8 +97,6 @@ libmathed_la_SOURCES = \
|
||||
math_metricsinfo.h \
|
||||
math_nestinset.C \
|
||||
math_nestinset.h \
|
||||
math_notinset.C \
|
||||
math_notinset.h \
|
||||
math_numberinset.C \
|
||||
math_numberinset.h \
|
||||
math_parboxinset.C \
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "math_macro.h"
|
||||
#include "math_macrotable.h"
|
||||
#include "math_macroarg.h"
|
||||
#include "math_notinset.h"
|
||||
#include "math_parboxinset.h"
|
||||
#include "math_rootinset.h"
|
||||
#include "math_sizeinset.h"
|
||||
@ -199,8 +198,6 @@ MathAtom createMathInset(string const & s)
|
||||
return MathAtom(new MathFracInset);
|
||||
if (s == "atop")
|
||||
return MathAtom(new MathFracInset(true));
|
||||
if (s == "not")
|
||||
return MathAtom(new MathNotInset);
|
||||
if (s == "lefteqn")
|
||||
return MathAtom(new MathLefteqnInset);
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
#include "math_notinset.h"
|
||||
#include "math_parser.h"
|
||||
#include "math_mathmlstream.h"
|
||||
#include "math_support.h"
|
||||
|
||||
|
||||
MathNotInset::MathNotInset()
|
||||
{}
|
||||
|
||||
|
||||
MathInset * MathNotInset::clone() const
|
||||
{
|
||||
return new MathNotInset(*this);
|
||||
}
|
||||
|
||||
|
||||
void MathNotInset::write(WriteStream & os) const
|
||||
{
|
||||
os << "\\not ";
|
||||
}
|
||||
|
||||
|
||||
void MathNotInset::normalize(NormalStream & os) const
|
||||
{
|
||||
os << "[not] ";
|
||||
}
|
||||
|
||||
|
||||
void MathNotInset::metrics(MathMetricsInfo & mi) const
|
||||
{
|
||||
font_ = mi.base.font;
|
||||
// if (math_font_available("cmsy")) {
|
||||
// augmentFont(font_, "cmsy");
|
||||
// char_ = 54;
|
||||
// } else {
|
||||
augmentFont(font_, "mathnormal");
|
||||
char_ = '/';
|
||||
// }
|
||||
mathed_char_dim(font_, char_, dim_);
|
||||
dim_.w = 0;
|
||||
}
|
||||
|
||||
|
||||
void MathNotInset::draw(MathPainterInfo & pain, int x, int y) const
|
||||
{
|
||||
drawChar(pain, font_, x, y, char_);
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
// -*- C++ -*-
|
||||
#ifndef MATH_NOTINSET_H
|
||||
#define MATH_NOTINSET_H
|
||||
|
||||
#include "math_diminset.h"
|
||||
|
||||
// \\not
|
||||
|
||||
class MathNotInset : public MathDimInset {
|
||||
public:
|
||||
///
|
||||
MathNotInset();
|
||||
///
|
||||
MathInset * clone() const;
|
||||
///
|
||||
void write(WriteStream & os) const;
|
||||
///
|
||||
void normalize(NormalStream & ns) const;
|
||||
///
|
||||
void metrics(MathMetricsInfo & mi) const;
|
||||
///
|
||||
void draw(MathPainterInfo &, int x, int y) const;
|
||||
private:
|
||||
///
|
||||
mutable LyXFont font_;
|
||||
///
|
||||
mutable char char_;
|
||||
};
|
||||
#endif
|
@ -302,7 +302,6 @@ named_deco_struct deco_table[] = {
|
||||
{"check", angle, 1 },
|
||||
{"breve", parenth, 1 },
|
||||
{"vec", arrow, 3 },
|
||||
{"not", slash, 0 },
|
||||
{"mathring", ring, 0 },
|
||||
|
||||
// Dots
|
||||
|
Loading…
Reference in New Issue
Block a user