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.
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("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "VersionComment"
args1(0).Value = ""
dispatcher.executeDispatch(document, ".uno:Save", "", 0, args1())
end sub
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.
You may deactivate ☐ Always save a version on closing (if you don’t like it).