#include "insetcommand.h"
-struct LaTeXFeatures;
+class LaTeXFeatures;
/** The url inset
*/
explicit
InsetUrl(InsetCommandParams const &);
///
- ~InsetUrl();
- ///
- virtual std::auto_ptr<InsetBase> clone() const {
- return std::auto_ptr<InsetBase>(new InsetUrl(params()));
- }
- ///
- InsetOld::Code lyxCode() const { return InsetOld::URL_CODE; }
+ InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
///
void validate(LaTeXFeatures &) const;
///
///
int docbook(Buffer const &, std::ostream &,
OutputParams const &) const;
-protected:
- ///
- virtual
- DispatchResult
- priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+ /// the string that is passed to the TOC
+ virtual int textString(Buffer const &, std::ostream & os,
+ OutputParams const &) const;
+private:
+ virtual std::auto_ptr<InsetBase> doClone() const {
+ return std::auto_ptr<InsetBase>(new InsetUrl(params()));
+ }
};
#endif