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
This commit is contained in:
André Pönitz 2003-06-02 16:14:33 +00:00
parent 91b3be6f57
commit b625e2038a
7 changed files with 8 additions and 13 deletions

View File

@ -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 <leeming@lyx.org>
* Makefile.am: moved insetwrap.[Ch] into alphabetical order.

View File

@ -60,10 +60,6 @@ Inset::EDITABLE Inset::editable() const
}
void Inset::validate(LaTeXFeatures &) const
{}
bool Inset::autoDelete() const
{
return false;

View File

@ -23,7 +23,6 @@
#include <vector>
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; }

View File

@ -13,4 +13,3 @@ dispatch_result InsetBase::localDispatch(FuncRequest const & cmd)
pos_type pos = 0;
return dispatch(cmd, idx, pos);
}

View File

@ -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

View File

@ -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 <poenitz@gmx.net>
* math_*.[Ch]: prepare unified two-stage drawing

View File

@ -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?