*/
class InsetRef : public InsetCommand {
public:
+ struct type_info {
+ ///
+ string latex_name;
+ ///
+ string gui_name;
+ ///
+ string short_gui_name;
+ };
+ static type_info types[];
///
- InsetRef(InsetCommandParams const &);
+ static int getType(string const & name);
///
- Inset * Clone() const { return new InsetRef(params()); }
+ static string const & getName(int type);
+
+ ///
+ InsetRef(InsetCommandParams const &, Buffer const &);
///
- string getScreenLabel() const;
+ Inset * Clone(Buffer const & buffer) const {
+ return new InsetRef(params(), buffer);
+ }
+ ///
+ string const getScreenLabel() const;
///
EDITABLE Editable() const { return IS_EDITABLE; }
///
int Latex(Buffer const *, std::ostream &,
bool fragile, bool free_spc) const;
///
- int Ascii(Buffer const *, std::ostream &) const;
+ int Ascii(Buffer const *, std::ostream &, int linelen) const;
///
int Linuxdoc(Buffer const *, std::ostream &) const;
///
void Validate(LaTeXFeatures & features) const;
private:
/// This function escapes 8-bit characters
- string escape(string const &) const;
+ string const escape(string const &) const;
+ ///
+ bool isLatex;
};
#endif