[OGo-Developer] print view for task lists
Sebastian Reitenbach
developer@opengroupware.org
Tue, 14 Nov 2006 11:13:09 -0000
Hi Helge,
developer@opengroupware.org wrote:
> Hi,
>
> LSWJobs is a 'singleton' component. Only one is created per session
> (its a top-level component, not a reusable one). In fact I think that
> its quite possible that you either get a LSWPrintJobs or a LSWJobs
> instance, depending on the load order. W/o having looked at your code
> in detail.
I have a BOOL printMode defined in LSWJobs, that one defaults to NO, and only
when hit the print button, it is set to YES. I was hoping that there is a
possibility to set it back to NO, after printout, or always when entering the
tasks lists via the Dock menu.
>
> 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.
kind regards
Sebastian