On Mon, Jul 21, 2003 at 09:58:28PM +0200, Juergen Spitzmueller spake thusly: > > Juergen Spitzmueller wrote: > > > Someone not me should try this out. > > > > I'll have a go during the next days. > > ControlBranch.[Ch] is missing in the patch. Can you send me those files > separately please? > > Thanks, > Juergen.
Ah, sorry. Attached. Martin -- Martin Vermeer [EMAIL PROTECTED] Helsinki University of Technology Dept. of Surveying, Inst. of Geodesy P.O. Box 1200, FIN-02015 HUT, Finland :wq
// -*- C++ -*- /** * \file ControlBranch.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * \author Martin Vermeer * * Full author contact details are available in file CREDITS */ #ifndef CONTROLBRANCH_H #define CONTROLBRANCH_H #include "Dialog.h" #include "debug.h" class InsetBranchParams; class ControlBranch : public Dialog::Controller { public: /// ControlBranch(Dialog &); /// virtual bool initialiseParams(string const & data); /// virtual void clearParams(); /// virtual void dispatchParams(); /// virtual bool isBufferDependent() const { return true; } /// InsetBranchParams & params() { return *params_.get(); } /// InsetBranchParams const & params() const { return *params_.get(); } /// private: /// boost::scoped_ptr<InsetBranchParams> params_; }; #endif // CONTROLBRANCH_H
/** * \file ControlBranch.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * \author Martin Vermeer * * Full author contact details are available in file CREDITS */ #include <config.h> #include "ControlBranch.h" #include "funcrequest.h" #include "insets/insetbranch.h" #include "debug.h" ControlBranch::ControlBranch(Dialog & parent) : Dialog::Controller(parent) {} bool ControlBranch::initialiseParams(string const & data) { InsetBranchParams params; InsetBranchMailer::string2params(data, params); params_.reset(new InsetBranchParams(params)); return true; } void ControlBranch::clearParams() { params_.reset(); } void ControlBranch::dispatchParams() { string const lfun = InsetBranchMailer::params2string(string("branch"), params()); kernel().dispatch(FuncRequest(LFUN_INSET_APPLY, lfun)); }
pgp00000.pgp
Description: PGP signature