* \author Jürgen Vigna
* \author Lars Gullik Bjønnes
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "insetfoot.h"
+
#include "gettext.h"
-#include "lyxfont.h"
-#include "BufferView.h"
#include "latexrunparams.h"
-#include "lyxtext.h"
-#include "insets/insettext.h"
-#include "support/LOstream.h"
-#include "debug.h"
// the following are needed just to get the layout of the enclosing
// paragraph. This seems a bit too much to me (JMarc)
#include "lyxlayout.h"
-#include "buffer.h"
#include "paragraph.h"
+#include "paragraph_funcs.h"
+#include "support/std_ostream.h"
-using std::ostream;
+
+using std::string;
using std::auto_ptr;
+using std::ostream;
InsetFoot::InsetFoot(BufferParams const & bp)
}
-int InsetFoot::latex(Buffer const * buf, ostream & os,
+int InsetFoot::latex(Buffer const & buf, ostream & os,
LatexRunParams const & runparams_in) const
{
LatexRunParams runparams = runparams_in;
- if (buf && parOwner()) {
- LyXLayout_ptr const & layout = parOwner()->layout();
- runparams.moving_arg |= layout->intitle;
- }
+ runparams.moving_arg |= ownerPar(buf, this).layout()->intitle;
os << "%\n\\footnote{";
}
-int InsetFoot::docbook(Buffer const * buf, ostream & os, bool mixcont) const
+int InsetFoot::docbook(Buffer const & buf, ostream & os, bool mixcont) const
{
os << "<footnote>";
int const i = inset.docbook(buf, os, mixcont);