#include "GuiParagraph.h"
+#include "qt_helpers.h"
+
#include "Buffer.h"
#include "BufferParams.h"
#include "BufferView.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "ParagraphParameters.h"
-#include "qt_helpers.h"
#include "Spacing.h"
#include "support/debug.h"
#include "support/gettext.h"
#include <QCheckBox>
-#include <QCloseEvent>
#include <QLineEdit>
#include <QPushButton>
LyXAlignment const align = it->first;
it->second->setEnabled(align & alignPossible());
}
- if (haveMulitParSelection())
+ if (haveMultiParSelection())
alignDefaultRB->setText(alignDefaultLabel);
else
alignDefaultRB->setText(alignDefaultLabel + " ("
{
RadioMap::const_iterator it = radioMap.begin();
for (;it != radioMap.end(); ++it) {
- if (!it->second->isEnabled())
- continue;
it->second->blockSignals(true);
it->second->setChecked(align == it->first);
it->second->blockSignals(false);
ParagraphParameters & GuiParagraph::params()
{
- if (haveMulitParSelection()) {
+ if (haveMultiParSelection()) {
multiparsel_ = ParagraphParameters();
// FIXME: It would be nice to initialise the parameters that
// are common to all paragraphs.
void GuiParagraph::dispatchParams()
{
- if (haveMulitParSelection()) {
+ if (haveMultiParSelection()) {
ostringstream data;
multiparsel_.write(data);
FuncRequest const fr(getLfun(), data.str());
}
-bool GuiParagraph::haveMulitParSelection()
+bool GuiParagraph::haveMultiParSelection()
{
Cursor cur = bufferview()->cursor();
return cur.selection() && cur.selBegin().pit() != cur.selEnd().pit();
Dialog * createGuiParagraph(GuiView & lv)
{
-#if 0
- GuiView & guiview = static_cast<GuiView &>(lv);
-#ifdef USE_DOCK_WIDGET
- return new DockView<ControlParagraph, GuiParagraph>(guiview, "paragraph",
- Qt::TopDockWidgetArea);
-#else
- return new DialogView<ControlParagraph, GuiParagraph>(guiview, "paragraph");
-#endif
-#endif
-
return new GuiParagraph(lv);
}