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 "support/LOstream.h"
25 #include "commandtags.h"
33 InsetParent::InsetParent(InsetCommandParams const & p, Buffer const & bf, bool)
36 string const fn = p.getContents();
37 setContents(MakeAbsPath(fn, OnlyPath(bf.fileName())));
41 string const InsetParent::getScreenLabel(Buffer const *) const
43 return string(_("Parent:")) + getContents();
47 void InsetParent::edit(BufferView * bv, int, int, unsigned int)
49 bv->owner()->getLyXFunc()->
50 dispatch(LFUN_CHILDOPEN, getContents());
54 void InsetParent::edit(BufferView * bv, bool)
60 // LaTeX must just ignore this command
61 int InsetParent::latex(Buffer const * buf, ostream & os,
62 bool fragile, bool free_spc) const
65 InsetCommand::latex(buf, os, fragile, free_spc);