mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
18101eea7b
* src/Buffer.cpp: - increment file format to 320. * src/insets(InsetSpace.{cpp, h}: - add HFILL_PROTECTED, a protected horizontal fill (LaTeX: \hspace*{\fill}) * src/factory.cpp: * src/frontends/qt4/GuiHSpace.{cpp, h}: - handle the new space type. * lib/lyx2lyx/LyX.py: * lib/lyx2lyx/lyx_1_6.py: - reversion routine for protected hfill. * development/FORMAT: - document file format change git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23805 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.0 KiB
C++
63 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiHSpace.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Spitzmüller
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUIHSPACE_H
|
|
#define GUIHSPACE_H
|
|
|
|
#include "GuiDialog.h"
|
|
#include "ui_HSpaceUi.h"
|
|
#include "insets/InsetSpace.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiHSpace : public GuiDialog, public Ui::HSpaceUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiHSpace(GuiView & lv);
|
|
|
|
private Q_SLOTS:
|
|
///
|
|
void change_adaptor();
|
|
///
|
|
void enableWidgets(int);
|
|
///
|
|
void patternChanged();
|
|
|
|
private:
|
|
/// Apply from dialog
|
|
void applyView();
|
|
/// Update the dialog
|
|
void updateContents();
|
|
///
|
|
bool isValid();
|
|
///
|
|
bool initialiseParams(std::string const & data);
|
|
/// clean-up on hide.
|
|
void clearParams();
|
|
/// clean-up on hide.
|
|
void dispatchParams();
|
|
///
|
|
bool isBufferDependent() const { return true; }
|
|
///
|
|
bool inInset() const;
|
|
|
|
///
|
|
InsetSpaceParams params_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // GUIHSPACE_H
|