with skips.
Added helper method canIndent() to controller and appropriate logic to
QParagraph::update_contents().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18236
a592a061-630c-0410-9148-
cb99ea01b6c8
#include <config.h>
#include "ControlParagraph.h"
+#include "Buffer.h"
+#include "BufferParams.h"
#include "ButtonController.h"
#include "FuncRequest.h"
#include "Lexer.h"
return ininset_;
}
+bool ControlParagraph::canIndent() const
+{
+ return kernel().buffer().params().paragraph_separation ==
+ BufferParams::PARSEP_INDENT;
+}
LyXAlignment ControlParagraph::alignPossible() const
{
///
bool inInset() const;
///
+ bool canIndent() const;
+ ///
LyXAlignment alignPossible() const;
///
LyXAlignment alignDefault() const;
dialog_->alignmentToRadioButtons(newAlignment);
//indentation
- dialog_->indentCB->setChecked(!params.noindent());
+ bool const canindent = controller().canIndent();
+ dialog_->indentCB->setEnabled(canindent);
+ dialog_->indentCB->setChecked(canindent && !params.noindent());
// linespacing
int linespacing;