lyx_mirror/src/mathed/InsetMathRef.h
Michael Schmitt dc402e30fb * src/mathed/InsetMathRef.*: remove plaintext()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17287 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-20 21:04:29 +00:00

70 lines
1.3 KiB
C++

// -*- C++ -*-
/**
* \file InsetMathRef.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef REF_INSET_H
#define REF_INSET_H
#include "InsetMathCommand.h"
namespace lyx {
class Buffer;
// for \ref
class RefInset : public CommandInset {
public:
///
RefInset();
///
explicit RefInset(docstring const & data);
///
//void write(WriteStream & os) const;
///
void infoize(odocstream & os) const;
///
docstring const screenLabel() const;
///
void validate(LaTeXFeatures & features) const;
///
virtual RefInset * asRefInset() { return this; }
/// docbook output
int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
struct ref_type_info {
///
docstring latex_name;
///
docstring gui_name;
///
docstring short_gui_name;
};
static ref_type_info types[];
///
static int getType(docstring const & name);
///
static docstring const & getName(int type);
protected:
///
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
///
bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
private:
///
virtual std::auto_ptr<InsetBase> doClone() const;
};
} // namespace lyx
#endif