From c446acbd866d608963435f0b5d82506bc476f212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 17 Jan 2002 08:07:06 +0000 Subject: [PATCH] infrastructure for requiring "amssymb". Could anybody please fill in the apropriate tests? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3402 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_stringinset.C | 7 +++++++ src/mathed/math_stringinset.h | 2 ++ src/mathed/math_symbolinset.C | 5 +++++ src/mathed/math_symbolinset.h | 2 ++ 4 files changed, 16 insertions(+) diff --git a/src/mathed/math_stringinset.C b/src/mathed/math_stringinset.C index e9b803f080..a7a7ade2bc 100644 --- a/src/mathed/math_stringinset.C +++ b/src/mathed/math_stringinset.C @@ -116,3 +116,10 @@ void MathStringInset::write(WriteStream & os) const else os << str_; } + + +void MathStringInset::validate(LaTeXFeatures & features) const +{ + // if (...) + // features.require("amssymb"); +} diff --git a/src/mathed/math_stringinset.h b/src/mathed/math_stringinset.h index a3ff6af078..0bf5af1093 100644 --- a/src/mathed/math_stringinset.h +++ b/src/mathed/math_stringinset.h @@ -34,6 +34,8 @@ public: string str() const { return str_; } /// MathStringInset * asStringInset() { return this; } + /// request "external features" + void validate(LaTeXFeatures & features) const; /// void normalize(NormalStream &) const; diff --git a/src/mathed/math_symbolinset.C b/src/mathed/math_symbolinset.C index 8b7fc8d546..f2f0f5c6a2 100644 --- a/src/mathed/math_symbolinset.C +++ b/src/mathed/math_symbolinset.C @@ -183,3 +183,8 @@ void MathSymbolInset::infoize(std::ostream & os) const } +void MathSymbolInset::validate(LaTeXFeatures & features) const +{ + // if (...) + // features.require("amssymb"); +} diff --git a/src/mathed/math_symbolinset.h b/src/mathed/math_symbolinset.h index bb653b220f..e16cf8930c 100644 --- a/src/mathed/math_symbolinset.h +++ b/src/mathed/math_symbolinset.h @@ -35,6 +35,8 @@ public: string name() const; /// bool match(MathInset *) const; + /// request "external features" + void validate(LaTeXFeatures & features) const; /// void normalize(NormalStream &) const;