Bug 101796 - Table as Autotext does not contain the table template informations
Summary: Table as Autotext does not contain the table template informations
Status: RESOLVED WORKSFORME
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: 2021-11-07 13:19 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
Comment 5 QA Administrators 2019-11-07 03:34:48 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2019-11-07 11:33:19 UTC
The error still exists as described. In addition I have noticed, that a simple copy&page of the table has the same error, that the relationship to the table-template is lost.

Tested with Version: 6.4.0.0.alpha1+ (x64)
Build ID: 7c6226bee72805db7f0e567ca9f06c786a7d0da2
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded
Comment 7 QA Administrators 2021-11-07 04:22:27 UTC Comment hidden (obsolete)
Comment 8 Regina Henschel 2021-11-07 13:19:50 UTC
The autotext contains the template name now. Tested with Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: e1646284ef5a0367c770fa27299db64eedc30cbb
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL