summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-27 12:11:36 +0100
committerMichael Stahl <mstahl@redhat.com>2015-01-19 22:26:51 +0000
commita4f907edbc1f6ce375bbf71c44733bb85f67a74f (patch)
tree2433f4fbfd7ea42cb3d184ff42de31b526b4f0b7 /sw/source/filter
parentfdff4b60b6d4beabadab15a4fceb60cb84e542d8 (diff)
fdo#84714 ODT import: read <loext:table> inside <draw:custom-shape>
A later version of ODF will hopefully allow <table:table> here as well, but read <loext:table> in the meantime. Change-Id: I42a461e0a6e9eff9387379acbab9660a155ecefe (cherry picked from commit 62391c28fae5099dd1f67c322867933fcb05bc9f) Reviewed-on: https://gerrit.libreoffice.org/13857 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/xml/xmltbli.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index a9a9a50aa73b..34adb0bd7c62 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -105,10 +105,12 @@ static SvXMLTokenMapEntry aTableElemTokenMap[] =
XML_TOK_TABLE_HEADER_COLS },
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMNS, XML_TOK_TABLE_COLS },
{ XML_NAMESPACE_TABLE, XML_TABLE_COLUMN, XML_TOK_TABLE_COL },
+ { XML_NAMESPACE_LO_EXT, XML_TABLE_COLUMN, XML_TOK_TABLE_COL },
{ XML_NAMESPACE_TABLE, XML_TABLE_HEADER_ROWS,
XML_TOK_TABLE_HEADER_ROWS },
{ XML_NAMESPACE_TABLE, XML_TABLE_ROWS, XML_TOK_TABLE_ROWS },
{ XML_NAMESPACE_TABLE, XML_TABLE_ROW, XML_TOK_TABLE_ROW },
+ { XML_NAMESPACE_LO_EXT, XML_TABLE_ROW, XML_TOK_TABLE_ROW },
{ XML_NAMESPACE_OFFICE, XML_DDE_SOURCE,
XML_TOK_OFFICE_DDE_SOURCE },
@@ -968,7 +970,7 @@ SvXMLImportContext *SwXMLTableRowContext_Impl::CreateChildContext(
{
SvXMLImportContext *pContext = 0;
- if( XML_NAMESPACE_TABLE == nPrefix )
+ if( XML_NAMESPACE_TABLE == nPrefix || XML_NAMESPACE_LO_EXT == nPrefix )
{
if( IsXMLToken( rLocalName, XML_TABLE_CELL ) )
{