lyx_mirror/src/frontends/gtk/GParagraph.h
Georg Baum a1ba34bef9 disable open dialogs if applying them is not allowed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9811 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-13 09:43:58 +00:00

60 lines
1.2 KiB
C++

// -*- C++ -*-
/**
* \file GParagraph.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Spray
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GPARAGRAPH_H
#define GPARAGRAPH_H
#include "GViewBase.h"
#include <gtkmm.h>
namespace lyx {
namespace frontend {
class ControlParagraph;
/** This class provides a gtk implementation of the paragraph dialog.
*/
class GParagraph
: public GViewCB<ControlParagraph, GViewGladeB> {
public:
GParagraph(Dialog &);
private:
/// Build the dialog
virtual void doBuild();
/// Apply from dialog
virtual void apply() {}
/// Update the dialog
virtual void update();
Gtk::SpinButton * spacingspin_;
Gtk::Entry * maxlabelwidthentry_;
Gtk::CheckButton * indentcheck_;
Gtk::CheckButton * defaultspacingcheck_;
Gtk::RadioButton * blockradio_;
Gtk::RadioButton * leftradio_;
Gtk::RadioButton * rightradio_;
Gtk::RadioButton * centerradio_;
Gtk::Adjustment * spacingadj_;
void onDefaultSpacingToggled();
void onMaxLabelWidthChanged();
void onSpacingChanged();
void onIndentToggled();
void onAlignToggled();
};
} // namespace frontend
} // namespace lyx
#endif