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.
-> thorsten to evaluate this enhancement
Probably just a question of calling http://www.cups.org/documentation.php/api-cups.html#cupsGetDefault if default printer is wanted -
Deleted "Easyhack" from summary.
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.
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
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
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.
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.