I strongly desire the menu option "save and close document"
to reduce the amount of open documents at the same time.
I is very annoying that I always have to do two actions for that,
first save document and then close document.
How can I convince the developers to realise this option,
is there an address where I can reach them about that?
"Save and close document" strongly desired menu option
-
- Posts: 11
- Joined: Sun Jul 02, 2017 10:01 pm
"Save and close document" strongly desired menu option
Open Office 4.1.3 insralled om Windows 10 on Acer Aspire
Re: "SAVE AND CLOSE DOCUMENT" STRONGLY DESIRED MENU OPTION
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
Re: "SAVE AND CLOSE DOCUMENT" STRONGLY DESIRED MENU OPTION
While you're waiting for this to be implemented (and it might never be), a suggestion for an alternative is to use Window -> Close Window (Ctrl+W)
If the active document/window has changed, then you will be prompted to save the document.
Technically it is still two steps, but you can do it with a single keystroke (ctrl+w) and then a single mouse click.
You might be able to get/write a macro to perform these steps, so that it becomes a single keystroke, but I suspect you might find it takes more time to research and write the code than to use what's currently available.
If the active document/window has changed, then you will be prompted to save the document.
Technically it is still two steps, but you can do it with a single keystroke (ctrl+w) and then a single mouse click.
You might be able to get/write a macro to perform these steps, so that it becomes a single keystroke, but I suspect you might find it takes more time to research and write the code than to use what's currently available.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
Re: "SAVE AND CLOSE DOCUMENT" STRONGLY DESIRED MENU OPTION
Or Ctrl-W followed by Enter will work as Save is the default option on the dialog that opens when closing a document and the document is unsaved.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
Re: "SAVE AND CLOSE DOCUMENT" STRONGLY DESIRED MENU OPTION
...and this task is achievable by a very simple macro. You can write it based on the API functions, and the you can assign the macro to a new menu item, to a new toolbar icon, and/or to a new (unused) hotkey.
Code: Select all
Sub SaveAndClose
oDoc = ThisComponent
'xray oDoc
if oDoc.hasLocation then
oDoc.Store()
oDoc.Close(true)
else
oFrame = oDoc.CurrentController.Frame
oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
oDispatcher.executeDispatch(oFrame, ".uno:Save", "", 0, Array())
if oDoc.hasLocation then
oDoc.Store()
oDoc.Close(true)
end if
end if
End Sub
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
- Hagar Delest
- Moderator
- Posts: 32628
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: "SAVE AND CLOSE DOCUMENT" STRONGLY DESIRED MENU OPTION
+1.Zizi64 wrote:...and this task is achievable by a very simple macro.
That's what I've done for my interface. I've made a macro that updates the fields and ToC before saving and closing.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Re: "Save and close document" strongly desired menu option
The simplest way to add this macro to Writer is to do the following:
1 Record a trivially simple macro to do something - anything. Save it with the name Fred (you cannot have spaces). This will be your example
2 Go Tools > Macros > Organise Macros > OpenOffice Basic. Navigate to find Fred - mine is in My Macros > Standard > Module 1.
3 Highlight Fred > click Edit.
4 Now delete all of Fred between Sub Fred ... End Sub, and replace it with Zizi's Sub SaveAndClose ... End Sub.
5 Save
You now have the macro SaveAndClose installed. Now add it as an icon on the toolbar, or add it to a menu. You might need to restart AOO.
See [Tutorial] How to record a macro (and Regular Expressions) for more details.
If the problem is solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
1 Record a trivially simple macro to do something - anything. Save it with the name Fred (you cannot have spaces). This will be your example
2 Go Tools > Macros > Organise Macros > OpenOffice Basic. Navigate to find Fred - mine is in My Macros > Standard > Module 1.
3 Highlight Fred > click Edit.
4 Now delete all of Fred between Sub Fred ... End Sub, and replace it with Zizi's Sub SaveAndClose ... End Sub.
5 Save
You now have the macro SaveAndClose installed. Now add it as an icon on the toolbar, or add it to a menu. You might need to restart AOO.
See [Tutorial] How to record a macro (and Regular Expressions) for more details.
If the problem is solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
LO 6.4.4.2, Windows 10 Home 64 bit
See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.
Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.
Remember: Always save your Writer files as .odt files. - see here for the many reasons why.