<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Textbox: User defined character style not "saved" properly when applied to text in text box (an automatic-style is created instead)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111921">111921</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Textbox: User defined character style not "saved" properly when applied to text in text box (an automatic-style is created instead)
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aleclerc@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
Hi!
When creating a textbox, and applying a character style to the text in the
textbox, the style is applied, but "copied" since Libre Office will create an
"automatic-styles" in content.xml instead of using the one describe in
styles.xml.
It would have been intended to have the proper "style-name" from styles.xml
appear in the "span" node instead of an "automatic-style" which is not even
indicating it's parent-style-name.
The other solution would be to at least have the parent-style-name set properly
in the automatic-style for such a case. So there is a way to know the textbox
characters are using a user-defined style.
(This "bug" prevents external softwares analyzing content.xml to understand
that there is a logical relation between the style applied on the text in the
text-box and the style sheet.)
Thank you very much and have a nice day!
Steps to Reproduce:
1. Create a character style with "MyCharacterStyle" with bold.
2. Create a textbox (not a text frame) and add "ABC" as text.
3. Select the text in the textbox and apply the character style
"MyCharacterStyle".
4. Save, close, open the document. The style is no more selected.
5. Open the source file in content.xml, you see the span uses an
automatic-style.
6. Go check the automatic-style, the parent-style-name is not even given.
Actual Results:
in content.xml you see the span node containing the "ABC" text has an
automatic-style instead of "MyCharacterStyle". The automatic-style also does
not have any parent-style-name.
Expected Results:
The span node containing the "ABC" text should use the "MyCharacterStyle"
defined in styles.xml.
If an automatic-style must be created, the parent-style-name should make a
reference to "MyCharacterStyle" from styles.xml.
Reproducible: Always
User Profile Reset: No
Additional Info:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>