| Summary: | UI: Edit -> "Compare Document" greyed out for read-only documents | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Charles <c> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | normal | CC: | cno, michael.stahl, sberg.fun |
| Priority: | medium | ||
| Version: | 3.5.7.2 release | ||
| Hardware: | Other | ||
| OS: | Linux (All) | ||
| Whiteboard: | BSA | ||
| Crash report or crash signature: | Regression By: | ||
|
Description
Charles
2013-06-15 08:35:20 UTC
Hi Charles, Thanks for reporting, but I do not see the bug or idea for enhancing. What happens when you do a "Edit > Compare Document"? The currenct document is edited. How should that be done on a read-only file ?? Best - Cor One use case is to display the difference between two archived documents, archived in the sense that both are kept "for the record", and not to be changed. Same behavior with Windows system if we set Read-only attributes within file properties from Explorer. Perhaps that could be an enhancement request? Converting this to an enhancement request would be OK with me. If there is any action I should take, please advise. @sbergman: didn't I see a message in one of the release notes that editing read only documents was added ? That "Edit - Compare Document..." is disabled for read-only documents is due to ReadOnlyDoc = FALSE in the SfxInt32Item CompareDocuments SID_DOCUMENT_COMPARE entry in sfx2/sdi/sfx.sdi. It was that way already "since the beginning," <http://cgit.freedesktop.org/libreoffice/core/commit/?id=fd069bee7e57ad529c3c0974559fd2d84ec3151a> "initial import" (and entries in sfx.sdi got later reshuffled with <http://cgit.freedesktop.org/libreoffice/core/commit/?id=94bb4bf8a4b2fc5f1a782de6edbc824faa81e6f0> "#98405#: prepare items and slots for new recording," but that left the value intact). Changing that to ReadOnlyDoc = TRUE would enable "Edit - Compare Document..." for read-only documents, but I have no idea whether that would be a welcome fix or whether the current state is "a feature, not a bug." the Compare Document feature will modify the opened document by inserting Change Tracking information. Every part of the UI that allows editing an open document is disabled in read-only mode. the "editing read only documents" mentioned in comment #5 refers to switching a file which is in a location where the user has insufficient permissions to write from read-only mode to read-write mode without annoying dialogs (and then asking for a different location when the user saves the document), which is applicable in this case: if you want to use the Compare Document feature, just click the Edit button in the toolbar, just like for every other editing operation. thus i would say this is working as designed, and not a bug. as per explanation of Michael |