]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.h
preview as preview can...
[lyx.git] / src / mathed / math_boxinset.h
index 52054662a6c9794c1f0e63d3d10551845dfffde3..59fd02d1ac3c212638df7f0570ffd254e5109bfb 100644 (file)
 
 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 {