Bug 101796 - Table as Autotext does not contain the table template informations
Summary: Table as Autotext does not contain the table template informations
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.0.alpha0+
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Table-Styles AutoText
  Show dependency treegraph
 
Reported: 2016-08-30 13:44 UTC by Regina Henschel
Modified: 2018-11-06 14:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Contains a table designed with template "BandedRowsPurple" (10.15 KB, application/vnd.oasis.opendocument.text)
2016-08-30 13:44 UTC, Regina Henschel
Details
Generated Autotext (4.61 KB, application/zip)
2016-08-30 13:46 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-08-30 13:44:08 UTC
Created attachment 127079 [details]
Contains a table designed with template "BandedRowsPurple"

Unzip the attached document and verify, that the table is designed using a table template.

Open the attached document in a current LibreOffice master. Verify, that the table design "BandedRowsPurple" is listed in the Table tab of the Style&Formatting window. Click into the table and verify, that the template is still assigned.
Mark the table and a row before and after the table. Generate an Autotext from it.

Open the Autotext file, which contains this Autotext. With default settings it should be the file "mytexts.bau" in the folder user/autotext.

Unpack this file (it is a simple zip-container). You should see a folder, which has the same name as the shortcut, which you have set, as you have generated the Autotext. Open this folder. You see a ODF file fragment.

Look into the file content.xml. The table does not have an attribute "table:template-name". Look into the file styles.xml. There is no definition for a table template.

Expected behavior: Creating an Autotext keeps all attributes of the source.
Comment 1 Regina Henschel 2016-08-30 13:46:55 UTC
Created attachment 127080 [details]
Generated Autotext

The attached file is the file, which was generated by Version: 5.3.0.0.alpha0+
Build ID: 1e84b23839d96068c862e746c9162db79d2c8c62
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-08-25_05:49:25
Locale: de-DE (de_DE); Calc: group
following the described steps.
Comment 2 Yousuf Philips (jay) (retired) 2016-09-03 14:46:18 UTC
Confirmed by creating an autotext of the table and then inserting the created autotext.

Version: 5.3.0.0.alpha0+
Build ID: f7513f0f53f2d074c08610a68fb787bb379c31d4
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-09-02_23:58:05
Locale: en-US (en_US.UTF-8); Calc: group
Comment 3 QA Administrators 2018-06-21 02:51:47 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2018-11-06 14:05:36 UTC
The table template is still missing in Version: 6.2.0.0.alpha1+ (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL