]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlListings.h
fix scrolling bug: 3320 and 3652, maybe not perfect
[lyx.git] / src / frontends / controllers / ControlListings.h
1 // -*- C++ -*-
2 /**
3  * \file ControlListings.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Bo Peng
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLLISTINGS_H
13 #define CONTROLLISTINGS_H
14
15 #include "Dialog.h"
16 #include "insets/InsetListingsParams.h"
17
18 namespace lyx {
19
20 class InsetListingsParams;
21
22 namespace frontend {
23
24 class ControlListings : public Dialog::Controller  {
25 public:
26         ///
27         ControlListings(Dialog &);
28         ///
29         virtual bool initialiseParams(std::string const & data);
30         /// clean-up on hide.
31         virtual void clearParams();
32         /// clean-up on hide.
33         virtual void dispatchParams();
34         ///
35         virtual bool isBufferDependent() const { return true; }
36         ///
37         InsetListingsParams & params() { return params_; }
38         ///
39         InsetListingsParams const & params() const { return params_; }
40         ///
41         void setParams(InsetListingsParams const &);
42 private:
43         ///
44         InsetListingsParams params_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif