Hi Yvan, Dne Friday 11 May 2007 22:41 Yvan Barthélemy napsal(a):
> In fact, what I want to do is to provide similar mechanism in svtools > in order to implement a native printing dialog instead of the one > provided by svtools. As Caolan already wrote you (http://gsl.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=1905), he did an implementation of Gtk+ print dialog; very probably it is a better starting point than AquaSalGraphics... > My goal is to add an aqua directory where I will put Aqua > Implementation specific sources. But I don't know how should I do to > compile these one rather than the default one. As I already wrote you ;-) (http://gsl.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=1901), in the long run, the agreement is that it would be best to UNOize the print dialog, similarly to how the file dialog works. Maybe you could try to do a proof-of-concept implementation using Caolan's work? The hardest part on this is not the layout or whatever, the hardest part is to design the API so that it is usable by the old code, and by other implementations (Gtk+, Aqua, KDE, ...) as well. > > It is not? I guess you use aquavcl01 [otherwise you wouldn't have > > AquaSalGraphics at all ;-)]; so have a look at > > AquaSalVirtualDevice::AquaSalVirtualDevice() in > > vcl/aqua/source/gdi/salvd.cxx, or at AquaSalFrame::GetGraphics() in > > vcl/aqua/source/window/salframe.cxx, you can see mpGraphics = new > > AquaSalGraphics(); there. > > Interesting, but now, I want to know where AquaSalVirtualDevice is > instancied, and this recursively until I reach a platform independant > instanciation, since AquaSalVirtualDevice and AquaSalFrame are still > platform dependant. I don't know if I am really clear... grep and find are your friends. Or - of course - you can run OOo in a debugger, set a breakpoint eg. where the AquaSalFrame is created, and look at the backtrace. Regards, Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
