https://bugs.documentfoundation.org/show_bug.cgi?id=141747

            Bug ID: 141747
           Summary: EDIT: protect user from deleting reference source
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: christianw_lehm...@arcor.de

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to