View Issue Details

IDProjectCategoryView StatusLast Update
0018060ScribusStylespublic2026-11-05 11:23
Reporterbuttar Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status newResolutionopen 
PlatformLinuxOSFedora WorkstationOS Version44
Summary0018060: [patch] Improve numbered-list sequence defaults and Style Manager UI
Description# Problem
- Newly numbered paragraph styles can unintentionally share counters because their numbering-set names default to the same empty value.
- This causes unrelated styles to continue each other's numbering instead of starting independent sequences.
- The Style Manager's existing `Set` / `New Set` controls do not clearly explain sequence sharing and require Apply before newly created sets become visible.

# Implementation — attached patch v1.06
- Assign unique, persistent numbering sequences to newly numbered paragraph styles by default, while preserving existing document assignments.
- Allow paragraph styles to share sequences explicitly, supporting hierarchical numbering such as H1/H2/H3.
- Replace the existing set controls with a Sequence selector and compact inline + / ✓ / × creation controls.
- Display automatic sequences as identifiable hierarchies, with tooltips listing participating styles and numbering levels.
- Update available numbering levels from pending style changes, without requiring Apply first.
- Distinguish inherited, independent, explicitly shared and legacy unnamed sequences.
- Harden style duplication, hierarchy detachment, multiselection, sequence-name validation and selector-state handling.
- Reuse existing `NumerationName` persistence and Style Manager Apply/Reset mechanisms without modifying the numbering engine.
Additional InformationThis is related to 0018058
Tags#please_test
Attached Files
numbering-sequence-defaults-and-style-manager-v1.06.patch (31,603 bytes)   
Index: scribus/ui/smnumberingsequence.h
===================================================================
--- scribus/ui/smnumberingsequence.h	(revision 0)
+++ scribus/ui/smnumberingsequence.h	(working copy)
@@ -0,0 +1,23 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+ to the COPYING file provided with the program.
+*/
+#ifndef SMNUMBERINGSEQUENCE_H
+#define SMNUMBERINGSEQUENCE_H
+
+#include <QString>
+
+// Reserved names identify sets automatically created for individual paragraph styles.
+namespace SMNumberingSequence
+{
+inline constexpr char independentPrefix[] = "__scribus_independent_num_";
+inline constexpr char newIndependentChoice[] = "__scribus_new_independent_num__";
+inline constexpr int inheritanceRole = Qt::UserRole + 1;
+
+inline bool isIndependent(const QString& name)
+{
+	return name.startsWith(QLatin1String(independentPrefix));
+}
+}
+
+#endif
Index: scribus/ui/smtextstyles.h
===================================================================
--- scribus/ui/smtextstyles.h	(revision 27933)
+++ scribus/ui/smtextstyles.h	(working copy)
@@ -68,6 +68,8 @@
 	void updateStyleList();
 	void reloadTmpStyles();
 	QList<CharStyle> getCharStyles() const;
+	QString newIndependentSequenceName() const;
+	bool sequenceNameAvailable(const QString& name) const;
 
 private slots:
 	// pstyle
@@ -82,6 +84,7 @@
 	void slotBulletStr(const QString &str);
 	void slotNumName(const QString &str);
 	void slotNumNew();
+	void slotNumNewNameChanged(const QString& name);
 	void slotSelectionDirty();
 	void slotNumFormat(int);
 	void slotNumLevel(int level);
Index: scribus/ui/smtextstyles.cpp
===================================================================
--- scribus/ui/smtextstyles.cpp	(revision 27933)
+++ scribus/ui/smtextstyles.cpp	(working copy)
@@ -7,7 +7,11 @@
 
 #include <QEvent>
 #include <QMessageBox>
+#include <QSignalBlocker>
 #include <QTabWidget>
+#include <QUuid>
+
+#include <utility>
 
 #include "alignselect.h"
 #include "colorcombo.h"
@@ -25,6 +29,7 @@
 #include "smcolorcombo.h"
 #include "smcstylewidget.h"
 #include "smpstylewidget.h"
+#include "smnumberingsequence.h"
 #include "smsccombobox.h"
 #include "smshadebutton.h"
 #include "smspinbox.h"
@@ -38,6 +43,42 @@
 #include "util.h"
 
 
+QString SMParagraphStyle::newIndependentSequenceName() const
+{
+	QString name;
+	bool exists;
+	do
+	{
+		name = QLatin1String(SMNumberingSequence::independentPrefix) +
+			QUuid::createUuid().toString(QUuid::WithoutBraces);
+		exists = m_doc && m_doc->numerations.contains(name);
+		for (int i = 0; !exists && i < m_tmpStyles.count(); ++i)
+			exists = (m_tmpStyles[i].numName() == name);
+	} while (exists);
+	return name;
+}
+
+bool SMParagraphStyle::sequenceNameAvailable(const QString& name) const
+{
+	if (name.isEmpty() || name == QLatin1String("<local block>") ||
+		SMNumberingSequence::isIndependent(name))
+		return false;
+	for (const QString& label : { tr("Independent (this style)"), tr("Legacy unnamed (shared)"),
+		tr("Use Parent Value"), tr("Mixed sequences") })
+	{
+		if (name.compare(label, Qt::CaseInsensitive) == 0)
+			return false;
+	}
+	for (int i = 0; i < m_tmpStyles.count(); ++i)
+		if (m_tmpStyles[i].numName().compare(name, Qt::CaseInsensitive) == 0)
+			return false;
+	if (m_doc)
+		for (const QString& existing : m_doc->numerations.keys())
+			if (existing.compare(name, Qt::CaseInsensitive) == 0)
+				return false;
+	return true;
+}
+
 SMParagraphStyle::SMParagraphStyle(SMCharacterStyle* cstyleItem):
 	m_cstyleItem(cstyleItem)
 {
@@ -159,6 +200,7 @@
 			m_selection.append(&m_tmpStyles[index]);
 	}
 
+	m_pwidget->setParagraphStyles(&m_tmpStyles);
 	m_pwidget->show(m_selection, pstyles, cstyles, m_doc->unitIndex(), PrefsManager::instance().appPrefs.docSetupPrefs.language);
 
 	setupConnections();
@@ -254,6 +296,22 @@
 	p.setDefaultStyle(false);
 	p.setName(s);
 	p.setShortcut(QString()); // do not clone the sc
+	if (p.hasNum() && !(p.hasParent() && p.isInhNumName()) &&
+		SMNumberingSequence::isIndependent(p.numName()))
+	{
+		bool shared = false;
+		for (int i = 0; i < m_tmpStyles.count(); ++i)
+		{
+			const ParagraphStyle& other = m_tmpStyles[i];
+			if (other.name() != copiedStyleName && other.hasNum() && other.numName() == p.numName())
+			{
+				shared = true;
+				break;
+			}
+		}
+		if (!shared)
+			p.setNumName(newIndependentSequenceName());
+	}
 	m_tmpStyles.create(p);
 
 	return s;
@@ -523,8 +581,9 @@
 	connect(m_pwidget->numRestartHigherBox, SIGNAL(toggled(bool)), this, SLOT(slotNumHigher(bool)));
 	connect(m_pwidget->numPrefix, SIGNAL(textChanged(QString)), this, SLOT(slotNumPrefix(QString)));
 	connect(m_pwidget->numSuffix, SIGNAL(textChanged(QString)), this, SLOT(slotNumSuffix(QString)));
-	connect(m_pwidget->numNewLineEdit, SIGNAL(editingFinished()), this, SLOT(slotNumNew()));
-	connect(m_pwidget->numNewLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotSelectionDirty()));
+	connect(m_pwidget->numNewConfirmButton, &QToolButton::clicked, this, &SMParagraphStyle::slotNumNew);
+	connect(m_pwidget->numNewNameEdit, &QLineEdit::returnPressed, this, &SMParagraphStyle::slotNumNew);
+	connect(m_pwidget->numNewNameEdit, &QLineEdit::textChanged, this, &SMParagraphStyle::slotNumNewNameChanged);
 
 	connect(m_pwidget->keepLinesStart, SIGNAL(valueChanged(int)), this, SLOT(handleKeepLinesStart()));
 	connect(m_pwidget->keepLinesEnd, SIGNAL(valueChanged(int)), this, SLOT(handleKeepLinesEnd()));
@@ -618,8 +677,9 @@
 	disconnect(m_pwidget->numRestartHigherBox, SIGNAL(toggled(bool)), this, SLOT(slotNumHigher(bool)));
 	disconnect(m_pwidget->numPrefix, SIGNAL(textChanged(QString)), this, SLOT(slotNumPrefix(QString)));
 	disconnect(m_pwidget->numSuffix, SIGNAL(textChanged(QString)), this, SLOT(slotNumSuffix(QString)));
-	disconnect(m_pwidget->numNewLineEdit, SIGNAL(editingFinished()), this, SLOT(slotNumNew()));
-	disconnect(m_pwidget->numNewLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotSelectionDirty()));
+	disconnect(m_pwidget->numNewConfirmButton, &QToolButton::clicked, this, &SMParagraphStyle::slotNumNew);
+	disconnect(m_pwidget->numNewNameEdit, &QLineEdit::returnPressed, this, &SMParagraphStyle::slotNumNew);
+	disconnect(m_pwidget->numNewNameEdit, &QLineEdit::textChanged, this, &SMParagraphStyle::slotNumNewNameChanged);
 	
 	disconnect(m_pwidget->parentCombo, SIGNAL(currentTextChanged(QString)), this, SLOT(slotParentChanged(QString)));
 
@@ -907,9 +967,16 @@
 		}
 		else if (index == 3) // Numbered List
 		{
+			const bool wasNumbered = m_selection[i]->hasNum();
 			m_selection[i]->setHasDropCap(false);
 			m_selection[i]->setHasBullet(false);
 			m_selection[i]->setHasNum(true);
+			if (!wasNumbered && m_selection[i]->numName().isEmpty())
+			{
+				const auto* parent = dynamic_cast<const ParagraphStyle*>(m_selection[i]->parentStyle());
+				if (!parent || !parent->hasNum())
+					m_selection[i]->setNumName(newIndependentSequenceName());
+			}
 		}
 		else // No effect
 		{
@@ -919,6 +986,11 @@
 		}
 	}
 
+	if (index == 3)
+	{
+		m_pwidget->showNumberingSequence(m_selection.size() == 1 ? m_selection.first() : nullptr);
+		m_doc->flag_NumUpdateRequest = true;
+	}
 	slotSelectionDirty();
 }
 
@@ -1029,35 +1101,93 @@
 // 	slotSelectionDirty();
 // }
 
-void SMParagraphStyle::slotNumName(const QString &str)
+void SMParagraphStyle::slotNumName(const QString &)
 {
-	if (!str.isEmpty())
+	if (m_selection.isEmpty())
+		return;
+	if (m_pwidget->numComboBox->currentData(SMNumberingSequence::inheritanceRole).toBool())
 	{
-		for (int i = 0; i < m_selection.count(); ++i)
-			m_selection[i]->setNumName(str);
-		m_pwidget->numComboBox->setCurrentItem(m_pwidget->numComboBox->findText(m_selection[0]->numName()));
-		m_pwidget->numLevelSpin->setValue(m_selection[0]->numLevel()+1);
-		const NumStruct * numS = m_doc->numerations.value(m_selection[0]->numName());
-		if (numS)
-			m_pwidget->numLevelSpin->setMaximum(numS->m_counters.count() + 1);
+		for (ParagraphStyle* style : std::as_const(m_selection))
+			style->resetNumName();
+	}
+	else if (m_pwidget->numComboBox->currentIndex() == 0)
+	{
+		for (ParagraphStyle* style : std::as_const(m_selection))
+		{
+			const QString name = style->numName();
+			bool shared = false;
+			if (SMNumberingSequence::isIndependent(name))
+			{
+				for (int i = 0; i < m_tmpStyles.count(); ++i)
+				{
+					const ParagraphStyle& other = m_tmpStyles[i];
+					if (&other != style && other.hasNum() && other.numName() == name)
+					{
+						shared = true;
+						break;
+					}
+				}
+			}
+			if (!SMNumberingSequence::isIndependent(name) || shared || style->isInhNumName())
+			{
+				style->setNumName(newIndependentSequenceName());
+				style->setNumLevel(0);
+				style->setNumHigher(false);
+			}
+		}
+	}
+	else
+	{
+		const QString name = m_pwidget->numComboBox->currentData().toString();
+		for (ParagraphStyle* style : std::as_const(m_selection))
+			style->setNumName(name);
+	}
+	const QString sequence = m_selection.first()->numName();
+	bool sameSequence = true;
+	for (const ParagraphStyle* style : std::as_const(m_selection))
+		sameSequence &= (style->numName() == sequence);
+	m_pwidget->showNumberingSequence(sameSequence ? m_selection.first() : nullptr);
+	if (m_selection.size() == 1)
+	{
+		QSignalBlocker levelBlocker(m_pwidget->numLevelSpin);
+		QSignalBlocker higherBlocker(m_pwidget->numRestartHigherBox);
+		const ParagraphStyle* style = m_selection.first();
+		const auto* parent = style->hasParent() ?
+			dynamic_cast<const ParagraphStyle*>(style->parentStyle()) : nullptr;
+		if (parent)
+		{
+			m_pwidget->numLevelSpin->setValue(style->numLevel() + 1, style->isInhNumLevel());
+			m_pwidget->numRestartHigherBox->setChecked(style->numHigher(), style->isInhNumHigher());
+		}
 		else
-			m_pwidget->numLevelSpin->setMaximum(1);
-		m_doc->flag_NumUpdateRequest = true;
+		{
+			m_pwidget->numLevelSpin->setValue(style->numLevel() + 1);
+			m_pwidget->numRestartHigherBox->setChecked(style->numHigher());
+		}
 	}
-
+	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
 
-void SMParagraphStyle::slotNumNew()
+void SMParagraphStyle::slotNumNewNameChanged(const QString& text)
 {
-	QString newName = m_pwidget->numNewLineEdit->text();
-	if (!newName.isEmpty())
-	{
-		for (int i = 0; i < m_selection.count(); ++i)
-			m_selection[i]->setNumName(newName);
-		m_doc->flag_NumUpdateRequest = true;
-	}
+	const QString name = text.trimmed();
+	const bool valid = sequenceNameAvailable(name);
+	m_pwidget->numNewConfirmButton->setEnabled(valid);
+	m_pwidget->numNewNameEdit->setToolTip(valid ? QString() :
+		tr("Enter a unique sequence name (reserved names are not allowed)."));
+}
 
+void SMParagraphStyle::slotNumNew()
+{
+	const QString name = m_pwidget->numNewNameEdit->text().trimmed();
+	if (m_selection.isEmpty() || !sequenceNameAvailable(name))
+		return;
+	for (ParagraphStyle* style : std::as_const(m_selection))
+		style->setNumName(name);
+	m_pwidget->cancelNewNumberingSequence();
+	m_pwidget->showNumberingSequence(m_selection.first());
+	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
 
@@ -1102,6 +1232,10 @@
 	if (level == 0)
 		slotNumHigher(false);
 
+	if (m_selection.size() == 1)
+	{
+		m_pwidget->showNumberingSequence(m_selection.first());
+	}
 	slotSelectionDirty();
 }
 
Index: scribus/ui/smpstylewidget.h
===================================================================
--- scribus/ui/smpstylewidget.h	(revision 27933)
+++ scribus/ui/smpstylewidget.h	(working copy)
@@ -33,9 +33,13 @@
 	void languageChange();
 	void unitChange(double oldRatio, double newRatio, int unitIndex);
 	void setDoc(ScribusDoc* doc);
+	void setParagraphStyles(const StyleSet<ParagraphStyle>* styles);
+	void showNumberingSequence(const ParagraphStyle* style);
+	void cancelNewNumberingSequence();
 
 protected:
 	void changeEvent(QEvent *e) override;
+	bool eventFilter(QObject* watched, QEvent* event) override;
 
 private:
 	bool m_hasParent = false;
@@ -47,9 +51,11 @@
 	QString m_currFontName;
 	ParagraphStyle* m_currPStyle = nullptr;
 	StyleSet<CharStyle> *m_cstyles = nullptr;
+	const StyleSet<ParagraphStyle>* m_paragraphStyles = nullptr;
 
 	void fillBulletStrEditCombo();
 	void fillNumerationsCombo();
+	void updateNumberingLevelRange(const ParagraphStyle* style);
 	void fillNumRestartCombo();
 	void fillPECombo();
 	void setParagraphEffect(int);
Index: scribus/ui/smpstylewidget.cpp
===================================================================
--- scribus/ui/smpstylewidget.cpp	(revision 27933)
+++ scribus/ui/smpstylewidget.cpp	(working copy)
@@ -5,11 +5,17 @@
 for which a new license (GPL+exception) is in place.
 */
 
-#include <QEvent>
+#include <algorithm>
 
+#include <QEvent>
+#include <QKeyEvent>
+#include <QMap>
+#include <QSet>
+#include <QSignalBlocker>
 
 #include "iconmanager.h"
 #include "numeration.h"
+#include "smnumberingsequence.h"
 #include "smpstylewidget.h"
 #include "scribus.h"
 #include "scribusapp.h"
@@ -32,6 +38,17 @@
 {
 	setupUi(this);
 
+	numNewControls->hide();
+	numNewConfirmButton->setEnabled(false);
+	numNewNameEdit->installEventFilter(this);
+	connect(numNewButton, &QToolButton::clicked, this, [this] {
+		numNewNameEdit->clear();
+		numNewControls->show();
+		numNewButton->setEnabled(false);
+		numNewNameEdit->setFocus();
+	});
+	connect(numNewCancelButton, &QToolButton::clicked, this, &SMPStyleWidget::cancelNewNumberingSequence);
+
 	//Not used yet
 // 	optMarginCheckLeftProtruding->setVisible(false);
 
@@ -122,6 +139,9 @@
 	parEffectCharStyleComboLabel->setPixmap(iconManager.loadPixmap("character-style"));
 	peLabel->setPixmap(iconManager.loadPixmap("paragraph-effects-style"));
 	parentParEffectsButton->setIcon(iconManager.loadIcon("reset-style-changes"));
+	numNewButton->setIcon(iconManager.loadIcon("list-add"));
+	numNewConfirmButton->setIcon(iconManager.loadIcon("ok"));
+	numNewCancelButton->setIcon(iconManager.loadIcon("close"));
 	backgroundColor->setPixmap(iconManager.loadPixmap("color-fill"));
 }
 
@@ -156,6 +176,10 @@
 	numRestartCombo->blockSignals(numRestartComboBlocked);
 
 	fillPECombo();
+	numComboBox->setToolTip(tr("Styles using the same sequence share numbering counters."));
+	numNewButton->setToolTip(tr("New numbering sequence"));
+	numNewConfirmButton->setToolTip(tr("Create sequence"));
+	numNewCancelButton->setToolTip(tr("Cancel"));
 
 	backgroundColor->colorButton->setPersistentToolTip( tr("Background color of selected text"));
 	backgroundColor->setText(tr("Background"));
@@ -178,6 +202,9 @@
 		connect(m_Doc->scMW(), SIGNAL(UpdateRequest(int)), this , SLOT(handleUpdateRequest(int)));
 		fillNumerationsCombo();
 	}
+	else
+		m_paragraphStyles = nullptr;
+	cancelNewNumberingSequence();
 
 	cpage->setDoc(m_Doc);
 	backgroundColor->colorButton->setDoc(m_Doc);
@@ -186,6 +213,10 @@
 void SMPStyleWidget::show(ParagraphStyle *pstyle, QList<ParagraphStyle> &pstyles, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang)
 {
 	m_currPStyle = pstyle;
+	for (QWidget* control : QList<QWidget*>{ numLevelSpin, numFormatCombo,
+		numStartSpin, numRestartCombo, numRestartOtherBox, numRestartHigherBox })
+		control->setEnabled(true);
+	cancelNewNumberingSequence();
 	double unitRatio = unitGetRatioFromIndex(unitIndex);
 	parentCombo->setEnabled(!pstyle->isDefaultStyle());
 	const ParagraphStyle *parent = dynamic_cast<const ParagraphStyle*>(pstyle->parentStyle());
@@ -310,22 +341,10 @@
 		bulletStrEdit->setEditText(pstyle->bulletStr());
 		setWidgetBoldFont(bulletCharLabel, !pstyle->isInhBulletStr());
 
-		QString numName = pstyle->numName();
-		if (numName.isEmpty())
-			numName = "default";
-		numComboBox->setCurrentItem(numComboBox->findText(numName), pstyle->isInhNumName());
-		if (!parent->numName().isEmpty())
-			numComboBox->setParentItem(numComboBox->findText(parent->numName()));
-		else
-			numComboBox->setParentItem(0);
+		showNumberingSequence(pstyle);
 		numFormatCombo->setCurrentFormat((NumFormat) pstyle->numFormat());
 		numFormatCombo->setParentFormat((NumFormat) parent->numFormat());
 		numLevelSpin->setValue(pstyle->numLevel() +1, pstyle->isInhNumLevel());
-		NumStruct * numS = m_Doc->numerations.value(pstyle->numName());
-		if (numS)
-			numLevelSpin->setMaximum(numS->m_counters.count()+1);
-		else
-			numLevelSpin->setMaximum(1);
 		numLevelSpin->setParentValue(parent->numLevel()+1);
 		numPrefix->setText(pstyle->numPrefix());
 		setWidgetBoldFont(numPrefixLabel, !pstyle->isInhNumPrefix());
@@ -363,18 +382,9 @@
 		dropCapLines->setValue(pstyle->dropCapLines());
 		bulletStrEdit->setEditText(pstyle->bulletStr());
 		setWidgetBoldFont(bulletCharLabel, false);
-		QString numName = pstyle->numName();
-		if (numName.isEmpty())
-			numName = "default";
-		numComboBox->setCurrentItem(numComboBox->findText(numName));
-		numNewLineEdit->clear();
+		showNumberingSequence(pstyle);
 		numFormatCombo->setCurrentFormat((NumFormat) pstyle->numFormat());
 		numLevelSpin->setValue(pstyle->numLevel()+1);
-		NumStruct * numS = m_Doc->numerations.value(pstyle->numName());
-		if (numS)
-			numLevelSpin->setMaximum(numS->m_counters.count()+1);
-		else
-			numLevelSpin->setMaximum(1);
 		numPrefix->setText(pstyle->numPrefix());
 		setWidgetBoldFont(numPrefixLabel, false);
 		numSuffix->setText(pstyle->numSuffix());
@@ -454,7 +464,23 @@
 		show(pstyles[0], pstylesAll, cstyles, unitIndex, defLang);
 	else if (pstyles.count() > 1)
 	{
-		m_currPStyle = pstyles[0];
+		m_currPStyle = nullptr;
+		cancelNewNumberingSequence();
+		const ParagraphStyle* commonStyle = pstyles.first();
+		for (const ParagraphStyle* style : pstyles)
+		{
+			if (style->numName() != commonStyle->numName() ||
+				style->isInhNumName() != commonStyle->isInhNumName() ||
+				(style->isInhNumName() && style->parent() != commonStyle->parent()))
+			{
+				commonStyle = nullptr;
+				break;
+			}
+		}
+		showNumberingSequence(commonStyle);
+		for (QWidget* control : QList<QWidget*>{ numLevelSpin, numFormatCombo,
+			numStartSpin, numRestartCombo, numRestartOtherBox, numRestartHigherBox })
+			control->setEnabled(false);
 		showLineSpacing(pstyles);
 		showSpaceAB(pstyles, unitIndex);
 		showDropCap(pstyles, cstyles, unitIndex);
@@ -965,20 +991,231 @@
 		bulletStrEdit->setEditText(QChar(0x2022));
 }
 
+void SMPStyleWidget::setParagraphStyles(const StyleSet<ParagraphStyle>* styles)
+{
+	m_paragraphStyles = styles;
+	m_currPStyle = nullptr;
+}
+
+void SMPStyleWidget::cancelNewNumberingSequence()
+{
+	numNewControls->hide();
+	numNewButton->setEnabled(true);
+	numNewNameEdit->clear();
+	numNewConfirmButton->setEnabled(false);
+}
+
+bool SMPStyleWidget::eventFilter(QObject* watched, QEvent* event)
+{
+	if (watched == numNewNameEdit && event->type() == QEvent::KeyPress &&
+		static_cast<QKeyEvent*>(event)->key() == Qt::Key_Escape)
+	{
+		cancelNewNumberingSequence();
+		return true;
+	}
+	return QWidget::eventFilter(watched, event);
+}
+
 void SMPStyleWidget::fillNumerationsCombo()
 {
-	QStringList numNames;
-	const auto numerationKeys = m_Doc->numerations.keys();
-	for (const QString& numName : numerationKeys)
-	{
-		if (numName.isEmpty())
-			continue;
-		numNames.append(numName);
+	if (!m_Doc)
+		return;
+
+	QSignalBlocker blocker(numComboBox);
+	QSet<QString> names;
+	QMap<QString, const ParagraphStyle*> automaticSets;
+	QMap<QString, QStringList> users;
+	bool hasUnnamed = false;
+	if (m_paragraphStyles)
+	{
+		for (int i = 0; i < m_paragraphStyles->count(); ++i)
+		{
+			const ParagraphStyle& style = (*m_paragraphStyles)[i];
+			if (!style.hasNum())
+				continue;
+			const QString name = style.numName();
+			users[name].append(tr("%1 (Level %2)").arg(style.displayName()).arg(style.numLevel() + 1));
+			if (name.isEmpty())
+				hasUnnamed = true;
+			else if (SMNumberingSequence::isIndependent(name))
+			{
+				const ParagraphStyle* owner = automaticSets.value(name, nullptr);
+				if (!owner || (owner->isInhNumName() && !style.isInhNumName()) ||
+					(owner->isInhNumName() == style.isInhNumName() && style.numLevel() < owner->numLevel()))
+					automaticSets.insert(name, &style);
+			}
+			else if (name != QLatin1String("<local block>"))
+				names.insert(name);
+		}
+	}
+	else
+	{
+		for (const QString& name : m_Doc->numerations.keys())
+			if (!name.isEmpty() && !SMNumberingSequence::isIndependent(name) && name != QLatin1String("<local block>"))
+				names.insert(name);
 	}
-	numNames.sort();
+
+	const auto addSequence = [this, &users](const QString& label, const QString& name)
+	{
+		numComboBox->addItem(label, name);
+		QStringList styles = users.value(name);
+		styles.sort(Qt::CaseInsensitive);
+		if (!styles.isEmpty())
+			numComboBox->setItemData(numComboBox->count() - 1,
+				tr("Used by: %1").arg(styles.join(", ")), Qt::ToolTipRole);
+	};
+
 	numComboBox->clear();
-	numComboBox->insertItems(0, numNames);
-	numComboBox->setCurrentItem(0);
+	addSequence(tr("Independent (this style)"), QLatin1String(SMNumberingSequence::newIndependentChoice));
+	numComboBox->setItemData(0, tr("Use a separate numbering sequence for this paragraph style."), Qt::ToolTipRole);
+	if (hasUnnamed)
+		addSequence(tr("Legacy unnamed (shared)"), QString());
+	QStringList sortedNames = names.values();
+	sortedNames.sort(Qt::CaseInsensitive);
+	for (const QString& name : sortedNames)
+		addSequence(name, name);
+
+	// Sequence identifiers are internal; list their hierarchy once, by the top-level style.
+	QStringList sortedAutomaticNames = automaticSets.keys();
+	std::sort(sortedAutomaticNames.begin(), sortedAutomaticNames.end(), [&automaticSets](const QString& a, const QString& b) {
+		return QString::localeAwareCompare(automaticSets.value(a)->displayName(),
+			automaticSets.value(b)->displayName()) < 0;
+	});
+	for (const QString& name : sortedAutomaticNames)
+	{
+		QString label = tr("%1 hierarchy").arg(automaticSets.value(name)->displayName());
+		if (numComboBox->findText(label) >= 0)
+			label = tr("%1 (automatic)").arg(label);
+		addSequence(label, name);
+	}
+}
+
+void SMPStyleWidget::updateNumberingLevelRange(const ParagraphStyle* style)
+{
+	if (!style)
+		return;
+
+	int maximum = qMax(1, style->numLevel() + 1);
+	if (m_paragraphStyles)
+	{
+		for (int i = 0; i < m_paragraphStyles->count(); ++i)
+		{
+			const ParagraphStyle& other = (*m_paragraphStyles)[i];
+			if (&other != style && other.hasNum() && other.numName() == style->numName())
+				maximum = qMax(maximum, other.numLevel() + 2);
+		}
+	}
+	else if (m_Doc)
+	{
+		const NumStruct* set = m_Doc->numerations.value(style->numName());
+		if (set)
+			maximum = qMax(maximum, set->m_counters.count() + 1);
+	}
+
+	QSignalBlocker blocker(numLevelSpin);
+	numLevelSpin->setMaximum(maximum);
+	numLevelSpin->setToolTip(maximum == 1 ?
+		tr("To use higher levels, select a sequence shared with a higher-level style.") :
+		tr("Choose the numbering level within this sequence."));
+}
+
+void SMPStyleWidget::showNumberingSequence(const ParagraphStyle* style)
+{
+	fillNumerationsCombo();
+	QSignalBlocker blocker(numComboBox);
+	if (!style)
+	{
+		numComboBox->setPlaceholderText(tr("Mixed sequences"));
+		numComboBox->setCurrentIndex(-1);
+		numComboBox->setToolTip(tr("The selected styles use different numbering sequences."));
+		return;
+	}
+	numComboBox->setPlaceholderText(QString());
+
+	const QString name = style->numName();
+	int index = numComboBox->findData(name);
+	if (SMNumberingSequence::isIndependent(name))
+	{
+		int users = 0;
+		if (m_paragraphStyles)
+			for (int i = 0; i < m_paragraphStyles->count(); ++i)
+				if ((*m_paragraphStyles)[i].hasNum() && (*m_paragraphStyles)[i].numName() == name)
+					++users;
+		if (users <= 1 && !style->isInhNumName())
+		{
+			// The current style's own sequence is already represented by Independent.
+			if (index > 0)
+				numComboBox->removeItem(index);
+			index = 0;
+		}
+	}
+	else if (name.isEmpty() && index < 0 && style->hasNum())
+	{
+		// Offer the unnamed set only if the selected numbered style uses it.
+		index = numComboBox->count();
+		numComboBox->addItem(tr("Legacy unnamed (shared)"), QString());
+	}
+
+	const auto* parent = style->hasParent() ?
+		dynamic_cast<const ParagraphStyle*>(style->parentStyle()) : nullptr;
+	const bool hasParent = parent && parent->hasName() && !style->parent().isEmpty();
+	int inheritedIndex = -1;
+	if (hasParent)
+	{
+		QString parentLabel;
+		if (parent->numName().isEmpty())
+			parentLabel = tr("Legacy unnamed (shared)");
+		else
+		{
+			const int parentSequenceIndex = numComboBox->findData(parent->numName());
+			if (parentSequenceIndex >= 0)
+				parentLabel = numComboBox->itemText(parentSequenceIndex);
+			else if (SMNumberingSequence::isIndependent(parent->numName()))
+				parentLabel = tr("%1 hierarchy").arg(parent->displayName());
+			else
+				parentLabel = parent->numName();
+		}
+
+		inheritedIndex = numComboBox->count();
+		numComboBox->addItem(style->isInhNumName() ?
+			tr("Inherited: %1").arg(parentLabel) : tr("Use Parent Value"),
+			parent->numName());
+		numComboBox->setItemData(inheritedIndex, true, SMNumberingSequence::inheritanceRole);
+		numComboBox->setItemData(inheritedIndex,
+			tr("Inherit the numbering sequence from %1 (%2).")
+				.arg(parent->displayName(), parentLabel), Qt::ToolTipRole);
+	}
+
+	if (style->isInhNumName() && hasParent)
+		index = inheritedIndex;
+	else if (index < 0)
+		index = 0;
+
+	numComboBox->setCurrentIndex(index);
+	QFont comboFont = numComboBox->font();
+	comboFont.setBold(hasParent && !style->isInhNumName());
+	numComboBox->setFont(comboFont);
+
+	QStringList otherStyles;
+	if (m_paragraphStyles && style->hasNum())
+	{
+		for (int i = 0; i < m_paragraphStyles->count(); ++i)
+		{
+			const ParagraphStyle& other = (*m_paragraphStyles)[i];
+			if (other.hasNum() && other.numName() == name && other.name() != style->name())
+				otherStyles.append(tr("%1 (Level %2)").arg(other.displayName()).arg(other.numLevel() + 1));
+		}
+	}
+	otherStyles.sort();
+	if (style->isInhNumName() && hasParent)
+		numComboBox->setToolTip(numComboBox->itemData(inheritedIndex, Qt::ToolTipRole).toString());
+	else
+		numComboBox->setToolTip(otherStyles.isEmpty() ?
+			(index == 0 ?
+				tr("This style has its own numbering sequence. Choose another sequence to share numbering.") :
+				tr("Select a sequence to share numbering counters across styles.")) :
+			tr("Also used by: %1").arg(otherStyles.join(", ")));
+	updateNumberingLevelRange(style);
 }
 
 void SMPStyleWidget::fillNumRestartCombo()
Index: scribus/ui/smpstylewidget.ui
===================================================================
--- scribus/ui/smpstylewidget.ui	(revision 27933)
+++ scribus/ui/smpstylewidget.ui	(working copy)
@@ -1284,7 +1284,7 @@
              <item row="0" column="0">
               <widget class="QLabel" name="numComboLabel">
                <property name="text">
-                <string>Set:</string>
+                <string>Sequence:</string>
                </property>
                <property name="alignment">
                 <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
@@ -1316,7 +1316,7 @@
               </widget>
              </item>
              <item row="0" column="1" colspan="4">
-              <widget class="SMScComboBox" name="numComboBox">
+              <widget class="QComboBox" name="numComboBox">
                <property name="currentIndex">
                 <number>-1</number>
                </property>
@@ -1366,20 +1366,11 @@
               </widget>
              </item>
              <item row="0" column="5">
-              <spacer name="horizontalSpacer_17">
-               <property name="orientation">
-                <enum>Qt::Orientation::Horizontal</enum>
-               </property>
-               <property name="sizeType">
-                <enum>QSizePolicy::Policy::Fixed</enum>
-               </property>
-               <property name="sizeHint" stdset="0">
-                <size>
-                 <width>16</width>
-                 <height>20</height>
-                </size>
+              <widget class="QToolButton" name="numNewButton">
+               <property name="toolTip">
+                <string>New numbering sequence</string>
                </property>
-              </spacer>
+              </widget>
              </item>
              <item row="2" column="1">
               <widget class="SMSpinBox" name="numLevelSpin">
@@ -1441,23 +1432,11 @@
               </widget>
              </item>
              <item row="0" column="6">
-              <widget class="FormWidget" name="formWidget_2">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="label" stdset="0">
-                <string>New Set:</string>
-               </property>
-               <property name="direction">
-                <enum>FormWidget::LabelPosition::Left</enum>
-               </property>
-               <property name="useSmallFont">
-                <bool>false</bool>
-               </property>
-               <layout class="QHBoxLayout" name="horizontalLayout_25">
+              <widget class="QWidget" name="numNewControls">
+               <layout class="QHBoxLayout" name="numNewLayout">
+                <property name="spacing">
+                 <number>4</number>
+                </property>
                 <property name="leftMargin">
                  <number>0</number>
                 </property>
@@ -1471,7 +1450,28 @@
                  <number>0</number>
                 </property>
                 <item>
-                 <widget class="QLineEdit" name="numNewLineEdit"/>
+                 <widget class="QLineEdit" name="numNewNameEdit">
+                  <property name="placeholderText">
+                   <string>Sequence name</string>
+                  </property>
+                  <property name="maximumWidth">
+                   <number>150</number>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QToolButton" name="numNewConfirmButton">
+                  <property name="toolTip">
+                   <string>Create sequence</string>
+                  </property>
+                 </widget>
+                </item>
+                <item>
+                 <widget class="QToolButton" name="numNewCancelButton">
+                  <property name="toolTip">
+                   <string>Cancel</string>
+                  </property>
+                 </widget>
                 </item>
                </layout>
               </widget>
@@ -1799,7 +1799,10 @@
   <tabstop>numRestartCombo</tabstop>
   <tabstop>numRestartOtherBox</tabstop>
   <tabstop>numRestartHigherBox</tabstop>
-  <tabstop>numNewLineEdit</tabstop>
+  <tabstop>numNewButton</tabstop>
+  <tabstop>numNewNameEdit</tabstop>
+  <tabstop>numNewConfirmButton</tabstop>
+  <tabstop>numNewCancelButton</tabstop>
   <tabstop>numStartSpin</tabstop>
   <tabstop>numFormatCombo</tabstop>
   <tabstop>numLevelSpin</tabstop>
sequence-ui-ux-improvement.png (74,172 bytes)   
sequence-ui-ux-improvement.png (74,172 bytes)   
add-new-sequence.png (251,223 bytes)   
add-new-sequence.png (251,223 bytes)   
PatchYes

Activities

buttar

2026-11-05 03:40

reporter   ~0054651

Here is a doc and screenshot to see/reproduce the issue.

- there are two different styles for the 1-3 and 4-onward numbering.
- they should not continue.
old-doc-numbering-continues-across-para-styles.sla (62,399 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<SCRIBUSUTF8NEW Version="1.7.5.svn">
    <Document PageCount="3" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" MarginPreset="0" BleedTop="9" BleedLeft="0" BleedRight="9" BleedBottom="9" PageOrientation="0" PageSize="Booklet 6 1/2" FirstPageNumber="1" PagePositioning="1" BindingDirection="0" IsRTL="0" AutomaticTextFrameColumnCount="1" AutomaticTextFrameColumnGap="11" UnitIndex="2" FontFace="Adwaita Sans Regular" FontSize="12" TextColumnCount="1" TextColumnGap="0" TabFillCharacter="" TabWidth="36" TextDistanceLeft="0" TextDistanceRight="0" TextDistanceBottom="0" TextDistanceTop="0" FirstLineOffset="1" DocumentInfoAuthor="" DocumentInfoComments="" DocumentInfoKeywords="" DocumentInfoPublisher="" DocumentInfoDate="" DocumentInfoType="" DocumentInfoFormat="" DocumentInfoIdentifier="" DocumentInfoSource="" DocumentInfoLanguage="en-GB" DocumentInfoRelation="" DocumentInfoCoverage="Worldwide" DocumentInfoRights="All Rights Reserved" DocumentInfoContributors="" DocumentInfoTitle="" DocumentInfoSubject="" SuperScriptDisplacement="33" SuperScriptScaling="66" SubScriptDisplacement="33" SubScriptScaling="66" SmallCapsScaling="75" BaselineGridSpacing="15.6" BaselineGridOffset="0" AutoLineSpacingPct="100" UnderlinePosition="-1" UnderlineWidth="-1" StrikeThruPosition="-1" StrikeThruWidth="-1" GroupCounter="1" DocumentHasCMS="0" SoftProofOn="0" SoftProofFullOn="0" ColorManagementActive="0" GamutCheck="0" BlackPoint="1" DefaultPrinterProfile="ISO Coated v2 300% (basICColor)" DefaultImageRGBProfile="sRGB display profile (ICC v2.2)" DefaultImageCMYKProfile="ISO Coated v2 300% (basICColor)" DefaultSolidColorRGBProfile="sRGB display profile (ICC v2.2)" DefaultSolidColorCMYKProfile="ISO Coated v2 300% (basICColor)" DefaultIntentColors="1" DefaultIntentImages="0" ActiveLayer="0" Language="en_GB" AutomaticHyphenation="1" AutomaticHyphenationCheck="0" GuideLock="0" SnapToGuides="1" SnapToGrid="0" SnapToItems="0" MinorGridSpacing="18" MajorGridSpacing="72" ShowGrid="0" ShowGuides="1" ShowColumnBorders="1" ShowFrames="1" ShowControls="0" ShowTableCellFrames="0" ShowLayerMarkers="0" ShowMargins="1" ShowBaselineGrid="0" ShowImages="1" ShowLinks="1" RulerMode="1" ShowRulers="1" ShowBleed="1" RulerXOffset="0" RulerYOffset="0" GuideRadius="10" GrabRadius="4" PolygonCorners="4" PolygonFactor="0.502045814642449" PolygonRotation="0" PolygonInnerRotation="0" PolygonCurvature="0" PolygonOuterCurvature="0" PolygonUseFactor="0" ArcStartAngle="30" ArcSweepAngle="300" SpiralStartAngle="0" SpiralEndAngle="1080" SpiralFactor="1.2" AutoSave="0" AutoSaveTime="60000" AutoSaveCount="1" AutoSaveKeep="0" AutoSaveInDocumentDirectory="0" AutoSaveDirectory="/home/buttar/x/xdump" ScratchBottom="0" ScratchLeft="0" ScratchRight="0" ScratchTop="0" GapHorizontal="0" GapVertical="25.2" LineStartArrow="0" LineEndArrow="0" ShapeLineColor="None" ShapeFillColor="Black" LineColor="Black" TextColor="Black" TextStrokeColor="Black" TextBackgroundColor="None" TextLineColor="None" TextBackgroundColorShade="100" TextLineColorShade="100" TextColorShade="100" TextStrokeColorShade="100" ShapeLineStyle="1" LineStyle="1" ShapeLineWidth="1" LineWidth="1" ShapeLineColorShade="100" LineColorShade="100" ShapeFillColorShade="100" ImageFillColor="None" ImageFillColorShade="100" ImageStrokeColor="None" ImageStrokeColorShade="100" ImageScaleX="1" ImageScaleY="1" ImageScaleType="1" ImageAspectRatio="1" ImageUseEmbeddedPath="0" ImageLowResType="2" DisplayOffsetX="10.0008" DisplayOffsetY="10.0008" RotationConstrainAngle="15" MinorGridColor="#00ff00" MajorGridColor="#00ff00" GuidesColor="#6a6ac8" BaselineGridColor="#c0c0c0" RenderStack="2 1 4 3 0" GridType="0" PageColor="#f6f5f4" MarginColor="#ff55ff" ShowMarginsFilled="0" CurrentProfile="PDF 1.6" CalligraphicPenFillColor="Black" CalligraphicPenLineColor="Black" CalligraphicPenFillColorShade="100" CalligraphicPenLineColorShade="100" CalligraphicPenLineWidth="1" CalligraphicPenAngle="0" CalligraphicPenWidth="10" CalligraphicPenStyle="1">
        <CheckProfile Name="PDF 1.3" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="0" MinimumResolution="299" MaximumResolution="600" CheckAnnotations="0" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="1" CheckFontIsOpenType="1" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="0"/>
        <CheckProfile Name="PDF 1.4" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="0" MinimumResolution="144" MaximumResolution="2400" CheckAnnotations="0" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="1" CheckFontIsOpenType="1" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PDF 1.5" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="0" MinimumResolution="144" MaximumResolution="2400" CheckAnnotations="0" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="1" CheckFontIsOpenType="1" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PDF 1.6" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="0" MinimumResolution="299" MaximumResolution="600" CheckAnnotations="0" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="1" CheckFontIsOpenType="0" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PDF/X-1a" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="1" MinimumResolution="144" MaximumResolution="2400" CheckAnnotations="1" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="1" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="1" CheckFontIsOpenType="1" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PDF/X-3" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="1" MinimumResolution="144" MaximumResolution="2400" CheckAnnotations="1" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="1" CheckFontNotEmbedded="1" CheckFontIsOpenType="1" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PDF/X-4" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="0" MinimumResolution="300" MaximumResolution="1500" CheckAnnotations="1" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="1" CheckFontNotEmbedded="1" CheckFontIsOpenType="0" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <CheckProfile Name="PostScript" IgnoreErrors="0" AutoCheck="1" CheckGlyphs="1" CheckOrphans="1" CheckOverflow="1" CheckPictures="1" CheckPartFilledImageFrames="0" CheckResolution="1" CheckTransparency="1" MinimumResolution="144" MaximumResolution="2400" CheckAnnotations="0" CheckRasterPDF="1" CheckForGIF="1" IgnoreOffLayers="0" CheckNotCMYKOrSpot="0" CheckDeviceColorsAndOutputIntent="0" CheckFontNotEmbedded="0" CheckFontIsOpenType="0" CheckAppliedMasterDifferentSide="1" CheckEmptyTextFrames="1" CheckImageHasProgressiveEncoding="1"/>
        <Color Name="1Bright blue" Space="CMYK" C="100" M="50" Y="0" K="0"/>
        <Color Name="1Orange" Space="CMYK" C="0" M="50" Y="100" K="0"/>
        <Color Name="2Red" Space="CMYK" C="0" M="100" Y="100" K="0"/>
        <Color Name="BG Blue" Space="CMYK" C="45" M="12" Y="0" K="18"/>
        <Color Name="BG Yellow" Space="CMYK" C="0" M="10" Y="60" K="0"/>
        <Color Name="Band Dark" Space="CMYK" C="88.2230869001297" M="80.175478751812" Y="15.7427328908217" K="12.0592050049592"/>
        <Color Name="Band Light" Space="CMYK" C="85.7053482871748" M="76.0418097199969" Y="3.78576333257038" K="0.0625619897764553"/>
        <Color Name="Black" Space="CMYK" C="0" M="0" Y="0" K="100"/>
        <Color Name="Blue" Space="CMYK" C="99.9" M="82.6" Y="0.3" K="0"/>
        <Color Name="Blue BG" Space="CMYK" C="45" M="12" Y="0" K="18"/>
        <Color Name="Bright blue" Space="CMYK" C="100" M="50" Y="0" K="0"/>
        <Color Name="Brown" Space="CMYK" C="0" M="50" Y="100" K="41"/>
        <Color Name="Coral" Space="CMYK" C="0" M="60" Y="50" K="0"/>
        <Color Name="FromCopy#003366" Space="RGB" R="0" G="51" B="102"/>
        <Color Name="FromSVG#000000" Space="RGB" R="153" G="102" B="51"/>
        <Color Name="FromSVG#0099db" Space="RGB" R="153" G="102" B="51"/>
        <Color Name="FromSVG#0c3c5c" Space="RGB" R="12" G="60" B="92"/>
        <Color Name="FromSVG#28272c" Space="RGB" R="40" G="39" B="44"/>
        <Color Name="FromSVG#2a466f" Space="RGB" R="42" G="70" B="111"/>
        <Color Name="FromSVG#2d2d2d" Space="RGB" R="45" G="45" B="45"/>
        <Color Name="FromSVG#3f4347" Space="RGB" R="63" G="67" B="71"/>
        <Color Name="FromSVG#4bdad8" Space="RGB" R="75" G="218" B="216"/>
        <Color Name="FromSVG#5786cc" Space="RGB" R="87" G="134" B="204"/>
        <Color Name="FromSVG#5d6b8c" Space="RGB" R="93" G="107" B="140"/>
        <Color Name="FromSVG#637084" Space="RGB" R="99" G="112" B="132"/>
        <Color Name="FromSVG#719c40" Space="RGB" R="113" G="156" B="64"/>
        <Color Name="FromSVG#73e7e6" Space="RGB" R="115" G="231" B="230"/>
        <Color Name="FromSVG#7fb241" Space="RGB" R="127" G="178" B="65"/>
        <Color Name="FromSVG#a07e63" Space="RGB" R="160" G="126" B="99"/>
        <Color Name="FromSVG#adc4e5" Space="RGB" R="173" G="196" B="229"/>
        <Color Name="FromSVG#ba3535" Space="RGB" R="186" G="53" B="53"/>
        <Color Name="FromSVG#c1529c" Space="RGB" R="193" G="82" B="156"/>
        <Color Name="FromSVG#c7cedd" Space="RGB" R="199" G="206" B="221"/>
        <Color Name="FromSVG#c7d2e3" Space="RGB" R="199" G="210" B="227"/>
        <Color Name="FromSVG#cc2f2f" Space="RGB" R="204" G="47" B="47"/>
        <Color Name="FromSVG#d6d6ea" Space="RGB" R="214" G="214" B="234"/>
        <Color Name="FromSVG#d88a55" Space="RGB" R="216" G="138" B="85"/>
        <Color Name="FromSVG#db4b4b" Space="RGB" R="219" G="75" B="75"/>
        <Color Name="FromSVG#dce0ea" Space="RGB" R="220" G="224" B="234"/>
        <Color Name="FromSVG#dd6cb3" Space="RGB" R="221" G="108" B="179"/>
        <Color Name="FromSVG#e14b4b" Space="RGB" R="225" G="75" B="75"/>
        <Color Name="FromSVG#e3e3f4" Space="RGB" R="227" G="227" B="244"/>
        <Color Name="FromSVG#e7b795" Space="RGB" R="231" G="183" B="149"/>
        <Color Name="FromSVG#ea3f3f" Space="RGB" R="234" G="63" B="63"/>
        <Color Name="FromSVG#ea9b58" Space="RGB" R="234" G="155" B="88"/>
        <Color Name="FromSVG#edcab2" Space="RGB" R="237" G="202" B="178"/>
        <Color Name="FromSVG#ef97ac" Space="RGB" R="239" G="151" B="172"/>
        <Color Name="FromSVG#f75959" Space="RGB" R="247" G="89" B="89"/>
        <Color Name="FromSVG#f9f9f9" Space="RGB" R="249" G="249" B="249"/>
        <Color Name="FromSVG#ff5050" Space="RGB" R="255" G="80" B="80"/>
        <Color Name="FromSVG#ff65b3" Space="RGB" R="255" G="101" B="179"/>
        <Color Name="FromSVG#ff7dc7" Space="RGB" R="255" G="125" B="199"/>
        <Color Name="FromSVG#ff81c0" Space="RGB" R="255" G="129" B="192"/>
        <Color Name="FromSVG#ff9eb1" Space="RGB" R="255" G="158" B="177"/>
        <Color Name="FromSVG#ffbf65" Space="RGB" R="255" G="191" B="101"/>
        <Color Name="FromSVG#ffbf67" Space="RGB" R="255" G="191" B="103"/>
        <Color Name="FromSVG#ffd57f" Space="RGB" R="255" G="213" B="127"/>
        <Color Name="FromSVG#ffde55" Space="RGB" R="255" G="222" B="85"/>
        <Color Name="FromSVG#ffffff" Space="RGB" R="255" G="255" B="255"/>
        <Color Name="Green" Space="CMYK" C="100" M="0" Y="100" K="0"/>
        <Color Name="Green Dull" Space="CMYK" C="100" M="0" Y="100" K="50"/>
        <Color Name="Grey" Space="CMYK" C="0" M="0" Y="0" K="75"/>
        <Color Name="Magenta" Space="CMYK" C="0" M="100" Y="0" K="0"/>
        <Color Name="Navy" Space="CMYK" C="100" M="85" Y="0" K="70"/>
        <Color Name="Olive" Space="CMYK" C="40" M="20" Y="100" K="20"/>
        <Color Name="Orange" Space="CMYK" C="0" M="50" Y="100" K="0"/>
        <Color Name="Pink" Space="CMYK" C="0" M="50.2" Y="8.7" K="0"/>
        <Color Name="Pronunciation" Space="CMYK" C="0" M="0" Y="0" K="75"/>
        <Color Name="Purple" Space="CMYK" C="70" M="100" Y="0" K="0"/>
        <Color Name="Red" Space="CMYK" C="0" M="100" Y="100" K="0"/>
        <Color Name="Red BG" Space="CMYK" C="0" M="72.9854276340887" Y="53.6705577172503" K="0"/>
        <Color Name="Red0" Space="CMYK" C="0" M="98.1" Y="94.4" K="0"/>
        <Color Name="Reddish" Space="CMYK" C="0" M="73" Y="50" K="15"/>
        <Color Name="Registration" Space="CMYK" C="100" M="100" Y="100" K="100" Register="1"/>
        <Color Name="Sikhi" Space="CMYK" C="0" M="25" Y="100" K="0"/>
        <Color Name="Teal" Space="CMYK" C="100" M="0" Y="30" K="30"/>
        <Color Name="White" Space="CMYK" C="0" M="0" Y="0" K="0"/>
        <Color Name="Yellow" Space="CMYK" C="0" M="0" Y="100" K="13.7"/>
        <Hyphenator/>
        <CharacterStyle Name="Default Character Style" DefaultStyle="1" Font="EB Garamond Regular" FontSize="12" FontFeatures="-clig" Features="inherit" FontColor="Black" FillShade="99" HyphenWordMinimum="3" StrokeColor="Black" BackgroundColor="None" BackgroundShade="100" StrokeShade="100" TextShadowXOffset="5" TextShadowYOffset="-5" TextOutlineWidth="1" TextUnderlineOffset="-0.1" TextUnderlineWidth="-0.1" TextStrikeThroughOffset="-0.1" TextStrikeThroughWidth="-0.1" ScaleHorizontal="100" ScaleVertical="100" BaselineOffset="0" Kerning="0" Language="en_GB"/>
        <CharacterStyle Name="SUPERSCRIPT_12pt" CParent="Default Character Style" FontSize="12" Features="superscript" TextShadowXOffset="5" TextShadowYOffset="-5" TextOutlineWidth="1" TextUnderlineOffset="-0.1" TextUnderlineWidth="-0.1" TextStrikeThroughOffset="-0.1" TextStrikeThroughWidth="-0.1"/>
        <ParagraphStyle Name="Default Paragraph Style" DefaultStyle="1" Alignment="3" Direction="0" LineSpacingMode="2" LineSpacing="15" LeftMargin="0" RightMargin="0" FirstIndent="18" GapBefore="0" GapAfter="0" ParagraphEffectOffset="0" HasDropCap="0" DropCapLines="2" Bullet="0" Numeration="0" OpticalMargins="14" OpticalMarginSetId="preset_0" HyphenConsecutiveLines="2" ParagraphBackgroundColor="None" ParagraphBackgroundColorShade="100" Font="EB Garamond Regular" FontSize="12" FontFeatures="-clig" FontColor="Black" FillShade="100"/>
        <ParagraphStyle Name="SUBTITLE" Alignment="1" LineSpacingMode="0" LineSpacing="19" FirstIndent="0" OpticalMarginSetId="preset_0" Font="League Spartan Regular" FontSize="15" FontFeatures="-clig" Language="en_GB"/>
        <ParagraphStyle Name="FIRST_PARA" FirstIndent="0" GapBefore="30" OpticalMarginSetId="preset_0" Language="en_GB"/>
        <ParagraphStyle Name="FOOTNOTES" LeftMargin="9" FirstIndent="-18" ParagraphEffectOffset="4.5" HasDropCap="0" Bullet="0" BulletStr="*" Numeration="1" NumerationFormat="0" NumerationName="default" NumerationRestart="0" NumerationOther="1" NumerationHigher="1" OpticalMarginSetId="preset_0" Font="EB Garamond Regular" FontSize="10" FontFeatures="-clig" Language="en_GB"/>
        <ParagraphStyle Name="FIRST_PARA_SUBHEADING" FirstIndent="0" OpticalMarginSetId="preset_0" Language="en_GB"/>
        <ParagraphStyle LineSpacingMode="2" LineSpacing="15" Kerning="0"/>
        <ParagraphStyle Name="TABLE_CONTENT_INDENTED_LESS" Alignment="0" LineSpacingMode="0" LineSpacing="19" LeftMargin="9" FirstIndent="0" OpticalMarginSetId="preset_0" Font="EB Garamond Regular" FontSize="12" FontFeatures="-clig" Language="en_GB"/>
        <ParagraphStyle Name="H_1_MAIN" Alignment="0" FirstIndent="0" GapAfter="15" ParagraphEffectOffset="4.5" HasDropCap="0" Bullet="0" Numeration="1" NumerationOther="0" NumerationHigher="1" OpticalMarginSetId="preset_0" Font="League Spartan Regular" FontSize="16" FontFeatures="-clig" Features="allcaps" TextShadowXOffset="5" TextShadowYOffset="-5" TextOutlineWidth="1" TextUnderlineOffset="-0.1" TextUnderlineWidth="-0.1" TextStrikeThroughOffset="-0.1" TextStrikeThroughWidth="-0.1" Language="en_GB"/>
        <ParagraphStyle Name="TOC_H_1_FM" Alignment="3" Direction="0" LineSpacingMode="0" LineSpacing="15.9" LeftMargin="0" RightMargin="0" FirstIndent="-36" GapBefore="0" GapAfter="0" ParagraphEffectOffset="4.5" HasDropCap="0" DropCapLines="2" Bullet="0" Numeration="1" NumerationFormat="2" NumerationPrefix="" OpticalMargins="14" OpticalMarginSetId="preset_0" HyphenConsecutiveLines="2" ParagraphBackgroundColor="None" ParagraphBackgroundColorShade="100" Font="Lato Regular" FontSize="12" FontFeatures="-clig" Features="" FontColor="Black" FillShade="99" TextShadowXOffset="5" TextShadowYOffset="-5" TextOutlineWidth="1" TextUnderlineOffset="-0.1" TextUnderlineWidth="-0.1" TextStrikeThroughOffset="-0.1" TextStrikeThroughWidth="-0.1">
            <Tabs Type="1" Pos="333" Fill="."/>
        </ParagraphStyle>
        <ParagraphStyle Name="H_2_MAIN_NOTOC" Alignment="0" FirstIndent="0" GapBefore="15" GapAfter="15" ParagraphEffectOffset="4.5" HasDropCap="0" Bullet="0" Numeration="1" NumerationLevel="1" NumerationStart="1" NumerationOther="0" NumerationHigher="1" OpticalMarginSetId="preset_0" Font="League Spartan Light" FontSize="15" FontFeatures="-clig" Features="allcaps" TextShadowXOffset="5" TextShadowYOffset="-5" TextOutlineWidth="1" TextUnderlineOffset="-0.1" TextUnderlineWidth="-0.1" TextStrikeThroughOffset="-0.1" TextStrikeThroughWidth="-0.1" Language="en_GB"/>
        <ParagraphStyle Name="COLUMN CENTRE" Alignment="1" LineSpacingMode="2" LineSpacing="16" FirstIndent="0" OpticalMarginSetId="preset_0" Font="Cormorant Garamond Medium" FontFeatures="-clig" Language="en_GB"/>
        <ParagraphStyle Name="COLUMN CENTRE FADED" Alignment="1" FirstIndent="0" OpticalMarginSetId="preset_0" Font="Cormorant Garamond Medium" FontSize="11" FontFeatures="-clig" FontColor="Black" FillShade="70" Language="en_GB"/>
        <TableStyle Name="Default Table Style" DefaultStyle="1" FillColor="None" FillShade="100" ParagraphStyleName="TABLE_CONTENT_INDENTED_LESS">
            <TableBorderLeft>
                <TableBorderLine Width="0.5" PenStyle="1" Color="Black" Shade="100"/>
            </TableBorderLeft>
            <TableBorderRight>
                <TableBorderLine Width="0.5" PenStyle="1" Color="Black" Shade="100"/>
            </TableBorderRight>
            <TableBorderTop>
                <TableBorderLine Width="0.5" PenStyle="1" Color="Black" Shade="100"/>
            </TableBorderTop>
            <TableBorderBottom>
                <TableBorderLine Width="0.5" PenStyle="1" Color="Black" Shade="100"/>
            </TableBorderBottom>
            <Conditional Type="BandedColEven" ParagraphStyleName="TABLE_CONTENT_CENTRE"/>
            <Conditional Type="BodyCell" Parent="Default Cell Style" ParagraphStyleName="TABLE_CONTENT_INDENTED_LESS"/>
            <Conditional Type="BandedRowOdd" Parent="Default Cell Style"/>
            <Conditional Type="FirstColumn" FillColor="Black" FillShade="10" ParagraphStyleName="TABLE_CONTENT_INDENTED_LESS"/>
            <Conditional Type="HeaderRow" Parent="Default Cell Style" ParagraphStyleName="TABLE_CENTRE_HEAD"/>
            <Conditional Type="BandedColOdd" Parent="Default Cell Style" ParagraphStyleName="TABLE_CONTENT_CENTRE"/>
            <Conditional Type="BandedRowEven" Parent="Default Cell Style" FillColor="None" FillShade="10" ParagraphStyleName="TABLE_CONTENT_CENTRE"/>
        </TableStyle>
        <CellStyle Name="Default Cell Style" DefaultStyle="1" FillColor="None" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1" VerticalAlignment="1"/>
        <Layers Number="0" Level="0" Name="FRONT_MATTER" IsViewable="1" IsPrintable="1" IsEditable="1" IsSelectable="0" FlowControl="0" Transparency="1" BlendMode="0" OutlineMode="0" LayerColor="#000000"/>
        <Printer firstUse="1" toFile="0" useAltPrintCommand="0" outputSeparations="0" useSpotColors="1" useColor="1" mirrorH="0" mirrorV="0" useICC="0" doGCR="0" doClip="0" setDevParam="0" useDocBleeds="1" cropMarks="0" bleedMarks="0" registrationMarks="0" colorMarks="0" includePDFMarks="1" PSLevel="3" PrintEngine="3" markLength="20.0016" markOffset="0" BleedTop="9" BleedLeft="0" BleedRight="9" BleedBottom="9" printer="File" filename="" separationName="All" printerCommand=""/>
        <PDF firstUse="0" Thumbnails="0" Articles="0" Bookmarks="0" Compress="1" CMethod="-1" Quality="-1" EmbedPDF="0" MirrorH="0" MirrorV="0" Clip="0" rangeSel="0" rangeTxt="" RotateDeg="0" PresentMode="0" RecalcPic="0" FontEmbedding="1" Grayscale="1" RGBMode="0" UseProfiles="0" UseProfiles2="0" Binding="-1" PicRes="35" Resolution="35" Version="16" Intent="1" Intent2="0" SolidP="ACEScg-elle-V4-g10.icc" ImageP="ACEScg-elle-V4-g10.icc" PrintP="ISO Coated v2 300% (basICColor)" InfoString="My Book Title" BTop="9" BLeft="0" BRight="9" BBottom="9" useDocBleeds="0" cropMarks="0" bleedMarks="0" registrationMarks="0" colorMarks="0" docInfoMarks="0" markLength="18" markOffset="0" ImagePr="0" PassOwner="" PassUser="" Permissions="-20" Encrypt="1" UseLayers="0" UseLpi="0" UseSpotColors="1" doMultiFile="0" displayBookmarks="0" displayFullscreen="0" displayLayers="0" displayThumbs="0" hideMenuBar="0" hideToolBar="0" fitWindow="0" openAfterExport="0" PageLayout="0" openAction="">
            <Subset Name="Cormorant Garamond Medium"/>
            <Subset Name="EB Garamond Medium"/>
            <Subset Name="EB Garamond Regular"/>
            <Subset Name="Lato Regular"/>
            <Subset Name="League Spartan Light"/>
            <Subset Name="League Spartan Regular"/>
            <LPI Color="" Frequency="10" Angle="0" SpotFunction="0"/>
            <LPI Color="Black" Frequency="133" Angle="45" SpotFunction="3"/>
            <LPI Color="Cyan" Frequency="133" Angle="105" SpotFunction="3"/>
            <LPI Color="Magenta" Frequency="133" Angle="75" SpotFunction="3"/>
            <LPI Color="Yellow" Frequency="133" Angle="90" SpotFunction="3"/>
        </PDF>
        <DocItemAttributes/>
        <Indexes/>
        <TablesOfContents>
            <TableOfContents Name="FM" ToCSource="Style" ItemAttributeName="None" FrameName="TOC_FM" ListNonPrinting="0" Style="None" NumberPlacement="End">
                <StyleInTOC StyleName="" TOCStyle="TOC_H_1_FM" RemoveLineBreaks="0" NumberPlacement="End"/>
            </TableOfContents>
            <TableOfContents Name="MAIN" ToCSource="Style" ItemAttributeName="None" FrameName="TOC_MAIN" ListNonPrinting="0" Style="None" NumberPlacement="End">
                <StyleInTOC StyleName="H_1_MAIN" TOCStyle="" RemoveLineBreaks="0" NumberPlacement="End"/>
                <StyleInTOC StyleName="" TOCStyle="" RemoveLineBreaks="0" NumberPlacement="End"/>
            </TableOfContents>
        </TablesOfContents>
        <NotesStyles>
            <notesStyle Name="Default" Start="1" Endnotes="0" Type="Type_1_2_3" Range="0" Prefix="" Suffix=")" AutoHeight="1" AutoWidth="1" AutoRemove="1" AutoWeld="1" SuperNote="1" SuperMaster="1" MarksStyle="" NotesStyle=""/>
        </NotesStyles>
        <OpticalMarginSets>
            <Set Id="preset_0" Type="preset" Name="Default">
                <Rules>
                    <Rule Left="0" Right="0.5" Unit="7" Characters="U+003A,U+003B,U+2013,U+2033"/>
                    <Rule Left="0" Right="0.75" Unit="7" Characters="U+002C,U+002D,U+002E,U+2010,U+2032"/>
                    <Rule Left="0.25" Right="0.25" Unit="7" Characters="U+2014"/>
                    <Rule Left="0.5" Right="0" Unit="7" Characters="U+2036"/>
                    <Rule Left="0.5" Right="0.5" Unit="7" Characters="U+0022,U+0028,U+0029,U+005B,U+005D,U+00AB,U+00BB,U+201C,U+201D,U+201E,U+201F"/>
                    <Rule Left="0.75" Right="0" Unit="7" Characters="U+2035"/>
                    <Rule Left="0.75" Right="0.75" Unit="7" Characters="U+0027,U+002A,U+0060,U+007E,U+00B4,U+2018,U+2019,U+201A,U+201B,U+2039,U+203A"/>
                </Rules>
            </Set>
        </OpticalMarginSets>
        <PageSets>
            <Set Name="Single Page" FirstPage="0" Rows="1" Columns="1"/>
            <Set Name="Facing Pages" FirstPage="1" Rows="1" Columns="2">
                <PageNames Name="Left Page"/>
                <PageNames Name="Right Page"/>
            </Set>
            <Set Name="3-Fold" FirstPage="0" Rows="1" Columns="3">
                <PageNames Name="Left Page"/>
                <PageNames Name="Middle"/>
                <PageNames Name="Right Page"/>
            </Set>
            <Set Name="4-Fold" FirstPage="0" Rows="1" Columns="4">
                <PageNames Name="Left Page"/>
                <PageNames Name="Middle Left"/>
                <PageNames Name="Middle Right"/>
                <PageNames Name="Right Page"/>
            </Set>
        </PageSets>
        <Sections>
            <Section Number="0" Name="Section 1" From="0" To="0" Type="Type_i_ii_iii" Start="1" Reversed="0" Active="1" FillChar="0" FieldWidth="0"/>
            <Section Number="1" Name="Section 2" From="1" To="2" Type="Type_1_2_3" Start="1" Reversed="0" Active="1" FillChar="0" FieldWidth="0"/>
        </Sections>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="0" PageName="Normal Left" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="1" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="1" PageName="Normal Right" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="2" PageName="PG_NUM_LEFT" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="1" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="3" PageName="PG_NUM_RIGHT" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="4" PageName="PRACTICE_GUIDES_LEFT1" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="1" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="5" PageName="PRACTICE_GUIDES_RIGHT1" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="6" PageName="PRACTICE_GUIDES_LEFT2" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="1" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="7" PageName="PRACTICE_GUIDES_RIGHT2" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <MasterPage PageXPosition="0" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="8" PageName="PRACTICE_GUIDES_LEFT3" MasterPageName="" Size="Booklet 6 1/2" Orientation="0" LeftPage="1" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <Page PageXPosition="432" PageYPosition="0" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="0" PageName="" MasterPageName="Normal Right" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <Page PageXPosition="0" PageYPosition="673.2" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="1" PageName="" MasterPageName="Normal Left" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <Page PageXPosition="432" PageYPosition="673.2" PageWidth="432" PageHeight="648" BorderLeft="50.4" BorderRight="43.2" BorderTop="63" BorderBottom="63" PageNumber="2" PageName="" MasterPageName="Normal Right" Size="Booklet 6 1/2" Orientation="0" LeftPage="0" Preset="0" VerticalGuides="" HorizontalGuides="" AutoGuideHorizontalGap="0" AutoGuideVerticalGap="0" AutoGuideHorizontalCount="0" AutoGuideVerticalCount="0" AutoGuideHorizontalReference="0" AutoGuideVerticalReference="0" AutoGuideSelection="0 0 0 0" PageEffectDuration="1" PageViewDuration="1" PageEffectType="0" PageEffectLineDirection="0" PageEffectInsideOutside="0" PageEffectDirection="0"/>
        <FrameObject InID="1652720523" XPosition="0.5" YPosition="60588.4999999999" OwnPage="-1" ItemID="2050477029" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" FillShade="0" LineColor="Black" LineShade="80" LinePenStyle="1" Path="" EndArrowIndex="2" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <FrameObject InID="212793675" XPosition="0" YPosition="0" OwnPage="-1" ItemID="1152106959" ItemType="4" Width="338.4" Height="135" FrameType="0" ClipEdited="0" LineWidth="1" LinePenStyle="1" ImageScaleX="1" ImageScaleY="1" ImageOffsetX="0" ImageOffsetY="0" ImageRotation="0" ImageVisible="1" ImageScaleType="1" ImageRatio="1" Columns="5" ColumnGap="4.32" AutomaticTextFrame="0" TextToFrameDistanceLeft="0" TextToFrameDistanceTop="0" TextToFrameDistanceBottom="0" TextToFrameDistanceRight="0" VerticalAlignment="0" FirstLineOffset="1" PathTextShowPath="0" PathTextDistanceFromPath="0" TextPathType="0" TextPathFlipped="0" Path="M0 0 L338.4 0 L338.4 135 L0 135 L0 0 Z" ContourLinePath="M0 0 L338.4 0 L338.4 135 L0 135 L0 0 Z" ImageLowResType="2" isInline="1" gXpos="0" gYpos="25.61328062892" gWidth="338.4" gHeight="160.61328062892" ParagraphStyle="COLUMN CENTRE" Layer="0" NextItem="-1" BackItem="-1">
            <StoryText>
                <DefaultStyle Parent="COLUMN CENTRE"/>
                <Content Chars="ū"/>
                <Content CParent="SUPERSCRIPT_12pt" Chars="n"/>
                <Content Chars="gul"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(finger)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="ū-baa-see"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(yawn)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="ooŗaa"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(1st letter)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <Content Chars="ukh"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(eye)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="aas"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(hope)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="æ-nuk"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(glasses)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <Content Chars="ikk"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(one)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="itt"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(brick)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="ee-saa"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(Christ)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <Content Chars="sayb"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(apple)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="su"/>
                <Content CParent="SUPERSCRIPT_12pt" Chars="n"/>
                <Content Font="EB Garamond Regular" Chars="ⱦ"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(saint)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="su"/>
                <Content CParent="SUPERSCRIPT_12pt" Chars="n"/>
                <Content Font="EB Garamond Regular" Chars="ⱦ"/>
                <Content Font="EB Garamond Medium" Chars="-"/>
                <Content Chars="raa"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(orange)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <Content Chars="hu"/>
                <Content Font="EB Garamond Regular" Chars="ⱦ-ⱦ"/>
                <Content Chars="h"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(hand)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="haa"/>
                <Content Font="EB Garamond Regular" Chars="ⱦ"/>
                <Content Chars="hee"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(elephant)"/>
                <para Parent="COLUMN CENTRE FADED"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="hu-may-shaa"/>
                <para Parent="COLUMN CENTRE"/>
                <Content Chars="(always)"/>
                <trail Parent="COLUMN CENTRE FADED"/>
            </StoryText>
        </FrameObject>
        <FrameObject InID="1134927901" XPosition="0" YPosition="0" OwnPage="-1" ItemID="2130331250" ItemType="16" Width="308.329411764706" Height="168.691764705879" FrameType="0" ClipEdited="0" LineWidth="0" LinePenStyle="1" Rows="10" Columns="2" RowPositions="0 16.7692 33.5384 50.3075 67.0767 83.8459 100.615 117.384 134.153 150.923" RowHeights="16.7692 16.7692 16.7692 16.7692 16.7692 16.7692 16.7692 16.7692 16.7692 16.7692" ColumnPositions="0 153.665" ColumnWidths="153.665 153.665" CellAreas="" TableStyle="" Path="M0 0 L308.329 0 L308.329 168.692 L0 168.692 L0 0 Z" ContourLinePath="M0 0 L308.329 0 L308.329 168.692 L0 168.692 L0 0 Z" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="308.329411764706" gHeight="168.691764705879" Layer="0">
            <TableData Style="" FillColor="None" FillShade="100">
                <TableBorderLeft>
                    <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/>
                </TableBorderLeft>
                <TableBorderRight>
                    <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/>
                </TableBorderRight>
                <TableBorderTop>
                    <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/>
                </TableBorderTop>
                <TableBorderBottom>
                    <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/>
                </TableBorderBottom>
                <Cell Row="0" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="0" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="1" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="1" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="2" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="2" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="3" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="3" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="4" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="4" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="5" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="5" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="6" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="6" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="7" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="7" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="8" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="8" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="9" Column="0" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
                <Cell Row="9" Column="1" Style="" TextColumns="1" TextColGap="0" TextDistLeft="0" TextDistTop="0" TextDistBottom="0" TextDistRight="0" Flop="1" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1">
                    <TableBorderLeft Width="0"/>
                    <TableBorderRight Width="0"/>
                    <TableBorderTop Width="0"/>
                    <TableBorderBottom Width="0"/>
                    <StoryText>
                        <DefaultStyle Parent="TABLE_CONTENT_INDENTED_LESS"/>
                        <trail/>
                    </StoryText>
                </Cell>
            </TableData>
        </FrameObject>
        <FrameObject InID="573640438" XPosition="0.5" YPosition="0.5" OwnPage="-1" ItemID="87137495" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" FillShade="0" LineColor="Black" LineShade="80" LinePenStyle="1" Path="" EndArrowIndex="2" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <FrameObject InID="1045994957" XPosition="0.5" YPosition="0.5" OwnPage="-1" ItemID="977700660" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" FillShade="0" LineColor="Black" LineShade="80" LinePenStyle="1" Path="" EndArrowIndex="2" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <FrameObject InID="1143986530" XPosition="0" YPosition="0" OwnPage="-1" ItemID="1073733644" ItemType="4" Width="338.4" Height="31.5" FrameType="0" ClipEdited="0" LineWidth="1" LinePenStyle="1" ImageScaleX="1" ImageScaleY="1" ImageOffsetX="0" ImageOffsetY="0" ImageRotation="0" ImageVisible="1" ImageScaleType="1" ImageRatio="1" Columns="1" ColumnGap="0" AutomaticTextFrame="0" TextToFrameDistanceLeft="0" TextToFrameDistanceTop="0" TextToFrameDistanceBottom="0" TextToFrameDistanceRight="0" VerticalAlignment="0" FirstLineOffset="1" PathTextShowPath="0" PathTextDistanceFromPath="0" TextPathType="0" TextPathFlipped="0" Path="M0 0 L338.4 0 L338.4 31.5 L0 31.5 L0 0 Z" ContourLinePath="M0 0 L338.4 0 L338.4 31.5 L0 31.5 L0 0 Z" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="338.4" gHeight="31.5" ParagraphStyle="FOOTNOTES" Layer="0" NextItem="-1" BackItem="-1">
            <StoryText>
                <DefaultStyle Parent="FOOTNOTES"/>
                <Content FontSize="5" Chars="—————————————————"/>
                <para Parent="FOOTNOTES"/>
                <Content CParent="SUPERSCRIPT_12pt" Chars="1"/>
                <Content FontSize="10" Chars=" Use "/>
                <Content Font="EB Garamond Italic" FontSize="10" Chars="ru-ee"/>
                <Content FontSize="10" Chars=" if you are a female."/>
                <trail Parent="FOOTNOTES"/>
            </StoryText>
        </FrameObject>
        <FrameObject InID="1802271664" XPosition="0.5" YPosition="0.5" OwnPage="-1" ItemID="426693916" ItemType="5" Width="54" Height="1" FrameType="0" ClipEdited="0" Rotation="90" LineWidth="1" LineColor="Black" LinePenStyle="1" Path="" ImageLowResType="2" isInline="1" gXpos="0.5" gYpos="0" gWidth="1" gHeight="54" Layer="0"/>
        <FrameObject InID="336566900" XPosition="0.5" YPosition="0.5" OwnPage="-1" ItemID="670978782" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" LineColor="Black" LinePenStyle="1" Path="" EndArrowIndex="26" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <FrameObject InID="1495800631" XPosition="0.5" YPosition="92228.9" OwnPage="-1" ItemID="996264625" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" LineColor="Black" LinePenStyle="1" Path="" EndArrowIndex="26" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <FrameObject InID="1107031544" XPosition="0.5" YPosition="0.5" OwnPage="-1" ItemID="898785535" ItemType="5" Width="27" Height="1" FrameType="0" ClipEdited="0" LineWidth="1" LineColor="Black" LinePenStyle="1" Path="" EndArrowIndex="26" ImageLowResType="2" isInline="1" gXpos="0" gYpos="0" gWidth="27" gHeight="1" Layer="0"/>
        <PageObject XPosition="482.4" YPosition="736.2" OwnPage="2" ItemID="171771870" ItemType="4" Width="338.4" Height="522" FrameType="0" ClipEdited="0" LineWidth="1" LinePenStyle="1" ImageScaleX="1" ImageScaleY="1" ImageOffsetX="0" ImageOffsetY="0" ImageRotation="0" ImageVisible="1" ImageScaleType="1" ImageRatio="1" Columns="1" ColumnGap="0" AutomaticTextFrame="0" TextToFrameDistanceLeft="0" TextToFrameDistanceTop="0" TextToFrameDistanceBottom="0" TextToFrameDistanceRight="0" VerticalAlignment="0" FirstLineOffset="1" PathTextShowPath="0" PathTextDistanceFromPath="0" TextPathType="0" TextPathFlipped="0" Path="M0 0 L338.4 0 L338.4 522 L0 522 L0 0 Z" ContourLinePath="M0 0 L338.4 0 L338.4 522 L0 522 L0 0 Z" ImageLowResType="2" gXpos="482.4" gYpos="736.2" gWidth="0" gHeight="0" Layer="0" NextItem="-1" BackItem="-1">
            <StoryText>
                <DefaultStyle OpticalMargins="14" OpticalMarginSetId="preset_0"/>
                <Content Chars="Punjabi"/>
                <para Parent="H_1_MAIN"/>
                <Content Chars="Punjabi is an Indo-Aryan language spoken by nearly 150 million people worldwide, making it one of the most widely spoken languages on the planet. It is the native language of the Punjab region, which spans parts of northern India and eastern Pakistan."/>
                <para Parent="FIRST_PARA"/>
                <Content Chars="Apple"/>
                <para Parent="H_2_MAIN_NOTOC" OpticalMargins="14" OpticalMarginSetId="preset_0"/>
                <Content Kerning="-1.1" Chars="In India, Punjabi is the official language of the state of Punjab, and is used in government, education, media, and day-to-day commui­­ca­­tion. In Pakistan, Punjabi is the most spoken mother tongue, especi­­al­­ly in the Punjab province, though it lacks official status at the national level."/>
                <para Parent="FIRST_PARA_SUBHEADING"/>
                <Content Chars="Banana"/>
                <para Parent="H_2_MAIN_NOTOC"/>
                <Content Kerning="-1" Chars="Despite political borders, Punjabi culture remains a shared heritage, cel­­e­­brated on both sides through music, poetry, and traditions."/>
                <trail Parent="FIRST_PARA_SUBHEADING"/>
            </StoryText>
        </PageObject>
        <PageObject XPosition="482.4" YPosition="63" OwnPage="0" ItemID="604362371" ItemType="4" Width="338.4" Height="54" FrameType="0" ClipEdited="0" LineWidth="1" LinePenStyle="1" ImageScaleX="1" ImageScaleY="1" ImageOffsetX="0" ImageOffsetY="0" ImageRotation="0" ImageVisible="1" ImageScaleType="1" ImageRatio="1" Columns="1" ColumnGap="0" AutomaticTextFrame="0" TextToFrameDistanceLeft="0" TextToFrameDistanceTop="0" TextToFrameDistanceBottom="0" TextToFrameDistanceRight="0" VerticalAlignment="0" FirstLineOffset="1" PathTextShowPath="0" PathTextDistanceFromPath="0" TextPathType="0" TextPathFlipped="0" Path="M0 0 L338.4 0 L338.4 54 L0 54 L0 0 Z" ContourLinePath="M0 0 L338.4 0 L338.4 54 L0 54 L0 0 Z" ImageLowResType="2" gXpos="482.4" gYpos="63" gWidth="0" gHeight="0" ParagraphStyle="SUBTITLE" Layer="0" NextItem="-1" BackItem="-1">
            <StoryText>
                <DefaultStyle Parent="SUBTITLE"/>
                <Content Chars="CONTENTS"/>
                <trail Parent="SUBTITLE"/>
            </StoryText>
        </PageObject>
        <PageObject XPosition="482.4" YPosition="121" OwnPage="0" ItemID="801400138" ItemType="4" Width="338.4" Height="70.91578947368" FrameType="0" ClipEdited="0" LineWidth="1" LinePenStyle="1" AutoName="TOC_FM" ImageScaleX="1" ImageScaleY="1" ImageOffsetX="0" ImageOffsetY="0" ImageRotation="0" ImageVisible="1" ImageScaleType="1" ImageRatio="1" Columns="1" ColumnGap="0" AutomaticTextFrame="0" TextToFrameDistanceLeft="0" TextToFrameDistanceTop="0" TextToFrameDistanceBottom="0" TextToFrameDistanceRight="0" VerticalAlignment="0" FirstLineOffset="1" PathTextShowPath="0" PathTextDistanceFromPath="0" TextPathType="0" TextPathFlipped="0" Path="M0 0 L338.4 0 L338.4 70.9158 L0 70.9158 L0 0 Z" ContourLinePath="M0 0 L338.4 0 L338.4 70.9158 L0 70.9158 L0 0 Z" ImageLowResType="2" gXpos="482.4" gYpos="121" gWidth="0" gHeight="0" Layer="0" NextItem="-1" BackItem="-1">
            <StoryText>
                <DefaultStyle/>
                <Content Chars="Why Does This Book Exist?"/>
                <tab/>
                <Content Chars="v"/>
                <para Parent="TOC_H_1_FM"/>
                <Content Chars="Punjabi—A Brief Introduction"/>
                <tab/>
                <Content Chars="vi"/>
                <para Parent="TOC_H_1_FM"/>
                <Content Chars="The Sounds of Punjabi: A Quick Revision"/>
                <tab/>
                <Content Chars="viii"/>
                <para Parent="TOC_H_1_FM"/>
            </StoryText>
        </PageObject>
    </Document>
</SCRIBUSUTF8NEW>

buttar

2026-11-05 06:32

reporter   ~0054652

Last edited: 2026-11-05 11:23

NEWER. SMALLER SPLIT.

The three patches replace all previous ones in this ticket.

# Improve paragraph-style numbering sequence handling

- Dependency order: NS1 → NS2 → NS3.

## NS1 — Numbering sequence UI clarity and validation

- The existing `Set` / `New Set` controls do not clearly communicate that paragraph styles sharing a numbering sequence also share counters.
- Rename the controls to `Sequence` / `New sequence` and improve their tooltips.
- Make newly created sequences immediately available and selected without requiring Apply.
- Include pending style assignments when populating available sequences and checking duplicate names.
- Correct `Use Parent Value` handling so it restores inheritance rather than storing the displayed label as a sequence name.
- Preserve numbering levels and inherited control state when switching sequences.

## NS2 — Independent numbering defaults

- Newly numbered paragraph styles can unintentionally share counters because they use the same unnamed numbering sequence.
- Assign a unique sequence name when numbering is first enabled on a style without an existing sequence.
- Use collision-safe names based on the paragraph style name, such as `Numbering H1`.
- Preserve existing sequence assignments and inheritance from numbered parent styles.
- Reuse the existing `NumerationName` mechanism without changing the numbering engine or document format.
- Sequence names remain unchanged when paragraph styles are renamed.

## NS3 — Pending numbering hierarchy levels

- The Style Manager determines available numbering levels primarily from committed document counters, overlooking pending style changes.
- Calculate the available Level range using both existing counters and pending paragraph-style assignments.
- Update the range when numbering sequences, levels or numbering modes change.
- Allow hierarchical styles such as H1/H2/H3 to be configured before Apply.
- Preserve existing level values and inherited spin-box state when refreshing the control.
ns1-numbering-sequence-ui-clarity-v1.02.patch (7,254 bytes)   
Index: scribus/ui/smpstylewidget.cpp
===================================================================
--- scribus/ui/smpstylewidget.cpp	(revision 27940)
+++ scribus/ui/smpstylewidget.cpp	(working copy)
@@ -186,6 +186,7 @@
 void SMPStyleWidget::show(ParagraphStyle *pstyle, QList<ParagraphStyle> &pstyles, QList<CharStyle> &cstyles, int unitIndex, const QString &defLang)
 {
 	m_currPStyle = pstyle;
+	fillNumerationsCombo(&pstyles);
 	double unitRatio = unitGetRatioFromIndex(unitIndex);
 	parentCombo->setEnabled(!pstyle->isDefaultStyle());
 	const ParagraphStyle *parent = dynamic_cast<const ParagraphStyle*>(pstyle->parentStyle());
@@ -455,6 +456,7 @@
 	else if (pstyles.count() > 1)
 	{
 		m_currPStyle = pstyles[0];
+		fillNumerationsCombo(&pstylesAll);
 		showLineSpacing(pstyles);
 		showSpaceAB(pstyles, unitIndex);
 		showDropCap(pstyles, cstyles, unitIndex);
@@ -965,15 +967,22 @@
 		bulletStrEdit->setEditText(QChar(0x2022));
 }
 
-void SMPStyleWidget::fillNumerationsCombo()
+void SMPStyleWidget::fillNumerationsCombo(const QList<ParagraphStyle>* pendingStyles)
 {
 	QStringList numNames;
 	const auto numerationKeys = m_Doc->numerations.keys();
 	for (const QString& numName : numerationKeys)
 	{
-		if (numName.isEmpty())
-			continue;
-		numNames.append(numName);
+		if (!numName.isEmpty())
+			numNames.append(numName);
+	}
+	if (pendingStyles)
+	{
+		for (const ParagraphStyle& style : *pendingStyles)
+		{
+			if (style.hasNum() && !style.numName().isEmpty() && !numNames.contains(style.numName()))
+				numNames.append(style.numName());
+		}
 	}
 	numNames.sort();
 	numComboBox->clear();
@@ -981,6 +990,15 @@
 	numComboBox->setCurrentItem(0);
 }
 
+void SMPStyleWidget::selectNewNumeration(const QString& name)
+{
+	int index = numComboBox->count();
+	if (index > 0 && numComboBox->itemText(index - 1) == numComboBox->tr("Use Parent Value"))
+		--index;
+	numComboBox->insertItem(index, name);
+	numComboBox->setCurrentIndex(index);
+}
+
 void SMPStyleWidget::fillNumRestartCombo()
 {
 	numRestartCombo->clear();
Index: scribus/ui/smpstylewidget.h
===================================================================
--- scribus/ui/smpstylewidget.h	(revision 27940)
+++ scribus/ui/smpstylewidget.h	(working copy)
@@ -49,7 +49,8 @@
 	StyleSet<CharStyle> *m_cstyles = nullptr;
 
 	void fillBulletStrEditCombo();
-	void fillNumerationsCombo();
+	void fillNumerationsCombo(const QList<ParagraphStyle>* pendingStyles = nullptr);
+	void selectNewNumeration(const QString& name);
 	void fillNumRestartCombo();
 	void fillPECombo();
 	void setParagraphEffect(int);
Index: scribus/ui/smpstylewidget.ui
===================================================================
--- scribus/ui/smpstylewidget.ui	(revision 27940)
+++ scribus/ui/smpstylewidget.ui	(working copy)
@@ -1284,7 +1284,7 @@
              <item row="0" column="0">
               <widget class="QLabel" name="numComboLabel">
                <property name="text">
-                <string>Set:</string>
+                <string>Sequence:</string>
                </property>
                <property name="alignment">
                 <set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
@@ -1317,6 +1317,9 @@
              </item>
              <item row="0" column="1" colspan="4">
               <widget class="SMScComboBox" name="numComboBox">
+               <property name="toolTip">
+                <string>Paragraph styles using the same numbering sequence share counters.</string>
+               </property>
                <property name="currentIndex">
                 <number>-1</number>
                </property>
@@ -1449,7 +1452,7 @@
                 </sizepolicy>
                </property>
                <property name="label" stdset="0">
-                <string>New Set:</string>
+                <string>New sequence:</string>
                </property>
                <property name="direction">
                 <enum>FormWidget::LabelPosition::Left</enum>
@@ -1471,7 +1474,11 @@
                  <number>0</number>
                 </property>
                 <item>
-                 <widget class="QLineEdit" name="numNewLineEdit"/>
+                 <widget class="QLineEdit" name="numNewLineEdit">
+                  <property name="toolTip">
+                   <string>Enter a name and press Enter to assign a new numbering sequence.</string>
+                  </property>
+                 </widget>
                 </item>
                </layout>
               </widget>
Index: scribus/ui/smtextstyles.cpp
===================================================================
--- scribus/ui/smtextstyles.cpp	(revision 27940)
+++ scribus/ui/smtextstyles.cpp	(working copy)
@@ -7,6 +7,7 @@
 
 #include <QEvent>
 #include <QMessageBox>
+#include <QSignalBlocker>
 #include <QTabWidget>
 
 #include "alignselect.h"
@@ -1031,33 +1032,51 @@
 
 void SMParagraphStyle::slotNumName(const QString &str)
 {
-	if (!str.isEmpty())
+	if (m_selection.isEmpty())
+		return;
+
+	if (m_pwidget->numComboBox->useParentValue())
 	{
-		for (int i = 0; i < m_selection.count(); ++i)
-			m_selection[i]->setNumName(str);
-		m_pwidget->numComboBox->setCurrentItem(m_pwidget->numComboBox->findText(m_selection[0]->numName()));
-		m_pwidget->numLevelSpin->setValue(m_selection[0]->numLevel()+1);
-		const NumStruct * numS = m_doc->numerations.value(m_selection[0]->numName());
-		if (numS)
-			m_pwidget->numLevelSpin->setMaximum(numS->m_counters.count() + 1);
-		else
-			m_pwidget->numLevelSpin->setMaximum(1);
-		m_doc->flag_NumUpdateRequest = true;
+		for (ParagraphStyle* style : m_selection)
+			style->resetNumName();
 	}
+	else if (!str.isEmpty())
+	{
+		for (ParagraphStyle* style : m_selection)
+			style->setNumName(str);
+	}
+	else
+		return;
 
+	const NumStruct* numS = m_doc->numerations.value(m_selection[0]->numName());
+	const int maximum = qMax(numS ? numS->m_counters.count() + 1 : 1, m_selection[0]->numLevel() + 1);
+	const QSignalBlocker blocker(m_pwidget->numLevelSpin);
+	m_pwidget->numLevelSpin->setMaximum(maximum);
+	m_pwidget->numLevelSpin->QSpinBox::setValue(m_selection[0]->numLevel() + 1);
+	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
 
 void SMParagraphStyle::slotNumNew()
 {
-	QString newName = m_pwidget->numNewLineEdit->text();
-	if (!newName.isEmpty())
+	const QString newName = m_pwidget->numNewLineEdit->text().trimmed();
+	if (newName.isEmpty() || m_selection.isEmpty())
+		return;
+
+	bool inUse = m_doc->numerations.contains(newName) || m_pwidget->numComboBox->findText(newName) >= 0;
+	for (int i = 0; i < m_tmpStyles.count() && !inUse; ++i)
+		inUse = m_tmpStyles[i].numName() == newName;
+	if (inUse)
 	{
-		for (int i = 0; i < m_selection.count(); ++i)
-			m_selection[i]->setNumName(newName);
-		m_doc->flag_NumUpdateRequest = true;
+		QMessageBox::warning(m_pwidget, tr("Numbering sequence"), tr("This sequence name is already in use."));
+		return;
 	}
 
+	for (ParagraphStyle* style : m_selection)
+		style->setNumName(newName);
+	m_pwidget->selectNewNumeration(newName);
+	m_pwidget->numNewLineEdit->clear();
+	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
 
ns2-independent-numbering-defaults-v1.02.patch (1,297 bytes)   
Index: scribus/ui/smtextstyles.cpp
===================================================================
--- scribus/ui/smtextstyles.cpp	(revision 27940)
+++ scribus/ui/smtextstyles.cpp	(working copy)
@@ -908,9 +908,32 @@
 		}
 		else if (index == 3) // Numbered List
 		{
-			m_selection[i]->setHasDropCap(false);
-			m_selection[i]->setHasBullet(false);
-			m_selection[i]->setHasNum(true);
+			ParagraphStyle* style = m_selection[i];
+			if (!style->hasNum() && style->numName().isEmpty())
+			{
+				const auto* parent = dynamic_cast<const ParagraphStyle*>(style->parentStyle());
+				if (!parent || !parent->hasNum())
+				{
+					const QString base = tr("Numbering %1").arg(style->name());
+					QString name = base;
+					int suffix = 2;
+					bool inUse;
+					do
+					{
+						inUse = m_doc->numerations.contains(name);
+						for (int j = 0; j < m_tmpStyles.count() && !inUse; ++j)
+							inUse = m_tmpStyles[j].numName() == name;
+						if (inUse)
+							name = QStringLiteral("%1 (%2)").arg(base).arg(suffix++);
+					} while (inUse);
+					style->setNumName(name);
+					if (m_selection.count() == 1)
+						m_pwidget->selectNewNumeration(name);
+				}
+			}
+			style->setHasDropCap(false);
+			style->setHasBullet(false);
+			style->setHasNum(true);
 		}
 		else // No effect
 		{
ns3-pending-hierarchy-levels-v1.02.patch (5,113 bytes)   
Index: scribus/ui/smpstylewidget.cpp
===================================================================
--- scribus/ui/smpstylewidget.cpp	(revision 27940)
+++ scribus/ui/smpstylewidget.cpp	(working copy)
@@ -321,12 +321,8 @@
 			numComboBox->setParentItem(0);
 		numFormatCombo->setCurrentFormat((NumFormat) pstyle->numFormat());
 		numFormatCombo->setParentFormat((NumFormat) parent->numFormat());
-		numLevelSpin->setValue(pstyle->numLevel() +1, pstyle->isInhNumLevel());
-		NumStruct * numS = m_Doc->numerations.value(pstyle->numName());
-		if (numS)
-			numLevelSpin->setMaximum(numS->m_counters.count()+1);
-		else
-			numLevelSpin->setMaximum(1);
+		numLevelSpin->setMaximum(numberingLevelMaximum(pstyle->numName(), pstyles));
+		numLevelSpin->setValue(pstyle->numLevel() + 1, pstyle->isInhNumLevel());
 		numLevelSpin->setParentValue(parent->numLevel()+1);
 		numPrefix->setText(pstyle->numPrefix());
 		setWidgetBoldFont(numPrefixLabel, !pstyle->isInhNumPrefix());
@@ -370,12 +366,8 @@
 		numComboBox->setCurrentItem(numComboBox->findText(numName));
 		numNewLineEdit->clear();
 		numFormatCombo->setCurrentFormat((NumFormat) pstyle->numFormat());
-		numLevelSpin->setValue(pstyle->numLevel()+1);
-		NumStruct * numS = m_Doc->numerations.value(pstyle->numName());
-		if (numS)
-			numLevelSpin->setMaximum(numS->m_counters.count()+1);
-		else
-			numLevelSpin->setMaximum(1);
+		numLevelSpin->setMaximum(numberingLevelMaximum(pstyle->numName(), pstyles));
+		numLevelSpin->setValue(pstyle->numLevel() + 1);
 		numPrefix->setText(pstyle->numPrefix());
 		setWidgetBoldFont(numPrefixLabel, false);
 		numSuffix->setText(pstyle->numSuffix());
@@ -999,6 +991,18 @@
 	numComboBox->setCurrentIndex(index);
 }
 
+int SMPStyleWidget::numberingLevelMaximum(const QString& name, const QList<ParagraphStyle>& styles) const
+{
+	const NumStruct* numS = m_Doc->numerations.value(name);
+	int maximum = numS ? numS->m_counters.count() + 1 : 1;
+	for (const ParagraphStyle& style : styles)
+	{
+		if (style.hasNum() && style.numName() == name)
+			maximum = qMax(maximum, style.numLevel() + 2);
+	}
+	return maximum;
+}
+
 void SMPStyleWidget::fillNumRestartCombo()
 {
 	numRestartCombo->clear();
Index: scribus/ui/smpstylewidget.h
===================================================================
--- scribus/ui/smpstylewidget.h	(revision 27940)
+++ scribus/ui/smpstylewidget.h	(working copy)
@@ -51,6 +51,7 @@
 	void fillBulletStrEditCombo();
 	void fillNumerationsCombo(const QList<ParagraphStyle>* pendingStyles = nullptr);
 	void selectNewNumeration(const QString& name);
+	int numberingLevelMaximum(const QString& name, const QList<ParagraphStyle>& styles) const;
 	void fillNumRestartCombo();
 	void fillPECombo();
 	void setParagraphEffect(int);
Index: scribus/ui/smtextstyles.cpp
===================================================================
--- scribus/ui/smtextstyles.cpp	(revision 27940)
+++ scribus/ui/smtextstyles.cpp	(working copy)
@@ -943,6 +943,8 @@
 		}
 	}
 
+	if (index == 3)
+		updateNumLevelRange();
 	slotSelectionDirty();
 }
 
@@ -1071,11 +1073,7 @@
 	else
 		return;
 
-	const NumStruct* numS = m_doc->numerations.value(m_selection[0]->numName());
-	const int maximum = qMax(numS ? numS->m_counters.count() + 1 : 1, m_selection[0]->numLevel() + 1);
-	const QSignalBlocker blocker(m_pwidget->numLevelSpin);
-	m_pwidget->numLevelSpin->setMaximum(maximum);
-	m_pwidget->numLevelSpin->QSpinBox::setValue(m_selection[0]->numLevel() + 1);
+	updateNumLevelRange();
 	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
@@ -1099,10 +1097,31 @@
 		style->setNumName(newName);
 	m_pwidget->selectNewNumeration(newName);
 	m_pwidget->numNewLineEdit->clear();
+	updateNumLevelRange();
 	m_doc->flag_NumUpdateRequest = true;
 	slotSelectionDirty();
 }
 
+void SMParagraphStyle::updateNumLevelRange()
+{
+	if (m_selection.isEmpty())
+		return;
+
+	const QString& name = m_selection[0]->numName();
+	const NumStruct* numS = m_doc->numerations.value(name);
+	int maximum = numS ? numS->m_counters.count() + 1 : 1;
+	for (int i = 0; i < m_tmpStyles.count(); ++i)
+	{
+		const ParagraphStyle& style = m_tmpStyles[i];
+		if (style.hasNum() && style.numName() == name)
+			maximum = qMax(maximum, style.numLevel() + 2);
+	}
+	maximum = qMax(maximum, m_selection[0]->numLevel() + 1);
+	const QSignalBlocker blocker(m_pwidget->numLevelSpin);
+	m_pwidget->numLevelSpin->setMaximum(maximum);
+	m_pwidget->numLevelSpin->QSpinBox::setValue(m_selection[0]->numLevel() + 1);
+}
+
 void SMParagraphStyle::slotSelectionDirty()
 {
 	if (m_selectionIsDirty)
@@ -1144,6 +1163,7 @@
 	if (level == 0)
 		slotNumHigher(false);
 
+	updateNumLevelRange();
 	slotSelectionDirty();
 }
 
Index: scribus/ui/smtextstyles.h
===================================================================
--- scribus/ui/smtextstyles.h	(revision 27940)
+++ scribus/ui/smtextstyles.h	(working copy)
@@ -67,6 +67,7 @@
 	void removeConnections();
 	void updateStyleList();
 	void reloadTmpStyles();
+	void updateNumLevelRange();
 	QList<CharStyle> getCharStyles() const;
 
 private slots:

Issue History

Date Modified Username Field Change
2026-11-04 11:04 buttar New Issue
2026-11-04 11:04 buttar Tag Attached: #please_test
2026-11-04 11:04 buttar File Added: numbering-sequence-defaults-and-style-manager-v1.06.patch
2026-11-04 11:04 buttar File Added: sequence-ui-ux-improvement.png
2026-11-04 11:04 buttar File Added: add-new-sequence.png
2026-11-05 03:40 buttar Note Added: 0054651
2026-11-05 03:40 buttar File Added: numering-continue-across-styles.png
2026-11-05 03:40 buttar File Added: old-doc-numbering-continues-across-para-styles.sla
2026-11-05 06:32 buttar Note Added: 0054652
2026-11-05 06:32 buttar File Added: ns1-numbering-sequence-ui-clarity-v1.02.patch
2026-11-05 06:32 buttar File Added: ns2-independent-numbering-defaults-v1.02.patch
2026-11-05 06:32 buttar File Added: ns3-pending-hierarchy-levels-v1.02.patch
2026-11-05 11:23 ale Note Edited: 0054652