C# 클래스 RIM.VSNDK_Package.EditorFactory

상속: IVsEditorFactory, IDisposable
파일 보기 프로젝트 열기: blackberry/VSPlugin

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

IDisposable Constructor Override

메소드 상세

Close() 공개 메소드

Close the factory
public Close ( ) : int
리턴 int

CreateEditorInstance() 공개 메소드

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
리턴 int

Dispose() 공개 메소드

IDisposable Constructor
public Dispose ( ) : void
리턴 void

EditorFactory() 공개 메소드

Constructor
public EditorFactory ( VSNDK_PackagePackage package ) : System
package VSNDK_PackagePackage
리턴 System

GetService() 공개 메소드

Private function to return the required service.
public GetService ( Type serviceType ) : object
serviceType System.Type
리턴 object

MapLogicalView() 공개 메소드

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
리턴 int

SetSite() 공개 메소드

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
리턴 int