]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormUrl.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / kde / FormUrl.h
1 /**
2  * \file FormUrl.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #ifndef FORMURL_H
10 #define FORMURL_H
11
12 #include "DialogBase.h"
13 #include "LString.h"
14 #include "boost/utility.hpp"
15 #include "insets/inseturl.h"
16
17 class Dialogs;
18 class LyXView;
19 class UrlDialog;
20
21 class FormUrl : public DialogBase, public noncopyable {
22 public: 
23         FormUrl(LyXView *, Dialogs *);
24
25         ~FormUrl();
26
27         /// Apply changes
28         void apply();
29         /// close the connections
30         void close();
31  
32 private: 
33         /// Create the dialog if necessary, update it and display it.
34         void show();
35         /// Hide the dialog.
36         void hide();
37         /// Update the dialog.
38         void update(bool switched = false);
39
40         /// create a URL inset
41         void createUrl(string const &);
42         /// edit a URL inset
43         void showUrl(InsetCommand * const);
44  
45         /// Real GUI implementation.
46         UrlDialog * dialog_;
47
48         /// the LyXView we belong to
49         LyXView * lv_;
50  
51         /// Dialogs object
52         Dialogs * d_;
53  
54         /// pointer to the inset if any
55         InsetCommand * inset_;
56         /// insets params
57         InsetCommandParams params;
58         /// is the inset we are reading from a readonly buffer
59         bool readonly;
60         
61         /// Hide connection.
62         Connection h_;
63         /// Update connection.
64         Connection u_;
65         /// Inset hide connection.
66         Connection ih_;
67 };
68
69 #endif // FORMURL_H