mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Allow to break rows before and after label and index insets
Since they are elements that do not appear in output, there is no reason to make breaking around them difficult.
This commit is contained in:
parent
254b2b0bfa
commit
9ee952ce14
@ -43,6 +43,8 @@ public:
|
||||
static std::string params2string(InsetIndexParams const &);
|
||||
///
|
||||
static void string2params(std::string const &, InsetIndexParams &);
|
||||
///
|
||||
int rowFlags() const override { return CanBreakBefore | CanBreakAfter; }
|
||||
private:
|
||||
///
|
||||
bool hasSettings() const override;
|
||||
|
@ -29,6 +29,8 @@ public:
|
||||
docstring const & counterValue() const { return counter_value_; }
|
||||
///
|
||||
docstring const & prettyCounter() const { return pretty_counter_; }
|
||||
///
|
||||
int rowFlags() const override { return CanBreakBefore | CanBreakAfter; }
|
||||
/// Updates only the label string, doesn't handle undo nor references.
|
||||
void updateLabel(docstring const & new_label, bool const active = true);
|
||||
/// Updates the label and the references to it.
|
||||
|
Loading…
Reference in New Issue
Block a user