X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_boxinset.h;h=59fd02d1ac3c212638df7f0570ffd254e5109bfb;hb=4bc59f21015e9151841eea3733b97d25cd616fdc;hp=52054662a6c9794c1f0e63d3d10551845dfffde3;hpb=3786644124baf1b39ba36826e7f8ec348de42cb6;p=lyx.git diff --git a/src/mathed/math_boxinset.h b/src/mathed/math_boxinset.h index 52054662a6..59fd02d1ac 100644 --- a/src/mathed/math_boxinset.h +++ b/src/mathed/math_boxinset.h @@ -11,88 +11,6 @@ class LyXFont; -// Try to implement the reference inset "natively" for mathed. -// This is here temporarily until I can do cvs add again. - -class ButtonInset: public MathNestInset { -public: - /// - ButtonInset(); - /// - void metrics(MathMetricsInfo & mi) const; - /// - void draw(MathPainterInfo & pi, int x, int y) const; - -protected: - /// This should provide the text for the button - virtual string screenLabel() const = 0; -}; - - -// for things like \name[options]{contents} -class CommandInset : public ButtonInset { -public: - /// name, contents, options deliminited by '|++|' - explicit CommandInset(string const & data); - /// - MathInset * clone() const; - /// - void write(WriteStream & os) const; - /// - //void infoize(std::ostream & os) const; - /// - //int dispatch(string const & cmd, idx_type idx, pos_type pos); - /// - string screenLabel() const; -public: - string name_; -}; - - -// for \ref -class RefInset : public CommandInset { -public: - /// - RefInset(); - /// - explicit RefInset(string const & data); - /// - MathInset * clone() const; - /// - //void write(WriteStream & os) const; - /// - void infoize(std::ostream & os) const; - /// - int dispatch(string const & cmd, idx_type idx, pos_type pos); - /// - string screenLabel() const; - /// - void validate(LaTeXFeatures & features) const; - - /// plain ascii output - int ascii(std::ostream & os, int) const; - /// linuxdoc output - int linuxdoc(std::ostream & os) const; - /// docbook output - int docbook(std::ostream & os, bool) const; - - - struct type_info { - /// - string latex_name; - /// - string gui_name; - /// - string short_gui_name; - }; - static type_info types[]; - /// - static int getType(string const & name); - /// - static string const & getName(int type); -}; - - /// Support for \\mbox class MathBoxInset : public MathGridInset {