I suggest that 'Print Current Page' be enabled by the user pressing two keys such as Alt+P. Microsoft Word has this useful feature, and I recommend that Writer enable it as well. (I am aware that macros exist to enable this function, but recommend a simpler implementation for the user.)
I think this is an enhancement request. I couldn't find a comment "Print current page", but I agree, that it might be useful. cc: Design-Team
Would this "Print Current Page" action print directly or show the preview first? The shortcut compared to Print (Ctrl+P) is that you don't need to press Alt+G (the mnemonic for "Pa_ges" in the English UI. There is no shortcut for "Print Directly" (but it can be customized), and the alternative to the command envisioned above is "Print Current Page Directly". By the way, this function feels dangerous to me. And if we are going to implement a new command I'm against assigning a default shortcut.
(In reply to Heiko Tietze from comment #2) > Would this "Print Current Page" action print directly or show the preview > first? From my personal user perspective I propose command "Print current Page Directly" that can be assigned to a shortcut (similar with "Print Directly"), but shouldn't be assigned by default.
So let's do it. Could be a nice easy hack.
code pointers: https://design.blog.documentfoundation.org/2018/02/28/easyhacking-all-about-terminology/ An article that illustrates how to add an UNO command for Calc: https://dev.blog.documentfoundation.org/2022/02/23/adding-a-new-uno-command/ For Writer, instead, add the new command to officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu, perhaps .uno:PrintVisiblePagesDirect. officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs contains information on properties used in the .xcu file. core/sw/inc/cmdid.h perhaps FN_PRINT_VISPAGESDIRECT or SID_PRINT_VISPAGESDIRECT (FN for FuNction, SID for Slot ID, either will work) sw/sdi/swriter.sdi sw/sdi/_viewsh.sdi sw/source/uibase/uiview/viewprt.cxx void SwView::ExecutePrint add a case for the chosen command id: sw/inc/viewsh.hxx void GetFirstLastVisPageNumbers (not yet merged, please see https://gerrit.libreoffice.org/c/core/+/132252) sfx2/source/view/viewprn.cxx void SfxViewShell::ExecPrint sw/source/uibase/uiview/viewstat.cxx void SwView::GetState(SfxItemSet &rSet) add a case for the chosen command id: do similar to what is done in sfx2/source/view/viewsh.cxx void SfxViewShell::GetState_Impl for case SID_PRINTDOC and case SID_PRINTDOCDIRECT https://gerrit.libreoffice.org/c/core/+/91605 is an example of two UNO commands added to Writer.
Is anyone working o implement this suggested enhancement?
(In reply to mkassler from comment #6) > Is anyone working o implement this suggested enhancement? No, you can work on it, if you want. If someone was working on it, the Assignee would be set and the status would be Assigned.
I am unable to do this myself, and am hoping that someone else can do this task. A previous poster said it was an 'easy hack' to do.