[OGo-Developer] print view for task lists

Helge Hess developer@opengroupware.org
Tue, 14 Nov 2006 12:16:16 +0100


On Nov 14, 2006, at 12:13, Sebastian Reitenbach wrote:
>> Proper thing to do would be to create a superclass instead of a
>> subclass to share the code.
>
> just to make sure I got it right:
> ok, so creating a LSWPrintJobs class, which inherits from  
> LSWContentPage, and
> LSWJobs will inherit from LSWPrintJobs.
>
> then when pushing the print button, the LSWPrintJobs class is  
> called, and when entering the tasks list from the dock menu,  
> LSWJobs is called, so it stays as it is.

Something like this, as mentioned I haven't looked at the code in  
detail.

The important thing is that the superclass doesn't do the singleton  
magic in the -init method so that every invocation gets its own  
instance.

Greets,
   Helge
-- 
Helge Hess
http://docs.opengroupware.org/Members/helge/