*
* Copyright (C) 1997 LyX Team (this file was created this year)
*
- *======================================================*/
+ * ====================================================== */
#ifndef INSET_REF_H
#define INSET_REF_H
InsetRef(string const &, Buffer *);
///
InsetRef(InsetCommand const &, Buffer *);
- ///
- ~InsetRef();
///
- Inset * Clone() { return new InsetRef (getCommand(), master); }
+ Inset * Clone() const {
+ return new InsetRef (getCommand(), master);
+ }
///
Inset::Code LyxCode() const { return Inset::REF_CODE; }
///
return 1;
}
///
- bool Display() const { return false; }
+ bool display() const { return false; }
///
string getScreenLabel() const;
///
///
void gotoLabel();
///
- int Latex(FILE * file, signed char fragile);
+ int Latex(ostream &, signed char fragile);
///
int Latex(string & file, signed char fragile);
///
void InsetRef::gotoLabel()
{
if (master) {
- master->gotoLabel(getContents());
+ master->getUser()->gotoLabel(getContents());
}
}
#endif