[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-06-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

--- Comment #9 from mkass...@internode.net ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-06-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

--- Comment #8 from mkass...@internode.net ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

--- Comment #7 from Buovjaga  ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-06-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

--- Comment #6 from mkass...@internode.net ---
Is anyone working o implement this suggested enhancement?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

Heiko Tietze  changed:

   What|Removed |Added

   Keywords|needsDevAdvice  |difficultyMedium, skillCpp,
   ||topicUI

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

--- Comment #5 from Jim Raykowski  ---
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 )
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 147791] Add UNO command to "Print Current Page Directly"

2022-03-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=147791

Heiko Tietze  changed:

   What|Removed |Added

 CC|libreoffice-ux-advise@lists |heiko.tietze@documentfounda
   |.freedesktop.org|tion.org,
   ||mentoring@documentfoundatio
   ||n.org
   Keywords|needsUXEval |easyHack, needsDevAdvice
 Status|UNCONFIRMED |NEW
 Blocks|98259   |86899
 Ever confirmed|0   |1
Summary|Enabling Print Current Page |Add UNO command to "Print
   |by pressing a shortcut key  |Current Page Directly"

--- Comment #4 from Heiko Tietze  ---
So let's do it. Could be a nice easy hack.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=86899
[Bug 86899] [META] Requests for the addition of UNO commands
https://bugs.documentfoundation.org/show_bug.cgi?id=98259
[Bug 98259] [META] Keyboard shortcuts and accelerators bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.