X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt2%2FQParagraph.h;h=2c5d5cd996f4f9c68dc33c70a4ac686949cc30d7;hb=1229a2712d3f4fe1392616a6973e1830cf3124ef;hp=3f96094ee1c1a80e0ee197995dbff8081d83a5dd;hpb=03add3957a3807cdd9f7608aa9277c0177988a9e;p=lyx.git diff --git a/src/frontends/qt2/QParagraph.h b/src/frontends/qt2/QParagraph.h index 3f96094ee1..2c5d5cd996 100644 --- a/src/frontends/qt2/QParagraph.h +++ b/src/frontends/qt2/QParagraph.h @@ -4,52 +4,37 @@ * Copyright 2001 LyX Team * see the file COPYING * - * \author John Levon, moz@compsoc.man.ac.uk + * \author Edwin Leuven + * \author John Levon */ #ifndef QPARAGRAPH_H #define QPARAGRAPH_H -#include "DialogBase.h" -#include "LString.h" -#include "boost/utility.hpp" +#include +#include "Qt2Base.h" -class Dialogs; -class LyXView; +class ControlParagraph; class QParagraphDialog; -class QParagraph : public DialogBase { -public: - QParagraph(LyXView *, Dialogs *); - ~QParagraph(); +class QParagraph : + public Qt2CB > +{ + friend class QParagraphDialog; + +public: + QParagraph(); + +private: /// Apply changes - void apply(); - /// Update the dialog. - void update(bool switched = false); - /// Close the connections - void close(); - -private: - /// Create the dialog if necessary, update it and display it. - void show(); - /// Hide the dialog. - void hide(); - - /// Real GUI implementation. - QParagraphDialog * dialog_; - - /// the LyXView we belong to - LyXView * lv_; - - /// Used so we can get at the signals we have to connect to. - Dialogs * d_; - - /// Hide connection. - SigC::Connection h_; + virtual void apply(); + /// update + virtual void update_contents(); + /// build the dialog + virtual void build_dialog(); - /// readonly file or not - bool readonly; + std::vector units_; }; #endif // QPARAGRAPH_H