]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBranch.h
fix crash due to invalidated iterator
[lyx.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 namespace lyx {
23 namespace frontend {
24
25 class ControlBranch : public Dialog::Controller {
26 public:
27         ///
28         ControlBranch(Dialog &);
29         ///
30         virtual bool initialiseParams(std::string const & data);
31         ///
32         virtual void clearParams();
33         ///
34         virtual void dispatchParams();
35         ///
36         virtual bool isBufferDependent() const { return true; }
37         ///
38         InsetBranchParams & params() { return *params_.get(); }
39         InsetBranchParams const & params() const { return *params_.get(); }
40         ///
41         BranchList const & branchlist() const;
42
43 private:
44         ///
45         boost::scoped_ptr<InsetBranchParams> params_;
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // CONTROLBRANCH_H