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