Its a hack when you switch from MS-Office to LibreOffice due to any reason. One thing thats really fascinating to copy the path of current document. I could not find default implementation of it. If it is there please share in comments section.
After exploring the forum.openoffice.org and some other forums, I found following macro that do the job with some limitations:
Goto Tools -> Macros -> Organize Macros -> LibreOffice Basic...
In displayed dialog, create a new one and write below code:
Sub CopyFilePath
dim document as object
dim dispatcher as object
dim oDoc, oVC, Mark, var
oDoc = ThisComponent
oVC = oDoc.CurrentController.getViewCursor
Mark = oDoc.Text.createTextCursorByRange(oVC)
oVC.collapseToEnd
var = ThisComponent.getURL()
oVC.String = var
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array())
oVC.String = ""
oVC.gotoRange(Mark,false)
End Sub
- Save it and assign a key to it by using following steps:
- Open Customize dialog by Tool -> Customize
- Select Keyboard tab
- Select available key from Shortcut Keys component
- Select your macro from Category component under LibreOffice Macros
- Click on Modify button.
Thats done. Now use your shortcut key to copy the file path of current document without any hassle.
PS: Above code is posted by JohnV at forum.openoffice.org.
You may like
Weblogic Tips & Tricks li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: decimal; }
How many ti
How to implement Web Application Basic Authentication in WeblogicYou can easily setup the Basic Authentication in Weblogic by using this post. I assume you are havi
How to setup internet proxy on Gradle, Maven, NPM. Linux Bash, Ubuntu, Chrome on LinuxThis article explains the ways to set internet proxy for various tools and OS such as Gradle, Maven
Display and Print Web page long formatted text taken from the textarea
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: decimal; }
How many tim
Blog Tools Comparison based on J2EEAll tool listed below are Java/JEE based.
Apache Roller
Features: Apache Roller is the
op
NoMachine NX Tricks
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: decimal; }
NX Client is
Emoticon Emoticon