Ask Your Question

How do I set a keyboard shortcut to saving a version? [closed]

asked 2012-04-20 07:41:38 +0100

TJ Meneses gravatar image

updated 2012-10-16 12:54:51 +0100

manj_k gravatar image

Simple question. I'd like to do something like Ctrl+Alt+S (or really, just using Ctrl+S itself) to save a version, so that I don't have to a) manually use the dialog box every time or b) Close->Save using the "automatic" versioning feature in LO (can you hear the sarcasm dripping from my quotes?).

Pointing me in the right direction would be great; gimme step-by-step instructions, and I'll mark you as the correct answer.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-15 23:25:09.044511

1 Answer

Sort by » oldest newest most voted

answered 2012-04-20 11:34:56 +0100

manj_k gravatar image

updated 2012-04-20 15:28:46 +0100

In addition to → How does the "always save version when closing" under File -> Versions work?:

Saving a version w/o dialog box

You might add this (recorded) macro to My Macros, and assign it to a shortcut key (e.g.: Ctrl+T):

sub new_version
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("")

rem ----------------------------------------------------------------------
dim args1(0) as new
args1(0).Name = "VersionComment"
args1(0).Value = ""

dispatcher.executeDispatch(document, ".uno:Save", "", 0, args1())

end sub

image description

That will enter Date and time and Saved by, w/o any comment. The dialog box will not be opened, only the 'save' progress bar will appear.

image description

You may deactivate ☐ Always save a version on closing (if you don't like it). ;)

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-04-20 07:41:38 +0100

Seen: 625 times

Last updated: Apr 20 '12