lyx_mirror/src/frontends/qt2/QParagraph.h
Lars Gullik Bjønnes f7ba7c8e9f ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3806 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 21:21:28 +00:00

56 lines
977 B
C++

// -*- C++ -*-
/**
* \file QParagraph.h
* Copyright 2001 LyX Team
* see the file COPYING
*
* \author John Levon, moz@compsoc.man.ac.uk
*/
#ifndef QPARAGRAPH_H
#define QPARAGRAPH_H
#include "DialogBase.h"
#include "LString.h"
#include "boost/utility.hpp"
class Dialogs;
class LyXView;
class QParagraphDialog;
class QParagraph : public DialogBase {
public:
QParagraph(LyXView *, Dialogs *);
~QParagraph();
/// 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_;
/// readonly file or not
bool readonly;
};
#endif // QPARAGRAPH_H