Click or drag to resize
GenericExteralPreviewApplication Class
This is a simple generic external preview application that launches the associated or specified application for the preview file. Then when this object is disposed or the launched process exits the temp file is deleted.
Inheritance Hierarchy

Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls (in Sdl.FileTypeSupport.Framework.PreviewControls.dll) Version: 1.0.0.0 (1.0.7219.0)
Syntax
public class GenericExteralPreviewApplication : AbstractFileTypeDefinitionComponent, 
	ISingleFilePreviewApplication, IAbstractPreviewApplication, IAbstractPreviewController, ISingleFilePreviewController, IDisposable

The GenericExteralPreviewApplication type exposes the following members.

Constructors
  NameDescription
Public methodGenericExteralPreviewApplication
Constructor.
Top
Properties
  NameDescription
Public propertyApplicationPath
The path of the external app to preview the generated file (or null for default associated app)
Public propertyFileTypeDefinition
Implements synchronized access to this property.
(Inherited from AbstractFileTypeDefinitionComponent.)
Public propertyMonitorApplicationExit
Indicates if the application should be monitored when exiting. This will perform some tidy up if set to true
Public propertyPreviewFile
Default implementation is accessor for member field.
Top
Methods
  NameDescription
Public methodDispose
Protected methodDispose(Boolean)
Dispose of resources used by this object. Implementation attempts to close the preview application and delete the temp file.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLaunch
Display the file in the external application.
Protected methodLaunchApplicationForFile
Launch a process to view the file. If an application path has been set it is used to launch the application with the preview file as a parameter. If not the file is launched using the default application associated with it (if any).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotifyCanClose
Default implementation sends a close message to the process main window, if it is open.
Public methodOnPreviewClosed
Raise the PreviewClosed event.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventPreviewClosed
Raised when the launched application terminates.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments