It seems that in RichText/TextStyle.cpp, the marked line below prevents Style Manager item 'Text flow > Break page before' from working. It gets reset here:
void RichText::SetStyle(const Uuid& id, const RichStyle& _style)
{
Invalidate();
RichStyle& s = style.GetAdd(id);
s = _style;
s.format.styleid = id;
s.format.language = 0;
s.format.newpage = false; << THIS HERE IS THE ONE
StyleChangeOp op;
op.nid = op.id = id;
Update(op);
}
This is the reason, I cannot introduce heading styles that start new chapters automatically on a new page in UWord.
If I comment out this line, there is just one issue: The heading starts on a new page even when this is the first line on the page, and this would obviously leave an unintentional blank page before before the heading in this case.
Best regards,
Tom
Added new paragraph option: "First on page" (QTF [F ) - hopefully this solves your problem. Please test.