Bug 33467 - Mac: Default printer should be taken from the OS when printing
Summary: Mac: Default printer should be taken from the OS when printing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version: 3.3.0 release
Hardware: All Mac OS X (All)
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: EasyHack TopicUi
Keywords: love
Depends on:
Blocks: 42082
  Show dependency treegraph
 
Reported: 2011-01-25 06:52 UTC by Vossman
Modified: 2014-05-22 22:00 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vossman 2011-01-25 06:52:29 UTC
Under Mac OS X, it has an awesome feature that remember my default printer depending on my location (I have two offices each with their own laser printer). NeoOffice was setup to take this default printer choice from the system when I print. That way don't have to change it every time I want to print.

With LO, I end up printing to my unplugged ink jet (where can I change the default???) then I have to delete that job and submit again. Ugh.
Comment 1 Noel Power 2011-01-25 07:24:00 UTC
-> thorsten to evaluate this enhancement
Comment 2 Thorsten Behrens 2011-01-26 04:33:31 UTC
Probably just a question of calling http://www.cups.org/documentation.php/api-cups.html#cupsGetDefault if default printer is wanted -
Comment 3 Florian Reisinger 2012-05-18 09:53:54 UTC
Deleted "Easyhack" from summary.
Comment 4 Thorsten Behrens 2013-09-12 16:14:38 UTC
Apologies for not having gotten around fixing this bug yet; unfortunately in future I'll have even less time at my disposal for this, so I'm freeing up ownership for other volunteers to take over.
Comment 5 Björn Michaelsen 2013-10-04 18:46:04 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 6 Hussian Alamri 2014-05-16 06:30:22 UTC
I want to volunteer and fix this.

Should I use OS X (Cocoa) APIs to find out the default printer? I think LibreOffice aims for cross-platform portability so unlike NeoOffice it doesn't include OS X specific code.

I will attempt fixing it using CUPS, maybe it can be fixed and maybe it is a CUPS limitation. If I can use OS X specific API/syscalls let me know.

One last question, where can I find the code related to printing?

Thank you.

-- Alamri Hussian
Comment 7 Tor Lillqvist 2014-05-16 06:35:08 UTC
Nah, feel free to use OS X -specific code if it helps, obviously putting it inside an appropriare ifdef.

After all, the "U" in "CUPS" stands for "Unix", and our most important platform is Windows (number of users, and especially paying customers;). So it isn't as if using CUPS would be cross-platform either.

I would start looking in vcl. I think printing related functionality already *is* in platform-specific code in vcl.
Comment 8 Hussian Alamri 2014-05-16 06:57:23 UTC
Okay. I'm on it. I'm reading Apple Developer guide regarding printing right now.

git grep NSPrint revealed a number of files that I need to look into.

Is there a top-level view of the source code that can help me see how the source files are connected to one another?

I will reply back with progress updates.

-- Alamri Hussian.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.