Kaydet (Commit) f8b59486 authored tarafından Nickson Thanda's avatar Nickson Thanda Kaydeden (comit) Heiko Tietze

tdf#117013 renamed Illustration Index to Table of Figures

Illustration Index has been renamed to Table of Figures
Default category changed from Illustration to Figures

Change-Id: I2c4fbf4036c245ea98cda4e3652c300449abd4b1
Reviewed-on: https://gerrit.libreoffice.org/54372Tested-by: 's avatarJenkins <ci@libreoffice.org>
Tested-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst 14772ae7
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
#define STR_POOLCOLL_TOX_USER9 NC_("STR_POOLCOLL_TOX_USER9", "User Index 9") #define STR_POOLCOLL_TOX_USER9 NC_("STR_POOLCOLL_TOX_USER9", "User Index 9")
#define STR_POOLCOLL_TOX_USER10 NC_("STR_POOLCOLL_TOX_USER10", "User Index 10") #define STR_POOLCOLL_TOX_USER10 NC_("STR_POOLCOLL_TOX_USER10", "User Index 10")
#define STR_POOLCOLL_TOX_CITATION NC_("STR_POOLCOLL_TOX_CITATION", "Citation") #define STR_POOLCOLL_TOX_CITATION NC_("STR_POOLCOLL_TOX_CITATION", "Citation")
#define STR_POOLCOLL_TOX_ILLUSH NC_("STR_POOLCOLL_TOX_ILLUSH", "Illustration Index Heading") #define STR_POOLCOLL_TOX_ILLUSH NC_("STR_POOLCOLL_TOX_ILLUSH", "Figure Index Heading")
#define STR_POOLCOLL_TOX_ILLUS1 NC_("STR_POOLCOLL_TOX_ILLUS1", "Illustration Index 1") #define STR_POOLCOLL_TOX_ILLUS1 NC_("STR_POOLCOLL_TOX_ILLUS1", "Figure Index 1")
#define STR_POOLCOLL_TOX_OBJECTH NC_("STR_POOLCOLL_TOX_OBJECTH", "Object Index Heading") #define STR_POOLCOLL_TOX_OBJECTH NC_("STR_POOLCOLL_TOX_OBJECTH", "Object Index Heading")
#define STR_POOLCOLL_TOX_OBJECT1 NC_("STR_POOLCOLL_TOX_OBJECT1", "Object Index 1") #define STR_POOLCOLL_TOX_OBJECT1 NC_("STR_POOLCOLL_TOX_OBJECT1", "Object Index 1")
#define STR_POOLCOLL_TOX_TABLESH NC_("STR_POOLCOLL_TOX_TABLESH", "Table Index Heading") #define STR_POOLCOLL_TOX_TABLESH NC_("STR_POOLCOLL_TOX_TABLESH", "Table Index Heading")
...@@ -669,7 +669,7 @@ ...@@ -669,7 +669,7 @@
#define STR_TOX_CITATION NC_("STR_TOX_CITATION", "Citation") #define STR_TOX_CITATION NC_("STR_TOX_CITATION", "Citation")
#define STR_TOX_TBL NC_("STR_TOX_TBL", "Index of Tables") #define STR_TOX_TBL NC_("STR_TOX_TBL", "Index of Tables")
#define STR_TOX_OBJ NC_("STR_TOX_OBJ", "Table of Objects") #define STR_TOX_OBJ NC_("STR_TOX_OBJ", "Table of Objects")
#define STR_TOX_ILL NC_("STR_TOX_ILL", "Illustration Index") #define STR_TOX_ILL NC_("STR_TOX_ILL", "Table of Figures")
#define STR_LINK_CTRL_CLICK NC_("STR_LINK_CTRL_CLICK", "%s-Click to follow link") #define STR_LINK_CTRL_CLICK NC_("STR_LINK_CTRL_CLICK", "%s-Click to follow link")
#define STR_LINK_CLICK NC_("STR_LINK_CLICK", "Click to follow link") #define STR_LINK_CLICK NC_("STR_LINK_CLICK", "Click to follow link")
// SubType DocInfo // SubType DocInfo
......
...@@ -132,7 +132,7 @@ class CheckStyle(unittest.TestCase): ...@@ -132,7 +132,7 @@ class CheckStyle(unittest.TestCase):
def test_ParagraphFamily(self): def test_ParagraphFamily(self):
xDoc = CheckStyle._uno.openEmptyWriterDoc() xDoc = CheckStyle._uno.openEmptyWriterDoc()
xParaStyles = xDoc.StyleFamilies["ParagraphStyles"] xParaStyles = xDoc.StyleFamilies["ParagraphStyles"]
vEmptyDocStyles = ['Standard', 'Heading', 'Text body', 'List', 'Caption', 'Index', 'First line indent', 'Hanging indent', 'Text body indent', 'Salutation', 'Signature', 'List Indent', 'Marginalia', 'Heading 1', 'Heading 2', 'Heading 3', 'Heading 4', 'Heading 5', 'Heading 6', 'Heading 7', 'Heading 8', 'Heading 9', 'Heading 10', 'Title', 'Subtitle', 'Numbering 1 Start', 'Numbering 1', 'Numbering 1 End', 'Numbering 1 Cont.', 'Numbering 2 Start', 'Numbering 2', 'Numbering 2 End', 'Numbering 2 Cont.', 'Numbering 3 Start', 'Numbering 3', 'Numbering 3 End', 'Numbering 3 Cont.', 'Numbering 4 Start', 'Numbering 4', 'Numbering 4 End', 'Numbering 4 Cont.', 'Numbering 5 Start', 'Numbering 5', 'Numbering 5 End', 'Numbering 5 Cont.', 'List 1 Start', 'List 1', 'List 1 End', 'List 1 Cont.', 'List 2 Start', 'List 2', 'List 2 End', 'List 2 Cont.', 'List 3 Start', 'List 3', 'List 3 End', 'List 3 Cont.', 'List 4 Start', 'List 4', 'List 4 End', 'List 4 Cont.', 'List 5 Start', 'List 5', 'List 5 End', 'List 5 Cont.', 'Index Heading', 'Index 1', 'Index 2', 'Index 3', 'Index Separator', 'Contents Heading', 'Contents 1', 'Contents 2', 'Contents 3', 'Contents 4', 'Contents 5', 'User Index Heading', 'User Index 1', 'User Index 2', 'User Index 3', 'User Index 4', 'User Index 5', 'Contents 6', 'Contents 7', 'Contents 8', 'Contents 9', 'Contents 10', 'Illustration Index Heading', 'Illustration Index 1', 'Object index heading', 'Object index 1', 'Table index heading', 'Table index 1', 'Bibliography Heading', 'Bibliography 1', 'User Index 6', 'User Index 7', 'User Index 8', 'User Index 9', 'User Index 10', 'Header', 'Header left', 'Header right', 'Footer', 'Footer left', 'Footer right', 'Table Contents', 'Table Heading', 'Illustration', 'Table', 'Text','Figure', 'Frame contents', 'Footnote', 'Addressee', 'Sender', 'Endnote', 'Drawing', 'Quotations', 'Preformatted Text', 'Horizontal Line', 'List Contents', 'List Heading'] vEmptyDocStyles = ['Standard', 'Heading', 'Text body', 'List', 'Caption', 'Index', 'First line indent', 'Hanging indent', 'Text body indent', 'Salutation', 'Signature', 'List Indent', 'Marginalia', 'Heading 1', 'Heading 2', 'Heading 3', 'Heading 4', 'Heading 5', 'Heading 6', 'Heading 7', 'Heading 8', 'Heading 9', 'Heading 10', 'Title', 'Subtitle', 'Numbering 1 Start', 'Numbering 1', 'Numbering 1 End', 'Numbering 1 Cont.', 'Numbering 2 Start', 'Numbering 2', 'Numbering 2 End', 'Numbering 2 Cont.', 'Numbering 3 Start', 'Numbering 3', 'Numbering 3 End', 'Numbering 3 Cont.', 'Numbering 4 Start', 'Numbering 4', 'Numbering 4 End', 'Numbering 4 Cont.', 'Numbering 5 Start', 'Numbering 5', 'Numbering 5 End', 'Numbering 5 Cont.', 'List 1 Start', 'List 1', 'List 1 End', 'List 1 Cont.', 'List 2 Start', 'List 2', 'List 2 End', 'List 2 Cont.', 'List 3 Start', 'List 3', 'List 3 End', 'List 3 Cont.', 'List 4 Start', 'List 4', 'List 4 End', 'List 4 Cont.', 'List 5 Start', 'List 5', 'List 5 End', 'List 5 Cont.', 'Index Heading', 'Index 1', 'Index 2', 'Index 3', 'Index Separator', 'Contents Heading', 'Contents 1', 'Contents 2', 'Contents 3', 'Contents 4', 'Contents 5', 'User Index Heading', 'User Index 1', 'User Index 2', 'User Index 3', 'User Index 4', 'User Index 5', 'Contents 6', 'Contents 7', 'Contents 8', 'Contents 9', 'Contents 10', 'Figure Index Heading', 'Figure Index 1', 'Object index heading', 'Object index 1', 'Table index heading', 'Table index 1', 'Bibliography Heading', 'Bibliography 1', 'User Index 6', 'User Index 7', 'User Index 8', 'User Index 9', 'User Index 10', 'Header', 'Header left', 'Header right', 'Footer', 'Footer left', 'Footer right', 'Table Contents', 'Table Heading', 'Illustration', 'Table', 'Text','Figure', 'Frame contents', 'Footnote', 'Addressee', 'Sender', 'Endnote', 'Drawing', 'Quotations', 'Preformatted Text', 'Horizontal Line', 'List Contents', 'List Heading']
self.__test_StyleFamily(xParaStyles, vEmptyDocStyles, "SwXStyle") self.__test_StyleFamily(xParaStyles, vEmptyDocStyles, "SwXStyle")
self.__test_StyleFamilyIndex(xParaStyles, vEmptyDocStyles, "SwXStyle") self.__test_StyleFamilyIndex(xParaStyles, vEmptyDocStyles, "SwXStyle")
self.__test_StyleFamilyInsert(xDoc, xParaStyles, vEmptyDocStyles, "com.sun.star.style.ParagraphStyle", "com.sun.star.style.CharacterStyle") self.__test_StyleFamilyInsert(xDoc, xParaStyles, vEmptyDocStyles, "com.sun.star.style.ParagraphStyle", "com.sun.star.style.CharacterStyle")
......
...@@ -3432,7 +3432,7 @@ class TextPortionEnumerationTest(unittest.TestCase): ...@@ -3432,7 +3432,7 @@ class TextPortionEnumerationTest(unittest.TestCase):
xIndex3 = xIndexes["Illustration Index1"] xIndex3 = xIndexes["Illustration Index1"]
self.assertTrue(self.eq(xIndex3.MetadataReference, self.assertTrue(self.eq(xIndex3.MetadataReference,
StringPair("content.xml", "idII")), "idII") StringPair("content.xml", "idII")), "idII")
xIndex3s = xSections["Illustration Index1"] xIndex3s = xSections["Table of Figures1"]
self.assertTrue(self.eq(xIndex3s.MetadataReference, self.assertTrue(self.eq(xIndex3s.MetadataReference,
StringPair("content.xml", "idII")), "idII") StringPair("content.xml", "idII")), "idII")
xIndex4 = xIndexes["Index of Tables1"] xIndex4 = xIndexes["Index of Tables1"]
......
...@@ -192,8 +192,8 @@ const struct SwTableEntry RegisterProgNameTable [] = ...@@ -192,8 +192,8 @@ const struct SwTableEntry RegisterProgNameTable [] =
ENTRY( "Contents 8" ), ENTRY( "Contents 8" ),
ENTRY( "Contents 9" ), ENTRY( "Contents 9" ),
ENTRY( "Contents 10" ), ENTRY( "Contents 10" ),
ENTRY( "Illustration Index Heading" ), ENTRY( "Figure Index Heading" ),
ENTRY( "Illustration Index 1" ), ENTRY( "Figure Index 1" ),
ENTRY( "Object index heading" ), ENTRY( "Object index heading" ),
ENTRY( "Object index 1" ), ENTRY( "Object index 1" ),
ENTRY( "Table index heading" ), ENTRY( "Table index heading" ),
......
...@@ -1344,7 +1344,7 @@ IMPL_LINK(SwTOXSelectTabPage, TOXTypeHdl, ListBox&, rBox, void) ...@@ -1344,7 +1344,7 @@ IMPL_LINK(SwTOXSelectTabPage, TOXTypeHdl, ListBox&, rBox, void)
if( nType & TO_ILLUSTRATION ) if( nType & TO_ILLUSTRATION )
{ {
m_pCaptionSequenceLB->SelectEntry( SwStyleNameMapper::GetUIName( m_pCaptionSequenceLB->SelectEntry( SwStyleNameMapper::GetUIName(
RES_POOLCOLL_LABEL_ABB, OUString() )); RES_POOLCOLL_LABEL_FIGURE, OUString() ));
} }
else if( nType & TO_TABLE ) else if( nType & TO_TABLE )
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<col id="1">2</col> <col id="1">2</col>
</row> </row>
<row> <row>
<col id="0" translatable="yes" context="tocindexpage|liststore1">Illustration Index</col> <col id="0" translatable="yes" context="tocindexpage|liststore1">Table of Figures</col>
<col id="1">4</col> <col id="1">4</col>
</row> </row>
<row> <row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment