From: André Pönitz Date: Mon, 2 Jun 2003 16:14:33 +0000 (+0000) Subject: IU for validate(). I guess that's in the 'don't ask' category... X-Git-Tag: 1.6.10~16707 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b625e2038ac37153025f001358a25994e7568588;p=features.git IU for validate(). I guess that's in the 'don't ask' category... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7085 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 5efeaa0d28..abb8261619 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -27,6 +27,9 @@ * insettabular.[Ch]: * insettext.[Ch]: unify first drawing phase + * inset.[Ch]: + * insetbase.h: move validate() to the base + 2003-05-31 Angus Leeming * Makefile.am: moved insetwrap.[Ch] into alphabetical order. diff --git a/src/insets/inset.C b/src/insets/inset.C index c5cc6ad5d3..a69f1f8884 100644 --- a/src/insets/inset.C +++ b/src/insets/inset.C @@ -60,10 +60,6 @@ Inset::EDITABLE Inset::editable() const } -void Inset::validate(LaTeXFeatures &) const -{} - - bool Inset::autoDelete() const { return false; diff --git a/src/insets/inset.h b/src/insets/inset.h index 0b72fb684a..1bdf567751 100644 --- a/src/insets/inset.h +++ b/src/insets/inset.h @@ -23,7 +23,6 @@ #include class LyXFont; -class Dimension; class Buffer; class Painter; class LatexRunParams; @@ -35,8 +34,6 @@ class FuncRequest; class WordLangTuple; class ParagraphList; -struct LaTeXFeatures; - namespace grfx { class PreviewLoader; } @@ -192,8 +189,6 @@ public: virtual int linuxdoc(Buffer const *, std::ostream &) const = 0; /// virtual int docbook(Buffer const *, std::ostream &, bool) const = 0; - /// Updates needed features for this inset. - virtual void validate(LaTeXFeatures & features) const; /// returns LyX code associated with the inset. Used for TOC, ...) virtual Inset::Code lyxCode() const { return NO_CODE; } diff --git a/src/insets/insetbase.C b/src/insets/insetbase.C index 5a90fb006e..1253333cea 100644 --- a/src/insets/insetbase.C +++ b/src/insets/insetbase.C @@ -13,4 +13,3 @@ dispatch_result InsetBase::localDispatch(FuncRequest const & cmd) pos_type pos = 0; return dispatch(cmd, idx, pos); } - diff --git a/src/insets/insetbase.h b/src/insets/insetbase.h index ef87a2f966..51ba1a981a 100644 --- a/src/insets/insetbase.h +++ b/src/insets/insetbase.h @@ -19,6 +19,7 @@ class FuncRequest; class MetricsInfo; class Dimension; class PainterInfo; +class LaTeXFeatures; /** Dispatch result codes DISPATCHED = the inset catched the action @@ -81,6 +82,8 @@ public: virtual void cache(BufferView *) const {} /// virtual BufferView * view() const { return 0; } + /// request "external features" + virtual void validate(LaTeXFeatures &) const {} }; #endif diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index dcc6a20698..4e81536691 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -3,6 +3,8 @@ * math_*.[Ch]: finish unified two-stage drawing + * math_inset.h: move validate to insetbase.h + 2003-05-28 André Pönitz * math_*.[Ch]: prepare unified two-stage drawing diff --git a/src/mathed/math_inset.h b/src/mathed/math_inset.h index 02b9420b0e..eac36dd7da 100644 --- a/src/mathed/math_inset.h +++ b/src/mathed/math_inset.h @@ -70,7 +70,6 @@ class MathMLStream; class WriteStream; class InfoStream; -class LaTeXFeatures; class BufferView; class UpdatableInset; class MathMacroTemplate; @@ -213,8 +212,6 @@ public: /// identifies things that can get \limits or \nolimits virtual bool takesLimits() const { return false; } - /// request "external features" - virtual void validate(LaTeXFeatures &) const {} /// char char code if possible virtual void handleFont(string const &) {} /// is this inset equal to a given other inset?