]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlBranch.h
Overhaul the branches code.
[features.git] / src / frontends / controllers / ControlBranch.h
1 // -*- C++ -*-
2 /**
3  * \file ControlBranch.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  * \author Martin Vermeer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef CONTROLBRANCH_H
14 #define CONTROLBRANCH_H
15
16
17 #include "Dialog.h"
18
19 class BranchList;
20 class InsetBranchParams;
21
22
23 class ControlBranch : public Dialog::Controller {
24 public:
25         ///
26         ControlBranch(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         ///
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35         ///
36         InsetBranchParams & params() { return *params_.get(); }
37         InsetBranchParams const & params() const { return *params_.get(); }
38         ///
39         BranchList const & branchlist() const;
40
41 private:
42         ///
43         boost::scoped_ptr<InsetBranchParams> params_;
44 };
45
46 #endif // CONTROLBRANCH_H