C# Class RIM.VSNDK_Package.EditorFactory

Inheritance: IVsEditorFactory, IDisposable
Afficher le fichier Open project: blackberry/VSPlugin

Méthodes publiques

Méthode Description
Close ( ) : int

Close the factory

CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, IntPtr punkDocDataExisting, IntPtr &ppunkDocView, IntPtr &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int

Create an instance of the custom editor

Dispose ( ) : void

IDisposable Constructor

EditorFactory ( VSNDK_PackagePackage package ) : System

Constructor

GetService ( Type serviceType ) : object

Private function to return the required service.

MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int

This method is called by the Environment (inside IVsUIShellOpenDocument:: OpenStandardEditor and OpenSpecificEditor) to map a LOGICAL view to a PHYSICAL view.

SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int

Used for initialization of the editor in the environment

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

IDisposable Constructor Override

Method Details

Close() public méthode

Close the factory
public Close ( ) : int
Résultat int

CreateEditorInstance() public méthode

Create an instance of the custom editor
public CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, IntPtr punkDocDataExisting, IntPtr &ppunkDocView, IntPtr &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int
grfCreateDoc uint Behaviour Flags
pszMkDocument string Document to be opened.
pszPhysicalView string Name of the view
pvHier IVsHierarchy Pointer to the IVSHierarchy
itemid uint Item ID for this instance
punkDocDataExisting System.IntPtr This parameter is used to determine if a document buffer (DocData object) has already been created
ppunkDocView System.IntPtr Pointer to the IUnknown interface for the DocView object
ppunkDocData System.IntPtr Pointer to the IUnknown interface for the DocData object
pbstrEditorCaption string Caption mentioned by the editor for the doc window
pguidCmdUI System.Guid the Command UI Guid. Any UI element that is visible in the editor has to use this GUID. This is specified in the .vsct file
pgrfCDW int Flags for CreateDocumentWindow
Résultat int

Dispose() public méthode

IDisposable Constructor
public Dispose ( ) : void
Résultat void

EditorFactory() public méthode

Constructor
public EditorFactory ( VSNDK_PackagePackage package ) : System
package VSNDK_PackagePackage
Résultat System

GetService() public méthode

Private function to return the required service.
public GetService ( Type serviceType ) : object
serviceType System.Type
Résultat object

MapLogicalView() public méthode

This method is called by the Environment (inside IVsUIShellOpenDocument:: OpenStandardEditor and OpenSpecificEditor) to map a LOGICAL view to a PHYSICAL view.
public MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
rguidLogicalView System.Guid
pbstrPhysicalView string
Résultat int

SetSite() public méthode

Used for initialization of the editor in the environment
public SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int
psp Microsoft.VisualStudio.OLE.Interop.IServiceProvider pointer to the service provider. Can be used to obtain instances of other interfaces
Résultat int