Bug 164318 - Make it possible to open the Edit Field dialog in RO documents
Summary: Make it possible to open the Edit Field dialog in RO documents
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0 inReleaseNotes:25.8
Keywords:
Depends on:
Blocks: Fields-Dialog
  Show dependency treegraph
 
Reported: 2024-12-13 13:29 UTC by Gabor Kelemen (allotropia)
Modified: 2025-04-04 19:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (9.15 KB, application/vnd.oasis.opendocument.text)
2024-12-13 13:29 UTC, Gabor Kelemen (allotropia)
Details
RW document: Edit Fields dialog is usable, user fields value can be reused (100.33 KB, image/png)
2024-12-13 13:35 UTC, Gabor Kelemen (allotropia)
Details
RO document: Field value is only copyable as a whole, and only if it is already inserted (132.34 KB, image/png)
2024-12-13 13:36 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-12-13 13:29:12 UTC
Created attachment 198100 [details]
Example file from Writer

If a document contains fields and is opened as read only, it is not possible to open any of the Fields / Edit field dialog, and if there are user fields in the document, it is not possible to easily copy their content, for example to use in another document.

1. Open attached document, it has a user field and Open as Read-only attribute set
2. Press Ctrl-F2, or try to double click on the field 
-> not working.

Of course a bit of challenge is that you can't really insert new fields into an RO document from the Fields dialog, so at least the Insert button should be still kept disabled in this situation.

Version: 25.2.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: a49bea44b7989afd850e9a4a56c2c8a0d1a1ff37
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2024-12-13 13:35:05 UTC
Created attachment 198101 [details]
RW document: Edit Fields dialog is usable, user fields value can be reused
Comment 2 Gabor Kelemen (allotropia) 2024-12-13 13:36:04 UTC
Created attachment 198102 [details]
RO document: Field value is only copyable as a whole, and only if it is already inserted
Comment 3 Commit Notification 2025-01-24 14:38:15 UTC
Oliver Specht committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a45428d4bdf733718bad2d87412eb0932c90d27e

tdf#164318 Add dialog to show content of fields in readonly documents

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2025-01-24 14:38:18 UTC
Gabor Kelemen committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/b3d44a635cf6f1dde13883262a259c0d73e020a0

tdf#164318 Add help page for the new Copy Field Content dialog
Comment 5 BogdanB 2025-01-25 10:33:50 UTC
Confirm with
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f24bb80e45c1693db33b47ee695436b2c8d5fbcd
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

It is already solved?
Comment 6 Commit Notification 2025-03-27 04:09:02 UTC
Oliver Specht committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/eaac1bfe008e70fd9be59bbcd4b5cfa9c0f8f115

tdf#164318 Call copy field dialog on double click

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2025-04-04 19:16:22 UTC
Gabor Kelemen committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c947c4625b225b0dabce3e9514d52188c89d69b9

tdf#164318 (related) Fix translation context in Copy field content dialog

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.