Bug 88744 - Visual formula editor does not use system clipboard
Summary: Visual formula editor does not use system clipboard
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: Other All
: medium enhancement
Assignee: ⁨خالد حسني⁩
URL:
Whiteboard: target:24.2.0
Keywords:
Depends on:
Blocks: Formula-Editor Clipboard
  Show dependency treegraph
 
Reported: 2015-01-23 11:13 UTC by OfficeUser
Modified: 2023-09-08 02:25 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice 4.4.0.3 Math.png (9.94 KB, image/png)
2015-01-30 18:39 UTC, OfficeUser
Details
clip0006.avi (2.96 MB, video/x-msvideo)
2015-02-01 11:16 UTC, OfficeUser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OfficeUser 2015-01-23 11:13:22 UTC
- Open the formula editor

- Enter any formula

- Select the whole formula or a part of it

- Open the Edit menu

Note: The Copy item is greyed out.

- Right-click on the selected part of the formula to open the context menu

Note: There is no Copy item available in the context menu while we have a Paste item there.


Version: 4.4.0.1
Build-ID: 1ba9640ddd424f1f535c75bf2b86703770b8cf6f
Gebietsschema: de_DE
Comment 1 OfficeUser 2015-01-23 11:13:46 UTC
Please note that CTRL+c works.
Comment 2 Buovjaga 2015-01-29 19:04:22 UTC
It is not greyed out for me.

What operating system do you use?

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.

Win 7 Pro 64-bit Version: 4.5.0.0.alpha0+
Build ID: 784d069cc1d9f1d6e6a4e543a278376ab483d1eb
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-01-25_23:07:36

Ubuntu 14.10 64-bit Version: 4.5.0.0.alpha0+
Build ID: 784d069cc1d9f1d6e6a4e543a278376ab483d1eb
TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-01-25_23:58:40
Comment 3 OfficeUser 2015-01-30 18:38:39 UTC
(In reply to Beluga from comment #2)
> It is not greyed out for me.

I just have tried master~2015-01-29_23.44.46_LibreOfficeDev_4.5.0.0.alpha0_Win_x86_en-US_de_ar_ja_ru_qtz.msi


This build is NOT able to select the rendered formula or parts of it. Instead this build has old StarOffice behavior where is is only possible to click elements of the formula to navigate to the corresponding part of the formula description language.

So I think you were talking about the menus when selecting parts of the formula description language.

Pleas look at my screen shot of 4.4.0.3. There it is possible to select parts of the rendered formula and there is no Copy item in the context menu.


So we have two problems here:

1.
LibreOffice 4 branch has a new feature where it is possible to select parts of the rendered formula. This feature is missing copy items.

2.
This functions has never founds it's way into 4.5 MASTER. Do we need an additional bug report for it?
Comment 4 OfficeUser 2015-01-30 18:39:24 UTC
Created attachment 112970 [details]
LibreOffice 4.4.0.3 Math.png
Comment 5 OfficeUser 2015-01-30 18:42:38 UTC
Importance set to HIGH because actually we loose functionality with LibO 4.5.
Comment 6 Buovjaga 2015-01-31 07:43:35 UTC
Ok, confirmed with your clarified instructions.
Yeah, I guess you should create a separate report for problem no. 2 and reference it here.
Comment 7 OfficeUser 2015-01-31 12:49:14 UTC
OK.

THIS issue shall now address problem 1.

Problem 2 is now Bug 88975.
Comment 8 V Stuart Foote 2015-01-31 21:45:17 UTC
With core LibreOffice install there is no GUI selection capability within the rendered Formula--some missing extension perhaps?

Seeting NEEDINFO, see bug 88975#c2
Comment 9 OfficeUser 2015-02-01 11:14:59 UTC
(In reply to V Stuart Foote from comment #8)
> With core LibreOffice install there is no GUI selection capability within
> the rendered Formula--some missing extension perhaps?
> 
> Seeting NEEDINFO, see bug 88975#c2

Guys, I am a advanced user and experienced bug reporter since a very long time of the StarOffice derivatives.

I find the advanced formula editor functions (select / CTRL+v / CTRL+v) for the first time in the following final installer:

LibreOffice_4.4.0_Win_x86.msi
+ LibreOffice_4.4.0_Win_x86_helppack_de.msi

I will attach a short video where you can see the feature in action as well as the about dialog and the extension manager.
Comment 10 OfficeUser 2015-02-01 11:16:25 UTC
Created attachment 113018 [details]
clip0006.avi
Comment 11 OfficeUser 2015-02-01 11:18:34 UTC
Typo, correct is:
(select / CTRL+c / CTRL+v)
Comment 12 OfficeUser 2015-02-01 11:19:54 UTC
Additional info:

The functions is also included in the release candidates of 4.4.
Comment 13 Buovjaga 2015-02-01 11:39:23 UTC
I see, the key information is: select by clicking next to the elements and dragging, do not click *on* the elements. I confirm that this works in 4.4, but not in 4.5.
Comment 14 Buovjaga 2015-02-01 11:41:17 UTC
Sorry for the noise: I also confirm that Edit - Copy is greyed out in 4.4.

Win 7 Pro 64-bit, LibO Version: 4.4.0.3
Build ID: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Comment 15 OfficeUser 2015-02-01 12:12:38 UTC
Actual situation:
Context menu is missing: Copy, Paste and Cut items.
Edit menu has greyed out Copy, Paste and Cut items.

Solution:
- Add Copy, Paste and Cut items to context menu.
- Enable currently greyed out Copy, Paste and Cut items inn the Edit menu.
Comment 16 V Stuart Foote 2015-02-01 15:28:17 UTC
The "Visual formula editor" remains an "Experimental" feature. It must be toggled on by enabling experimental features.

Tools -> Options -> Advanced: Optional (unstable) options
  "Enable experimental features" ceckbox

Once activated, formula manipulation in the visual window works.

Confirming the lack of Cut and Copy action buttons from the context menu presented when formula elements are selected with mouse. There is a Paste button that accesses the LibreOffice/system clipboard.

The normal clipboard accelerators are provided within Visual formula editor:

<Ctrl>+x  -- cut
<Ctrl>+c  -- copy
<Ctrl>+v  -- paste

However, there does not seem to be linkage between the system clipboard and the Visual formula editor's clipboard. The Paste button will not paste a Visual formula editor clip/copy!

When not in the experimental Visual formula editor mode, individual elements selected with the formula cursor in the formula window, or multiple elements in the formula command windows can be cut, copied and pasted with system clipboard.

@Tomaž (or Jonas) assume that is the state of things, is there anything further to be added to what is needed?
Comment 17 V Stuart Foote 2015-02-01 16:12:21 UTC Comment hidden (obsolete)
Comment 18 OfficeUser 2015-02-01 19:43:36 UTC Comment hidden (off-topic)
Comment 19 V Stuart Foote 2015-02-01 20:25:36 UTC Comment hidden (off-topic)
Comment 20 Roman Kuznetsov 2018-07-13 20:42:34 UTC Comment hidden (obsolete)
Comment 21 ⁨خالد حسني⁩ 2023-09-07 08:20:49 UTC
The greyed out menu items/toolbar buttons now work (https://gerrit.libreoffice.org/c/core/+/156513). The context menu is probably not important, so I’m ignoring that part (if needed, it should be a separate issue).

The integration with clipboard as an issue, though. One can copy/paste inside the Math, but not to/from clipboard.
Comment 22 Commit Notification 2023-09-08 02:24:59 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3c24177104dfa5b8d68d74bf1735839964e93ba6

tdf#88744: Use real clipboard when inline editing is enabled

It will be available in 24.2.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.