summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousuf Philips <philipz85@hotmail.com>2017-12-05 13:54:29 +0400
committerYousuf Philips <philipz85@hotmail.com>2017-12-16 12:47:26 +0100
commitaf44ee8991691b9a971901b3de36fa0e1253eac9 (patch)
tree3956f9b19b10f74daf397df1b879a14e113923f6
parent95efc0b875f3fd3152da051f27ded52e048151bf (diff)
tdf#106988 New names for the new numbering styles
Change-Id: Ibc93aaa552652d61ac49652cf0ac5fcb68b48a12 Reviewed-on: https://gerrit.libreoffice.org/37995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 74c527abc0f3b5aa0fa179401ad05a79dc889973) Reviewed-on: https://gerrit.libreoffice.org/46147 Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu8
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphProperties.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXParagraph.java2
-rw-r--r--sw/inc/poolfmt.hxx10
-rw-r--r--sw/inc/strings.hrc10
-rw-r--r--sw/qa/python/check_styles.py2
-rw-r--r--sw/source/core/doc/SwStyleNameMapper.cxx10
-rw-r--r--sw/source/ui/vba/vbastyles.cxx10
-rw-r--r--sw/uiconfig/sglobal/menubar/menubar.xml4
-rw-r--r--sw/uiconfig/swriter/menubar/menubar.xml4
-rw-r--r--sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui4
-rw-r--r--sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui4
12 files changed, 38 insertions, 38 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index fb87ee73b526..67877a3b5539 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -3121,7 +3121,7 @@
<value>11</value>
</prop>
</node>
- <node oor:name=".uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles" oor:op="replace">
+ <node oor:name=".uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Number List</value>
</prop>
@@ -3134,13 +3134,13 @@
<value xml:lang="en-US">Number List Style</value>
</prop>
<prop oor:name="TargetURL" oor:type="xs:string">
- <value>.uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles</value>
+ <value>.uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
<value>11</value>
</prop>
</node>
- <node oor:name=".uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles" oor:op="replace">
+ <node oor:name=".uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Roman List</value>
</prop>
@@ -3153,7 +3153,7 @@
<value xml:lang="en-US">Roman List Style</value>
</prop>
<prop oor:name="TargetURL" oor:type="xs:string">
- <value>.uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles</value>
+ <value>.uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
<value>11</value>
diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
index 570e7b307ca6..d1f134b9f258 100644
--- a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
+++ b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java
@@ -102,16 +102,16 @@ import com.sun.star.xml.AttributeData;
public class _ParagraphProperties extends MultiPropertyTest {
/**
* Custom tester for numbering style properties. Switches between
- * 'Numbering 1' and 'Numbering 2' styles.
+ * 'Numbering 123' and 'Numbering ABC' styles.
*/
protected PropertyTester NumberingStyleTester = new PropertyTester() {
@Override
protected Object getNewValue(String propName, Object oldValue)
throws java.lang.IllegalArgumentException {
- if ((oldValue != null) && (oldValue.equals("Numbering 1"))) {
- return "Numbering 2";
+ if ((oldValue != null) && (oldValue.equals("Numbering 123"))) {
+ return "Numbering ABC";
} else {
- return "Numbering 1";
+ return "Numbering 123";
}
}
};
diff --git a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
index 165e270454ef..c32d63b28527 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXParagraph.java
@@ -196,7 +196,7 @@ public class SwXParagraph extends TestCase {
portP = UnoRuntime.queryInterface(XPropertySet.class, port);
paraP = UnoRuntime.queryInterface(XPropertySet.class, para);
- paraP.setPropertyValue("NumberingStyleName","Numbering 4");
+ paraP.setPropertyValue("NumberingStyleName","Numbering IVX");
nRules = paraP.getPropertyValue("NumberingRules");
diff --git a/sw/inc/poolfmt.hxx b/sw/inc/poolfmt.hxx
index 2ef34a0a9fa5..025ea9fc0b89 100644
--- a/sw/inc/poolfmt.hxx
+++ b/sw/inc/poolfmt.hxx
@@ -187,11 +187,11 @@ RES_POOLPAGE_END
enum RES_POOL_NUMRULE_TYPE
{
RES_POOLNUMRULE_BEGIN = POOLGRP_NUMRULE,
-RES_POOLNUMRULE_NUM1 = RES_POOLNUMRULE_BEGIN, ///< NumRule Numbering 1.
-RES_POOLNUMRULE_NUM2, ///< NumRule Numbering 2.
-RES_POOLNUMRULE_NUM3, ///< NumRule Numbering 3.
-RES_POOLNUMRULE_NUM4, ///< NumRule Numbering 4.
-RES_POOLNUMRULE_NUM5, ///< NumRule Numbering 5.
+RES_POOLNUMRULE_NUM1 = RES_POOLNUMRULE_BEGIN, ///< NumRule Numbering 123.
+RES_POOLNUMRULE_NUM2, ///< NumRule Numbering ABC.
+RES_POOLNUMRULE_NUM3, ///< NumRule Numbering abc.
+RES_POOLNUMRULE_NUM4, ///< NumRule Numbering IVX.
+RES_POOLNUMRULE_NUM5, ///< NumRule Numbering ivx.
RES_POOLNUMRULE_BUL1, ///< NumRule Bullets 1.
RES_POOLNUMRULE_BUL2, ///< NumRule Bullets 2.
RES_POOLNUMRULE_BUL3, ///< NumRule Bullets 3.
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index a0d2b3ae3bc4..b6bd848e7b57 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -196,11 +196,11 @@
#define STR_POOLPAGE_ENDNOTE NC_("STR_POOLPAGE_ENDNOTE", "Endnote")
#define STR_POOLPAGE_LANDSCAPE NC_("STR_POOLPAGE_LANDSCAPE", "Landscape")
// Numbering rules
-#define STR_POOLNUMRULE_NUM1 NC_("STR_POOLNUMRULE_NUM1", "Numbering 1")
-#define STR_POOLNUMRULE_NUM2 NC_("STR_POOLNUMRULE_NUM2", "Numbering 2")
-#define STR_POOLNUMRULE_NUM3 NC_("STR_POOLNUMRULE_NUM3", "Numbering 3")
-#define STR_POOLNUMRULE_NUM4 NC_("STR_POOLNUMRULE_NUM4", "Numbering 4")
-#define STR_POOLNUMRULE_NUM5 NC_("STR_POOLNUMRULE_NUM5", "Numbering 5")
+#define STR_POOLNUMRULE_NUM1 NC_("STR_POOLNUMRULE_NUM1", "Numbering 123")
+#define STR_POOLNUMRULE_NUM2 NC_("STR_POOLNUMRULE_NUM2", "Numbering ABC")
+#define STR_POOLNUMRULE_NUM3 NC_("STR_POOLNUMRULE_NUM3", "Numbering abc")
+#define STR_POOLNUMRULE_NUM4 NC_("STR_POOLNUMRULE_NUM4", "Numbering IVX")
+#define STR_POOLNUMRULE_NUM5 NC_("STR_POOLNUMRULE_NUM5", "Numbering ivx")
#define STR_POOLNUMRULE_BUL1 NC_("STR_POOLNUMRULE_BUL1", "List 1")
#define STR_POOLNUMRULE_BUL2 NC_("STR_POOLNUMRULE_BUL2", "List 2")
#define STR_POOLNUMRULE_BUL3 NC_("STR_POOLNUMRULE_BUL3", "List 3")
diff --git a/sw/qa/python/check_styles.py b/sw/qa/python/check_styles.py
index 29fddf6433d6..a7a665ab7c96 100644
--- a/sw/qa/python/check_styles.py
+++ b/sw/qa/python/check_styles.py
@@ -159,7 +159,7 @@ class CheckStyle(unittest.TestCase):
def test_NumberingFamily(self):
xDoc = CheckStyle._uno.openEmptyWriterDoc()
xNumberingStyles = xDoc.StyleFamilies["NumberingStyles"]
- vEmptyDocStyles = ['List 1', 'List 2', 'List 3', 'List 4', 'List 5', 'Numbering 1', 'Numbering 2', 'Numbering 3', 'Numbering 4', 'Numbering 5']
+ vEmptyDocStyles = ['List 1', 'List 2', 'List 3', 'List 4', 'List 5', 'Numbering 123', 'Numbering ABC', 'Numbering abc', 'Numbering IVX', 'Numbering ivx']
self.__test_StyleFamily(xNumberingStyles, vEmptyDocStyles, "SwXStyle")
self.__test_StyleFamilyIndex(xNumberingStyles, vEmptyDocStyles, "SwXStyle")
self.__test_StyleFamilyInsert(xDoc, xNumberingStyles, vEmptyDocStyles, "com.sun.star.style.NumberingStyle", "com.sun.star.style.CharacterStyle")
diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx b/sw/source/core/doc/SwStyleNameMapper.cxx
index 367fb68d7a6b..c3d3faf55c73 100644
--- a/sw/source/core/doc/SwStyleNameMapper.cxx
+++ b/sw/source/core/doc/SwStyleNameMapper.cxx
@@ -289,11 +289,11 @@ const struct SwTableEntry PageDescProgNameTable [] =
const struct SwTableEntry NumRuleProgNameTable [] =
{
- ENTRY( "Numbering 1" ), // STR_POOLNUMRULE_PRGM_NUM1
- ENTRY( "Numbering 2" ),
- ENTRY( "Numbering 3" ),
- ENTRY( "Numbering 4" ),
- ENTRY( "Numbering 5" ),
+ ENTRY( "Numbering 123" ), // STR_POOLNUMRULE_PRGM_NUM1
+ ENTRY( "Numbering ABC" ),
+ ENTRY( "Numbering abc" ),
+ ENTRY( "Numbering IVX" ),
+ ENTRY( "Numbering ivx" ),
ENTRY( "List 1" ),
ENTRY( "List 2" ),
ENTRY( "List 3" ),
diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx
index d2af12485e99..e24bb18ed567 100644
--- a/sw/source/ui/vba/vbastyles.cxx
+++ b/sw/source/ui/vba/vbastyles.cxx
@@ -111,11 +111,11 @@ static const BuiltinStyleTable aBuiltinStyleTable[] =
{ word::WdBuiltinStyle::wdStyleListContinue3, "", word::WdStyleType::wdStyleTypeParagraph },
{ word::WdBuiltinStyle::wdStyleListContinue4, "", word::WdStyleType::wdStyleTypeParagraph },
{ word::WdBuiltinStyle::wdStyleListContinue5, "", word::WdStyleType::wdStyleTypeParagraph },
- { word::WdBuiltinStyle::wdStyleListNumber, "Numbering 1", word::WdStyleType::wdStyleTypeList },
- { word::WdBuiltinStyle::wdStyleListNumber2, "Numbering 2", word::WdStyleType::wdStyleTypeList },
- { word::WdBuiltinStyle::wdStyleListNumber3, "Numbering 3", word::WdStyleType::wdStyleTypeList },
- { word::WdBuiltinStyle::wdStyleListNumber4, "Numbering 4", word::WdStyleType::wdStyleTypeList },
- { word::WdBuiltinStyle::wdStyleListNumber5, "Numbering 5", word::WdStyleType::wdStyleTypeList },
+ { word::WdBuiltinStyle::wdStyleListNumber, "Numbering 123", word::WdStyleType::wdStyleTypeList },
+ { word::WdBuiltinStyle::wdStyleListNumber2, "Numbering ABC", word::WdStyleType::wdStyleTypeList },
+ { word::WdBuiltinStyle::wdStyleListNumber3, "Numbering abc", word::WdStyleType::wdStyleTypeList },
+ { word::WdBuiltinStyle::wdStyleListNumber4, "Numbering IVX", word::WdStyleType::wdStyleTypeList },
+ { word::WdBuiltinStyle::wdStyleListNumber5, "Numbering ivx", word::WdStyleType::wdStyleTypeList },
{ word::WdBuiltinStyle::wdStyleMacroText, "", word::WdStyleType::wdStyleTypeParagraph },
{ word::WdBuiltinStyle::wdStyleMessageHeader, "", word::WdStyleType::wdStyleTypeParagraph },
{ word::WdBuiltinStyle::wdStyleNavPane, "", word::WdStyleType::wdStyleTypeParagraph },
diff --git a/sw/uiconfig/sglobal/menubar/menubar.xml b/sw/uiconfig/sglobal/menubar/menubar.xml
index 19b9c3fabbaf..614025b0fa5d 100644
--- a/sw/uiconfig/sglobal/menubar/menubar.xml
+++ b/sw/uiconfig/sglobal/menubar/menubar.xml
@@ -584,8 +584,8 @@
<menu:menuitem menu:id=".uno:StyleApply?Style:string=Source Text&amp;FamilyName:string=CharacterStyles" menu:style="radio"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:StyleApply?Style:string=List 1&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
- <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
- <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:EditStyle"/>
<menu:menuitem menu:id=".uno:StyleUpdateByExample"/>
diff --git a/sw/uiconfig/swriter/menubar/menubar.xml b/sw/uiconfig/swriter/menubar/menubar.xml
index d8ec9694ecc1..a9dabcc18a6a 100644
--- a/sw/uiconfig/swriter/menubar/menubar.xml
+++ b/sw/uiconfig/swriter/menubar/menubar.xml
@@ -548,8 +548,8 @@
<menu:menuitem menu:id=".uno:StyleApply?Style:string=Source Text&amp;FamilyName:string=CharacterStyles" menu:style="radio"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:StyleApply?Style:string=List 1&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
- <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
- <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
+ <menu:menuitem menu:id=".uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles" menu:style="radio"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:EditStyle"/>
<menu:menuitem menu:id=".uno:StyleUpdateByExample"/>
diff --git a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui
index d25830d46375..19aa46e2d0f3 100644
--- a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui
+++ b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui
@@ -3387,14 +3387,14 @@
<object class="GtkMenuItem" id="numbering1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="action_name">.uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles</property>
+ <property name="action_name">.uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="numbering4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="action_name">.uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles</property>
+ <property name="action_name">.uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles</property>
</object>
</child>
<child>
diff --git a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
index d60614713586..61b2bba98653 100644
--- a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
+++ b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui
@@ -3305,14 +3305,14 @@
<object class="GtkMenuItem" id="numbering1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="action_name">.uno:StyleApply?Style:string=Numbering 1&amp;FamilyName:string=NumberingStyles</property>
+ <property name="action_name">.uno:StyleApply?Style:string=Numbering 123&amp;FamilyName:string=NumberingStyles</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="numbering4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="action_name">.uno:StyleApply?Style:string=Numbering 4&amp;FamilyName:string=NumberingStyles</property>
+ <property name="action_name">.uno:StyleApply?Style:string=Numbering IVX&amp;FamilyName:string=NumberingStyles</property>
</object>
</child>
<child>