diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-07 09:35:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-13 09:09:00 +0100 |
commit | 6ca6d6ac912588a8f62d7e6b668ebec333752ebc (patch) | |
tree | 25d45bf9fb20092195f6f17a5def078e460f0e60 /xmloff | |
parent | 5c3317897b2ddd9f7144917685a4da2242fd1696 (diff) |
Related: tdf#71737: allows links in more indexes
tables, objects and user-defined
Change-Id: I081446832ee86453227f4838552c88fd9e5cf75f
Reviewed-on: https://gerrit.libreoffice.org/46326
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexIllustrationSourceContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLIndexTemplateContext.cxx | 14 | ||||
-rw-r--r-- | xmloff/source/text/XMLIndexTemplateContext.hxx | 1 |
3 files changed, 2 insertions, 15 deletions
diff --git a/xmloff/source/text/XMLIndexIllustrationSourceContext.cxx b/xmloff/source/text/XMLIndexIllustrationSourceContext.cxx index 4e79914d4856..87fa6219b570 100644 --- a/xmloff/source/text/XMLIndexIllustrationSourceContext.cxx +++ b/xmloff/source/text/XMLIndexIllustrationSourceContext.cxx @@ -63,7 +63,7 @@ SvXMLImportContextRef XMLIndexIllustrationSourceContext::CreateChildContext( aLevelNameTableMap, XML_TOKEN_INVALID, // no outline-level attr aLevelStylePropNameTableMap, - aIllustrationAllowedTokenTypesTable); + aAllowedTokenTypesTable); } else { diff --git a/xmloff/source/text/XMLIndexTemplateContext.cxx b/xmloff/source/text/XMLIndexTemplateContext.cxx index b538860afeeb..17d718fc6cdf 100644 --- a/xmloff/source/text/XMLIndexTemplateContext.cxx +++ b/xmloff/source/text/XMLIndexTemplateContext.cxx @@ -432,7 +432,7 @@ const SvXMLEnumMapEntry<sal_uInt16>* aLevelNameTableMap = nullptr; const sal_Char* aLevelStylePropNameTableMap[] = { nullptr, "ParaStyleLevel1", nullptr }; -const bool aIllustrationAllowedTokenTypesTable[] = +const bool aAllowedTokenTypesTable[] = { true, // XML_TOK_INDEX_TYPE_ENTRY_TEXT = true, // XML_TOK_INDEX_TYPE_TAB_STOP, @@ -444,16 +444,4 @@ const bool aIllustrationAllowedTokenTypesTable[] = false // XML_TOK_INDEX_TYPE_BIBLIOGRAPHY }; -const bool aAllowedTokenTypesTable[] = -{ - true, // XML_TOK_INDEX_TYPE_ENTRY_TEXT = - true, // XML_TOK_INDEX_TYPE_TAB_STOP, - true, // XML_TOK_INDEX_TYPE_TEXT, - true, // XML_TOK_INDEX_TYPE_PAGE_NUMBER, - true, // XML_TOK_INDEX_TYPE_CHAPTER, - false, // XML_TOK_INDEX_TYPE_LINK_START, - false, // XML_TOK_INDEX_TYPE_LINK_END, - false // XML_TOK_INDEX_TYPE_BIBLIOGRAPHY -}; - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/XMLIndexTemplateContext.hxx b/xmloff/source/text/XMLIndexTemplateContext.hxx index b2907ef1efb3..03562ee91541 100644 --- a/xmloff/source/text/XMLIndexTemplateContext.hxx +++ b/xmloff/source/text/XMLIndexTemplateContext.hxx @@ -56,7 +56,6 @@ extern const bool aAllowedTokenTypesBibliography[]; // table, illustration and object tables: extern const SvXMLEnumMapEntry<sal_uInt16>* aLevelNameTableMap; // NULL: no outline-level extern const sal_Char* aLevelStylePropNameTableMap[]; -extern const bool aIllustrationAllowedTokenTypesTable[]; extern const bool aAllowedTokenTypesTable[]; |