X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetindex.h;h=638825412cce397fb9d05c75d51952896eddf3c6;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=598ae99f3ceaa2a3d94e8b2af448e16c6d71617a;hpb=85a5ea7bfc80e179a61a99f2955455e84d3384cc;p=lyx.git diff --git a/src/insets/insetindex.h b/src/insets/insetindex.h index 598ae99f3c..638825412c 100644 --- a/src/insets/insetindex.h +++ b/src/insets/insetindex.h @@ -1,41 +1,44 @@ // -*- C++ -*- -/* This file is part of* - * ====================================================== +/** + * \file insetindex.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1996-2001 the LyX Team. - * - * ====================================================== */ + * \author Lars Gullik Bjønnes + * + * Full author contact details are available in file CREDITS. + */ #ifndef INSET_INDEX_H #define INSET_INDEX_H -#ifdef __GNUG__ -#pragma interface -#endif #include "insetcommand.h" -struct LaTeXFeatures; -/** Used to insert index labels +namespace lyx { + +class LaTeXFeatures; + +/** Used to insert index labels */ class InsetIndex : public InsetCommand { public: /// InsetIndex(InsetCommandParams const &); /// - virtual Inset * clone(Buffer const &) const { - return new InsetIndex(params()); - } - /// - string const getScreenLabel() const; + docstring const getScreenLabel(Buffer const &) const; /// EDITABLE editable() const { return IS_EDITABLE; } /// - void edit(BufferView *, int, int, unsigned int); + InsetBase::Code lyxCode() const; + /// + int docbook(Buffer const &, odocstream &, + OutputParams const &) const; +private: + virtual std::auto_ptr doClone() const { + return std::auto_ptr(new InsetIndex(params())); + } }; @@ -43,22 +46,23 @@ class InsetPrintIndex : public InsetCommand { public: /// InsetPrintIndex(InsetCommandParams const &); - /// - virtual Inset * clone(Buffer const &) const { - return new InsetPrintIndex(params()); - } /// Updates needed features for this inset. void validate(LaTeXFeatures & features) const; /// - void edit(BufferView *, int, int, unsigned int) {} + EDITABLE editable() const { return NOT_EDITABLE; } /// - EDITABLE editable() const{ return NOT_EDITABLE; } + InsetBase::Code lyxCode() const; /// bool display() const { return true; } /// - Inset::Code lyxCode() const; - /// - string const getScreenLabel() const; + docstring const getScreenLabel(Buffer const &) const; +private: + virtual std::auto_ptr doClone() const { + return std::auto_ptr(new InsetPrintIndex(params())); + } }; + +} // namespace lyx + #endif