Skip to main content



      Home
Home » Eclipse Projects » GEF » Need to know the when is printing
Need to know the when is printing [message #171572] Mon, 14 March 2005 00:52 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

I got some basic printing to work but it is not enough. I need to somehow
control the output of the diagram. For example, I may need to use
different text/icon for screen display and printing.

For now, the printing routine just take my GraphicalViewer to do the
printing automatically. Is there a way in the EditoPart class that I can
intercept or listen to the printing notification? So I can output my
customized stuff?

Thanks
slam
Re: Need to know the when is printing [message #171682 is a reply to message #171572] Mon, 14 March 2005 12:38 Go to previous messageGo to next message
Eclipse UserFriend
No, but you can register your own print action which will tell you when
printing is happening.

"slam" <jsk_lam@hotmail.com> wrote in message
news:d138qt$h99$1@www.eclipse.org...
> Hi,
>
> I got some basic printing to work but it is not enough. I need to somehow
> control the output of the diagram. For example, I may need to use
> different text/icon for screen display and printing.
>
> For now, the printing routine just take my GraphicalViewer to do the
> printing automatically. Is there a way in the EditoPart class that I can
> intercept or listen to the printing notification? So I can output my
> customized stuff?
>
> Thanks
> slam
>
Re: Need to know the when is printing [message #171736 is a reply to message #171572] Mon, 14 March 2005 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could look for an instance of PrinterGraphics in your figures.
Or, you could create a different graphical viewer with settings on it which
affected editpart figure creation.

"slam" <jsk_lam@hotmail.com> wrote in message
news:d138qt$h99$1@www.eclipse.org...
> Hi,
>
> I got some basic printing to work but it is not enough. I need to somehow
> control the output of the diagram. For example, I may need to use
> different text/icon for screen display and printing.
>
> For now, the printing routine just take my GraphicalViewer to do the
> printing automatically. Is there a way in the EditoPart class that I can
> intercept or listen to the printing notification? So I can output my
> customized stuff?
>
> Thanks
> slam
>
Re: Need to know the when is printing [message #171744 is a reply to message #171682] Mon, 14 March 2005 16:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Can you show me how to register for the print action? Thanks

"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d14i6h$4i3$1@www.eclipse.org...
> No, but you can register your own print action which will tell you when
> printing is happening.
>
> "slam" <jsk_lam@hotmail.com> wrote in message
> news:d138qt$h99$1@www.eclipse.org...
> > Hi,
> >
> > I got some basic printing to work but it is not enough. I need to
somehow
> > control the output of the diagram. For example, I may need to use
> > different text/icon for screen display and printing.
> >
> > For now, the printing routine just take my GraphicalViewer to do the
> > printing automatically. Is there a way in the EditoPart class that I
can
> > intercept or listen to the printing notification? So I can output my
> > customized stuff?
> >
> > Thanks
> > slam
> >
>
>
Re: Need to know the when is printing [message #171752 is a reply to message #171736] Mon, 14 March 2005 16:01 Go to previous message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

I am not sure how to do it, can you give me some example? Thanks

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d14r87$fj2$1@www.eclipse.org...
> You could look for an instance of PrinterGraphics in your figures.
> Or, you could create a different graphical viewer with settings on it
which
> affected editpart figure creation.
>
> "slam" <jsk_lam@hotmail.com> wrote in message
> news:d138qt$h99$1@www.eclipse.org...
> > Hi,
> >
> > I got some basic printing to work but it is not enough. I need to
somehow
> > control the output of the diagram. For example, I may need to use
> > different text/icon for screen display and printing.
> >
> > For now, the printing routine just take my GraphicalViewer to do the
> > printing automatically. Is there a way in the EditoPart class that I
can
> > intercept or listen to the printing notification? So I can output my
> > customized stuff?
> >
> > Thanks
> > slam
> >
>
>
Previous Topic:Tool, Command and EditPolicy architecture question
Next Topic:How to use the example of redbook on the workbench
Goto Forum:
  


Current Time: Tue Jun 03 10:11:32 EDT 2025

Powered by FUDForum. Page generated in 0.23548 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top