From: Xabier R. C. <cal...@ig...> - 2006-10-29 21:40:52
|
Hi folks, I have made some changes in fisterra-base in order to support the creation of pdfs and use it in server too. To create a pdf you only have to call f_printing_facade_create_and_store_pdf after having the postscript file. To migrate the printing logic to common, I had to migrate FModel, FModelUtil and FCommonFacade too. This was a problem because of the dependencies of gtk widgets. It would not be a good idea to introduce these dependencies so I have splitted FCommonFacade in FCommonFacade and FClientFacade (inheriting from FCommonFacade). Here everything is as before, because a Template Method Pattern was applied and FClientFacade implements the method to show the exception when f_common_facade_show_exception_widget_and_clean is called. In FPrintingFacade there are only the methods to create the pdfs and postscript files and the ones to manage the printing widgets were moved to FClientPrintingFacade (inheriting from FPrintingFacade). I have changed fisterra-repair and fisterra-textil according to these changes too. Conclusions: * If you create a facade in the client of your project, you should make it inherit from FClientFacade instead of FCommonFacade * You have to change your calls to FPrintingFacade to FClientPrintingFacade when needed. Greetings! --=20 Xabier Rodr=EDguez Calvar Computer Engineer Telf: +34 981 91 39 91 Fax: +34 981 91 39 49 mailto: xrc...@ig... IGALIA, S.L. http://www.igalia.com |