int Paragraph::stripLeadingSpaces()
{
- if (layout()->free_spacing ||
- isFreeSpacing()) {
+ if (layout()->free_spacing || isFreeSpacing())
return 0;
- }
int i = 0;
while (!empty() && (isNewline(0) || isLineSeparator(0))) {
Paragraph::depth_type Paragraph::getMaxDepthAfter() const
{
- bool const isenv = layout()->isEnvironment();
-
- if (isenv)
+ if (layout()->isEnvironment())
return params().depth() + 1;
else
return params().depth();
-
}
+
char Paragraph::getAlign() const
{
return params().align();
// increment depth over selection and
// make a total rebreak of those paragraphs
-void LyXText::incDepth(BufferView * bview)
+void LyXText::incDepth(BufferView * bview)
{
// If there is no selection, just use the current paragraph
if (!selection.set()) {