com.businessobjects.crystalreports.designer.sdk
Interface ICrystalDocumentChangedEvent


public interface ICrystalDocumentChangedEvent

This class defines an event that is fired when the active document changes. You can retrieve the previously active document and the currently active document from this event. Compare these documents to see if the active report has changed. This interface is not intended to be implemented by clients.

See Also:
ICrystalDocumentChangedListener

Method Summary
 IReportClientDocument getNewDocument()
          Returns the document that is currently active in the Crystal Reports editor.
 IReportClientDocument getOldDocument()
          Returns the document that was previously active in the Crystal Reports editor.
 boolean isMainReportChanged()
          Returns whether or not the main document is the same for both the previously active and currently active documents.
 

Method Detail

getOldDocument

IReportClientDocument getOldDocument()
Returns the document that was previously active in the Crystal Reports editor.

Returns:
the previously active IReportClientDocument object, or null if none exists

getNewDocument

IReportClientDocument getNewDocument()
Returns the document that is currently active in the Crystal Reports editor.

Returns:
the currently active IReportClientDocument object, or null if none exists

isMainReportChanged

boolean isMainReportChanged()
Returns whether or not the main document is the same for both the previously active and currently active documents.

Returns:
true if the main document has changed, false otherwise