Bug 406627 - Allow the user to define default settings in print dialog
Summary: Allow the user to define default settings in print dialog
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 17.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-17 14:15 UTC by Wolfgang.Hopp
Modified: 2020-11-13 10:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang.Hopp 2019-04-17 14:15:30 UTC
SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-04-17 18:28:04 UTC
I'm afraid there's no information in this bug report. Please see https://community.kde.org/Get_Involved/Bug_Reporting
Comment 2 Wolfgang.Hopp 2019-04-18 07:32:19 UTC
Hallo Nate,

There was a link to suggestions for improvements to KATE. Since I am very happy with the editor I use it a lot. Unfortunately the printing cannot be parameterized permanently. I would like to define page margins etc. once and for all so that I don't have to constantly redefine them.

That was my request from Germany. My English is unfortunately poor. And I didn't find a bug, I have KATE running without errors. 
Maybe you can bring up my request when it comes to the further development of KATE. Thank you.

Translated with www.DeepL.com/Translator

Regards
Wolfgang

-----Urspr�ngliche Nachricht-----
Von:      Nate Graham <bugzilla_noreply@kde.org>
An:       Wolfgang.Hopp@123jederzeit.de <Wolfgang.Hopp@123jederzeit.de>
Gesendet: Mittwoch, 17. April 2019 20:28
Betreff:  [kate] [Bug 406627] UBUNTU 18.04 - Kate - would be nice to have more control in parameter for printouts
> https://bugs.kde.org/show_bug.cgi?id=406627

> Nate Graham <nate@kde.org> changed:

>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          Resolution|---                         |WAITINGFORINFO
>                  CC|                            |nate@kde.org
>              Status|REPORTED                    |NEEDSINFO

> --- Comment #1 from Nate Graham <nate@kde.org> ---
> I'm afraid there's no information in this bug report. Please see
> https://community.kde.org/Get_Involved/Bug_Reporting
Comment 3 Nate Graham 2019-04-18 13:10:18 UTC
But we don't know what suggestion you want. "have more control in parameter for printouts" doesn't tell us anything. More control how? What is the problem you currently have?
Comment 4 Wolfgang.Hopp 2019-04-18 13:25:16 UTC
Thanks for your request.

Unfortunately  the  printing  cannot be parameterized permanently in a
setup config...

I would like to define page margins etc. once and for all
so that I don't have to constantly redefine them for each printout.

The   default   margins  should  be  defined  by user at  a  defined  mask  or
config-file.

Did you understand now?

Regards

-----Urspr�ngliche Nachricht-----
Von:      Nate Graham <bugzilla_noreply@kde.org>
An:       Wolfgang.Hopp@123jederzeit.de <Wolfgang.Hopp@123jederzeit.de>
Gesendet: Donnerstag, 18. April 2019 15:10
Betreff:  [kate] [Bug 406627] UBUNTU 18.04 - Kate - would be nice to have more control in parameter for printouts
> https://bugs.kde.org/show_bug.cgi?id=406627

> --- Comment #3 from Nate Graham <nate@kde.org> ---
> But we don't know what suggestion you want. "have more control in parameter for
> printouts" doesn't tell us anything. More control how? What is the problem you
> currently have?
Comment 5 Nate Graham 2019-04-18 19:14:50 UTC
Thanks, that's helpful. Can you tell me which settings you would like to define defaults for? Just the printer margins? Or any others?
Comment 6 Wolfgang.Hopp 2019-04-19 15:04:07 UTC
Hallo Nate,

thanks for asking: for me are important:
  page margins (left, right, top, down)
  page orientation

Also    would   it   be   nice   to  have  one  more  placeholder  for
header-line or  footer-line like %y, %U, %p, ...

additional variable %PageCount
----- >    for example page %p of %PageCount
printed as for example page 3 of 6

Regards
Wolfgang

-----Urspr�ngliche Nachricht-----
Von:      Nate Graham <bugzilla_noreply@kde.org>
An:       Wolfgang.Hopp@123jederzeit.de <Wolfgang.Hopp@123jederzeit.de>
Gesendet: Donnerstag, 18. April 2019 21:14
Betreff:  [kate] [Bug 406627] Allow the user to define default settings in print dialog
> https://bugs.kde.org/show_bug.cgi?id=406627

> Nate Graham <nate@kde.org> changed:

>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Summary|UBUNTU 18.04 - Kate - would |Allow the user to define
>                    |be nice to have more        |default settings in print
>                    |control in parameter for    |dialog
>                    |printouts                   |

> --- Comment #5 from Nate Graham <nate@kde.org> ---
> Thanks, that's helpful. Can you tell me which settings you would like to define
> defaults for? Just the printer margins? Or any others?
Comment 7 Nate Graham 2019-04-24 17:09:30 UTC
Thanks for the info.
Comment 8 Dominik Haumann 2019-04-27 06:44:04 UTC
This was once fixed by some extra code in Kate's printing dialog. It was removed with the transition to Qt5 since it was supposed to be fixed in Qt5, but it seems the margins are still not remembered. Maybe we should search for this removal by me in the git repo.
Comment 9 Dominik Haumann 2019-04-27 07:02:57 UTC
1aa12bace62fffbcad357623842a0fc01607b3c0

The above once was my fix. Maybe we have to add this again? Anyone wants to test?
Comment 10 Lothar 2019-04-27 07:05:44 UTC
How is that handled by other applications?
Have the feeling it should be done on some "global" level.
At least as long as some document is in the "recent used list", it should remember the print settings.
Comment 11 Wolfgang.Hopp 2019-04-27 07:28:19 UTC
   >>At least as long as some document is in the "recent used list", it
   should remember the print settings.<<

   Sounds like a smart solution ...
   regards Wolfgang

   *** Was ist, darf sein. Was sein darf, kann sich verändern. ***Am
   27.04.19, 09:05, Lothar <bugzilla_noreply@kde.org> schrieb:

     https://bugs.kde.org/show_bug.cgi?id=406627

     Lothar <loh.tar@googlemail.com> changed:

     What |Removed |Added
     ----------------------------------------------------------------------------
     CC| |loh.tar@googlemail.com

     --- Comment #10 from Lothar <loh.tar@googlemail.com> ---
     How is that handled by other applications?
     Have the feeling it should be done on some "global" level.
     At least as long as some document is in the "recent used list", it
     should
     remember the print settings.

     --
     You are receiving this mail because:
     You reported the bug.
Comment 12 Paul 2019-04-27 08:12:48 UTC
Yeh...

I reported "[Regression] Document print margins not persistent." as a bug back in 2017-08-19 https://bugs.kde.org/show_bug.cgi?id=383697 

It would be nice to see some movement on this... :)
Comment 13 Dominik Haumann 2019-04-27 09:37:24 UTC
I would not save print settings per document, since it's very intransparent to users.

Best would be to save it per printer per application.

My patch at that time saved per application (KTextEditor only), but not per printer --> if you have multiple printers, it likely is not always what you want either.

Related: https://stackoverflow.com/a/14979437/2224190
Comment 14 Dominik Haumann 2019-04-27 13:27:40 UTC
Comment #9 should have had this link:
https://cgit.kde.org/kate.git/commit/?id=1aa12bace62fffbcad357623842a0fc01607b3c0
Comment 15 Dominik Haumann 2019-04-28 07:25:21 UTC
See also: bug 383697
Comment 16 Justin Zobel 2020-11-13 03:36:33 UTC
The referenced but comment "Fixed for KDE Frameworks 5.61." leads me to believe this may have been resolved.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 17 Wolfgang.Hopp 2020-11-13 10:24:01 UTC
Hallo Justin,

in the next weeks I have no time to test Kate again.
Sorry but I use now gedit and Ubuntu 20.14 - last year so Kate was not practicable
for me - I had to define for every printout extra my print parameters.
Kate was not able to store them permanently.

Thanks for supporting Linux and thanks for your deployment to try help me.

Regards
Wolfgang

-----Urspr�ngliche Nachricht-----
Von:      Justin Zobel <bugzilla_noreply@kde.org>
An:       Wolfgang.Hopp@123jederzeit.de <Wolfgang.Hopp@123jederzeit.de>
Gesendet: Freitag, 13. November 2020 04:36
Betreff:  [kate] [Bug 406627] Allow the user to define default settings in print dialog
> https://bugs.kde.org/show_bug.cgi?id=406627

> Justin Zobel <justin.zobel@gmail.com> changed:

>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          Resolution|---                         |WAITINGFORINFO
>              Status|REPORTED                    |NEEDSINFO
>                  CC|                            |justin.zobel@gmail.com

> --- Comment #16 from Justin Zobel <justin.zobel@gmail.com> ---
> The referenced but comment "Fixed for KDE Frameworks 5.61." leads me to believe
> this may have been resolved.

> Can you please test and confirm if this issue is still occurring or if this bug
> report can be marked as resolved. I'm setting status to "needsinfo" pending
> your response, please change back to "reported" or "resolved" when you respond,
> thanks.
Comment 18 Paul 2020-11-13 10:53:39 UTC
Using:

Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Kate Version: 20.04.2

I can confirm that kate does now store the print settings. 

I assume subject to: "... patch at that time saved per application (KTextEditor only), but not per printer..." ref comment #13

(I don't have multiple printers on this machine with which to test.)