mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
60 lines
1.0 KiB
C
60 lines
1.0 KiB
C
|
/**
|
||
|
* \file FormParagraph.h
|
||
|
* Copyright 2001 LyX Team
|
||
|
* see the file COPYING
|
||
|
*
|
||
|
* \author John Levon, moz@compsoc.man.ac.uk
|
||
|
*/
|
||
|
|
||
|
#ifndef FORMPARAGRAPH_H
|
||
|
#define FORMPARAGRAPH_H
|
||
|
|
||
|
#include "DialogBase.h"
|
||
|
#include "LString.h"
|
||
|
#include "boost/utility.hpp"
|
||
|
|
||
|
class Dialogs;
|
||
|
class LyXView;
|
||
|
class ParagraphDlgImpl;
|
||
|
|
||
|
class FormParagraph : public DialogBase, public noncopyable {
|
||
|
public:
|
||
|
/**@name Constructors and Destructors */
|
||
|
//@{
|
||
|
///
|
||
|
FormParagraph(LyXView *, Dialogs *);
|
||
|
///
|
||
|
~FormParagraph();
|
||
|
//@}
|
||
|
|
||
|
/// 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.
|
||
|
ParagraphDlgImpl * 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.
|
||
|
Connection h_;
|
||
|
|
||
|
/// readonly file or not
|
||
|
bool readonly;
|
||
|
};
|
||
|
|
||
|
#endif
|