2002-06-24 15:51:35 +00:00
|
|
|
#ifndef REF_INSET_H
|
|
|
|
#define REF_INSET_H
|
|
|
|
|
2002-09-11 09:14:57 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-06-24 15:51:35 +00:00
|
|
|
#include "command_inset.h"
|
|
|
|
|
2002-12-01 22:59:25 +00:00
|
|
|
// for \ref
|
2002-06-24 15:51:35 +00:00
|
|
|
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;
|
|
|
|
///
|
2002-08-13 17:43:40 +00:00
|
|
|
result_type dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
|
2002-06-24 15:51:35 +00:00
|
|
|
///
|
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|