Summary: | Toggle on/off text highlighting like in MS Word | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | yokesh <yokeshsm> |
Component: | UI | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | low | CC: | barta, fitojb, suokunlong |
Version: | Inherited From OOo | ||
Hardware: | x86 (IA32) | ||
OS: | All | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=64490 https://bugs.freedesktop.org/show_bug.cgi?id=81231 |
||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
IMAGE-1
IMAGE-2 IMAGE-3 IMAGE-4 |
Description
yokesh
2014-07-10 17:49:45 UTC
Created attachment 102568 [details]
IMAGE-1
Created attachment 102569 [details]
IMAGE-2
Created attachment 102570 [details]
IMAGE-3
Created attachment 102571 [details]
IMAGE-4
Ok, I understand what you mean. I set status NEW to this enhancement request. In the meantime you can use this macro and assign it to a keyboard shortcut or to a toolbar custom button. Sub RemoveTextHighlighting dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:BackColor", "", 0, Array()) End Sub P.S. check your Caps Lock key :-) (In reply to comment #5) Hi tommy, I tried your macro but it does not work. So I have done some change to your code, now it works: Sub RemoveTextHighlighting Dim document as object Dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") REM We need to define the args for the dispatcher. without this the backcolor will not change. Dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).name = "BackColor" args1(0).value = -1 dispatcher.executeDispatch(document, ".uno:BackColor", "", 0,args1()) End Sub Thanks. @Kevin strange. I confirm my macro works and does remove "text highlighting" under Win7x64 using LibO 4.2.5.2. your macro version works fine too. would you please tell me your O/S and LibO version? I'm curious about the reason it doesn't work in your computer. (In reply to comment #7) > would you please tell me your O/S and LibO version? I'm curious about the > reason it doesn't work in your computer. Windows XP SP3, LibreOffice 4.3.0.2. thanks. I confirm macro works in 4.2.5.2 on WinXP 32bit. I'll try later the 4.3.0.2 release and see if there's some basic issue in the new branch, and if confirmed I'll open a separate report about it. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.