摘要 |
Print support may be added to a software component forming part of an existing application by checking the component to determine if it belongs to a class for which print support was originally available. The component may belong to a class having print support available but fail to specifically address print support in its coded methods, or it may belong to a class for which print support was not intrinsically available. If the component belongs to the requisite class, print support may be wired in by simple adding a "dip" component to the subject components' notification methods. The "dip" component provides the necessary dialogs and interfaces to the available print support. If the component is not dippable, or capable of keeping track of dip components, it may be morphed into a dippable component by instantiating a subclass component having the same properties, events, and methods as the undippable component as well as code for keeping track of a dip component.
|