1 /* This file is part of*
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1997-2001 The LyX Team.
8 * ====================================================== */
11 // Created by asierra 970813
17 #pragma implementation
20 #include "insetparent.h"
21 #include "support/filetools.h"
22 #include "BufferView.h"
24 #include "commandtags.h"
32 InsetParent::InsetParent(InsetCommandParams const & p, Buffer const & bf, bool)
35 string const fn = p.getContents();
36 setContents(MakeAbsPath(fn, OnlyPath(bf.fileName())));
40 string const InsetParent::getScreenLabel() const
42 return string(_("Parent:")) + getContents();
46 void InsetParent::edit(BufferView * bv, int, int, unsigned int)
48 bv->owner()->getLyXFunc()->
49 Dispatch(LFUN_CHILDOPEN, getContents());
53 // LaTeX must just ignore this command
54 int InsetParent::latex(Buffer const * buf, ostream & os,
55 bool fragile, bool free_spc) const
58 InsetCommand::latex(buf, os, fragile, free_spc);