Printing support is added to the repository (as you have seen / will see). Kudos to Sean for tackling such a big bear. I''ll work on adding the two dialogs to bigdemo later unless Sean tackles it first. Roy
Roy Sutton wrote:> Printing support is added to the repository (as you have seen / will > see). Kudos to Sean for tackling such a big bear. >I''ll second that. It''s a tremendous bit of work. I hadn''t hoped that we would tackle this for some time yet. The patches you sent yday compiled cleanly on OS X PPC. I don''t have a printer I can test the output with, but save-to-PDF works, and jobs are getting enqueued correctly. There are couple of issues in the sample, but I think you are aware of these already. Just in case: 1) PageSetupDialog allocator undefined (printing.rb line 165) 2) undefined method ''get_last_error'' for Wx::Printer:Class (printing.rb 136) 3) the stray ampersand Thanks again Sean Alex
[Note: I see Sean proposed a patch already similar to what I''m posting here. This one has his changes and some others] Alex Fenton wrote:> There are couple of issues in the sample, but I think you are aware of > these already. Just in case: > > 1) PageSetupDialog allocator undefined (printing.rb line 165) >Hmm, I didn''t see this one. How did you get that to happen so I can reproduce it? Or did I fix it in the checked in sample already?> 2) undefined method ''get_last_error'' for Wx::Printer:Class (printing.rb 136) >I missed this completely. See attached patches. I also had to apply several enum typemaps to fix problems with wrapping.> 3) the stray ampersand >Already fixed in checked in version> Thanks again Sean >-------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: typedefs.i.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/9e75856f/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: RubyConstants.i.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/9e75856f/attachment-0001.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wxPrinter.h.patch Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20061017/9e75856f/attachment-0002.pl
Roy Sutton wrote:> [Note: I see Sean proposed a patch already similar to what I''m > posting here. This one has his changes and some others]Committed. I used Roy''s code because it came from Windows, and b/c it had the extra stuff in typedefs.i. Thanks both for the patches. alex