Kaydet (Commit) f987cc29 authored tarafından Caolán McNamara's avatar Caolán McNamara

tdf#71737: save allows links in illustration index, but load doesn't

since illustration index links were initially implemented by

commit 2c10d784
Date:   Tue Jul 16 15:49:44 2013 +0200

    fdo#39904, n#825976: implement hyperlinks for Illustrations index

    (cherry picked from commit 8bb2c7f1)

Change-Id: I679fb9c40cd5dc55a5d546ef7c533faf9de2e483
Reviewed-on: https://gerrit.libreoffice.org/45967Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
(cherry picked from commit 523da0bf)
Reviewed-on: https://gerrit.libreoffice.org/46108Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a2d8f15f
......@@ -63,7 +63,7 @@ SvXMLImportContextRef XMLIndexIllustrationSourceContext::CreateChildContext(
aLevelNameTableMap,
XML_TOKEN_INVALID, // no outline-level attr
aLevelStylePropNameTableMap,
aAllowedTokenTypesTable);
aIllustrationAllowedTokenTypesTable);
}
else
{
......
......@@ -432,6 +432,18 @@ const SvXMLEnumMapEntry<sal_uInt16>* aLevelNameTableMap = nullptr;
const sal_Char* aLevelStylePropNameTableMap[] =
{ nullptr, "ParaStyleLevel1", nullptr };
const bool aIllustrationAllowedTokenTypesTable[] =
{
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,
true, // XML_TOK_INDEX_TYPE_LINK_START,
true, // XML_TOK_INDEX_TYPE_LINK_END,
false // XML_TOK_INDEX_TYPE_BIBLIOGRAPHY
};
const bool aAllowedTokenTypesTable[] =
{
true, // XML_TOK_INDEX_TYPE_ENTRY_TEXT =
......
......@@ -56,6 +56,7 @@ 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[];
......
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