<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 - EDIT: protect user from deleting reference source"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141747">141747</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>EDIT: protect user from deleting reference source
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3.0 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>christianw_lehmann@arcor.de
</td>
</tr></table>
<p>
<div>
<pre>Description:
Deletion of an object (a heading etc.) referenced at some point of the document
leads to the replacement of the reference fields by the advice "Error:
Reference source not found". These messages are of little help to the user: He
may overlook them before printing the document; and if he detects them in time,
it is hard to find out what the intended target (Writer calls it "source") of
the reference was. The user should better be supported in his preference to
avoid these errors. Therefore:
User is applying a deletion operation to some string.
Before LibreOffice executes the deletion, it checks whether the string to be
deleted contains one or more objects to which references are found (elsewhere)
in the document. If so, these references are marked, and the user is given a
warning something like: "You are deleting [referenced object]. There are
references to it in the document!" The user can then modify the marked
references.
This is just a basic service. A further commodity would be:
"Do you want to redirect these references?"
If 'yes', the user gets engaged in the same procedure that is invoked by
right-clicking on a reference and choosing "Edit fields". He can then select a
new target. Once he gives "Okay", the existent references to the object about
to be deleted are redirected.
Then the user can proceed with his deletion operation.
Steps to Reproduce:
1. Mark a string in the document that contains a referenced object.
2. Delete it.
Actual Results:
It is deleted, and references to it are replaced by "Error: Reference source
not found".
Expected Results:
It should not be deleted without a warning.
Reproducible: Always
User Profile Reset: No
Additional Info:
I realize that his presupposes a function which identifies all the references
to a given target, so they can either be marked in the document or be replaced
by something else. Such a facility would be useful, anyway: The user may want
to find all the references to a given target in order to do something about
them. If such a function were available, it could also be offered in the "Find
and Replace" dialog.</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>