int IVsUIShellOpenDocument.IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out Microsoft.VisualStudio.OLE.Interop.IServiceProvider ppSP, out int pDocInProj)
		{
			MockVSHierarchy doc=new MockVSHierarchy(pszMkDocument);
			ppUIH = doc;
			pitemid = VSConstants.VSITEMID_ROOT;
			pDocInProj = 1;
			ppSP = null;
			return VSConstants.S_OK;
		}
        public void InitializeEditor(VSEditorControl form, IVsUIHierarchy hier, IVsWindowFrame frame, uint docid)
        {
            VSDocumentFormPane pane = null;
            object value;
            if (ErrorHandler.Succeeded(frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out value)))
            {
                pane = value as VSDocumentFormPane;
            }

            if (pane != null)
                ((IVSEditorControlInit)form).InitializedForm(hier, docid, frame, pane.Host);
        }
        public int OpenDocumentViaProject(string pszMkDocument, ref Guid rguidLogicalView, out Microsoft.VisualStudio.OLE.Interop.IServiceProvider ppSP, out IVsUIHierarchy ppHier, out uint pitemid, out IVsWindowFrame ppWindowFrame)
        {
            ppSP = null;
            ppHier = null;
            pitemid = 0;

            if (_documents.ContainsKey(pszMkDocument))
            {
                ppWindowFrame = _documents[pszMkDocument];
                return VSConstants.S_OK;
            }
            else
            {
                ppWindowFrame = null;
                return VSConstants.E_INVALIDARG;
            }
        }
Example #4
0
        /// <include file='doc\FlavoredProject.uex' path='docs/doc[@for="FlavoredProject.SetInnerProject"]/*' />
        /// <devdoc>
        /// This is were all QI for interface on the inner object should happen
        /// Then set the inner project
        /// wait for InitializeForOuter to be called to do the real initialization
        /// </devdoc>
        protected virtual void SetInnerProject(object inner)
        {
            // Keep a reference to each interface we want to call on the inner project
            // we must do it now as once we call SetInner the AddRef would be forwarded to ourselves
            innerVsAggregatableProject = (IVsAggregatableProject)inner;
            innerVsHierarchy = (IVsHierarchy)inner;
            innerVsUIHierarchy = (IVsUIHierarchy)inner;
            // As should return null without throwing in the event the base project does not implement the interface
            innerOleCommandTarget = inner as IOleCommandTarget;

            // Setup our menu command service
            if (this.serviceProvider == null)
                throw new NotSupportedException("serviceProvider should have been set before SetInnerProject gets called.");
            menuService = new OleMenuCommandService(this, innerOleCommandTarget);

            // Aggregate the project
            this.SetInner(inner);
        }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Collapses the specified hierarchy item.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void CollapseNode(this IVsUIHierarchyWindow window, IVsUIHierarchy node, 
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_CollapseFolder);
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Adds a new node to the current selection.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void AddSelectNode(this IVsUIHierarchyWindow window, IVsUIHierarchy node,
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_SelectItem |
     EXPANDFLAGS.EXPF_AddSelectItem);
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Returns the state or appearance of the hierarchy.
 /// </summary>
 /// <param name="window">The hierarchy window.</param>
 /// <param name="hier">The hierarchy instance.</param>
 /// <param name="id">The id of the hierarchy node.</param>
 /// <param name="statemask">The mask to check the state.</param>
 /// <param name="result">The state flags of the specified item.</param>
 // --------------------------------------------------------------------------------------------
 public static void GetNodeState(this IVsUIHierarchyWindow window,
     IVsUIHierarchy hier, uint id, uint statemask, out uint result)
 {
     window.GetItemState(hier, id, statemask, out result);
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Expands the parents of the specified node to show the node
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void ExpandParents(this IVsUIHierarchyWindow window, IVsUIHierarchy node,
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_ExpandParentsToShowItem);
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Starts editing of the specified node label.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void EditNodeLabel(this IVsUIHierarchyWindow window, IVsUIHierarchy node,
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_EditItemLabel);
 }
 public int OpenDocumentViaProjectWithSpecific(string pszMkDocument, uint grfEditorFlags, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, out VisualStudio.OLE.Interop.IServiceProvider ppSP, out IVsUIHierarchy ppHier, out uint pitemid, out IVsWindowFrame ppWindowFrame) {
     throw new NotImplementedException();
 }
 public int IsSpecificDocumentViewOpen(IVsUIHierarchy pHierCaller, uint itemidCaller, string pszMkDocument, ref Guid rguidEditorType, string pszPhysicalView, uint grfIDO, out IVsUIHierarchy ppHierOpen, out uint pitemidOpen, out IVsWindowFrame ppWindowFrame, out int pfOpen) {
     throw new NotImplementedException();
 }
        /// <include file='doc\VsShellUtilities.uex' path='docs/doc[@for="VsShellUtilities.OpenDocumentWithSpecificEditor"]/*' />
        /// <devdoc>
        /// Open a document using a specific editor. 
        /// </devdoc>
        /// <param name="provider">The service provider.</param>
        /// <param name="fullPath">Full path to the document.</param>
        /// <param name="editorType">Unique identifier of the editor type.</param>
        /// <param name="logicalView">In MultiView case determines view to be activated by IVsMultiViewDocumentView. For a list of logical view GUIDS, see constants starting with LOGVIEWID_ defined in NativeMethods class</param>
        /// <param name="hierarchy">Reference to the IVsUIHierarchy interface of the project that can open the document.</param>
        /// <param name="itemID"> Reference to the hierarchy item identifier of the document in the project.</param>
        /// <param name="windowFrame">A reference to the window frame that is mapped to the document.</param>
        public static void OpenDocumentWithSpecificEditor(IServiceProvider provider, string fullPath, Guid editorType, Guid logicalView, out IVsUIHierarchy hierarchy, out uint itemID, out IVsWindowFrame windowFrame)
        {
            windowFrame = null;
            itemID = VSConstants.VSITEMID_NIL;
            hierarchy = null;

            if (provider == null)
            {
                throw new ArgumentException("provider");
            }

            if (String.IsNullOrEmpty(fullPath))
            {
                throw new ArgumentException("fullPath");
            }

            //open document
            IVsUIShellOpenDocument shellOpenDoc = provider.GetService(typeof(IVsUIShellOpenDocument)) as IVsUIShellOpenDocument;
            IVsRunningDocumentTable pRDT = provider.GetService(typeof(IVsRunningDocumentTable)) as IVsRunningDocumentTable;
            string physicalView = null;
            if (pRDT != null && shellOpenDoc != null)
            {
                ErrorHandler.ThrowOnFailure(shellOpenDoc.MapLogicalView(ref editorType, ref logicalView, out physicalView));
                // See if the requested editor is already open with the requested view.
                IntPtr punkDocData = IntPtr.Zero;
                uint docCookie;
                IVsHierarchy ppIVsHierarchy;
                try
                {
                    ErrorHandler.ThrowOnFailure(pRDT.FindAndLockDocument((uint)_VSRDTFLAGS.RDT_NoLock, fullPath, out ppIVsHierarchy, out itemID, out punkDocData, out docCookie));
                    int pfOpen;
                    uint flags = (uint)__VSIDOFLAGS.IDO_ActivateIfOpen;
                    int hr = shellOpenDoc.IsSpecificDocumentViewOpen((IVsUIHierarchy)ppIVsHierarchy, itemID, fullPath, ref editorType, physicalView, flags, out hierarchy, out itemID, out windowFrame, out pfOpen);
                    if (ErrorHandler.Succeeded(hr) && pfOpen == 1)
                    {
                        return;
                    }
                }
                finally
                {
                    if (punkDocData != IntPtr.Zero)
                    {
                        Marshal.Release(punkDocData);
                    }
                }

                IOleServiceProvider psp;
                uint editorFlags = (uint)__VSSPECIFICEDITORFLAGS.VSSPECIFICEDITOR_UseEditor | (uint)__VSSPECIFICEDITORFLAGS.VSSPECIFICEDITOR_DoOpen;
                ErrorHandler.ThrowOnFailure(shellOpenDoc.OpenDocumentViaProjectWithSpecific(fullPath, editorFlags, ref editorType, physicalView, ref logicalView, out psp, out hierarchy, out itemID, out windowFrame));
                if (windowFrame != null)
                    ErrorHandler.ThrowOnFailure(windowFrame.Show());
                psp = null;
            }
        }
 /// <summary>
 /// The open standard editor.
 /// </summary>
 /// <param name="grfOpenStandard">
 /// The grf open standard.
 /// </param>
 /// <param name="pszMkDocument">
 /// The psz mk document.
 /// </param>
 /// <param name="rguidLogicalView">
 /// The rguid logical view.
 /// </param>
 /// <param name="pszOwnerCaption">
 /// The psz owner caption.
 /// </param>
 /// <param name="pHier">
 /// The p hier.
 /// </param>
 /// <param name="itemid">
 /// The itemid.
 /// </param>
 /// <param name="punkDocDataExisting">
 /// The punk doc data existing.
 /// </param>
 /// <param name="psp">
 /// The psp.
 /// </param>
 /// <param name="ppWindowFrame">
 /// The pp window frame.
 /// </param>
 /// <returns>
 /// The open standard editor.
 /// </returns>
 /// <exception cref="Exception">
 /// </exception>
 public int OpenStandardEditor(
     uint grfOpenStandard, 
     string pszMkDocument, 
     ref Guid rguidLogicalView, 
     string pszOwnerCaption, 
     IVsUIHierarchy pHier, 
     uint itemid, 
     IntPtr punkDocDataExisting, 
     IServiceProvider psp, 
     out IVsWindowFrame ppWindowFrame)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 /// <summary>
 /// The open document via project with specific.
 /// </summary>
 /// <param name="pszMkDocument">
 /// The psz mk document.
 /// </param>
 /// <param name="grfEditorFlags">
 /// The grf editor flags.
 /// </param>
 /// <param name="rguidEditorType">
 /// The rguid editor type.
 /// </param>
 /// <param name="pszPhysicalView">
 /// The psz physical view.
 /// </param>
 /// <param name="rguidLogicalView">
 /// The rguid logical view.
 /// </param>
 /// <param name="ppSP">
 /// The pp sp.
 /// </param>
 /// <param name="ppHier">
 /// The pp hier.
 /// </param>
 /// <param name="pitemid">
 /// The pitemid.
 /// </param>
 /// <param name="ppWindowFrame">
 /// The pp window frame.
 /// </param>
 /// <returns>
 /// The open document via project with specific.
 /// </returns>
 /// <exception cref="Exception">
 /// </exception>
 public int OpenDocumentViaProjectWithSpecific(
     string pszMkDocument, 
     uint grfEditorFlags, 
     ref Guid rguidEditorType, 
     string pszPhysicalView, 
     ref Guid rguidLogicalView, 
     out IServiceProvider ppSP, 
     out IVsUIHierarchy ppHier, 
     out uint pitemid, 
     out IVsWindowFrame ppWindowFrame)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 /// <summary>
 /// The is document in a project.
 /// </summary>
 /// <param name="pszMkDocument">
 /// The psz mk document.
 /// </param>
 /// <param name="ppUIH">
 /// The pp uih.
 /// </param>
 /// <param name="pitemid">
 /// The pitemid.
 /// </param>
 /// <param name="ppSP">
 /// The pp sp.
 /// </param>
 /// <param name="pDocInProj">
 /// The p doc in proj.
 /// </param>
 /// <returns>
 /// The is document in a project.
 /// </returns>
 /// <exception cref="Exception">
 /// </exception>
 public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out IServiceProvider ppSP, out int pDocInProj)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 public int IsDocumentOpen(IVsUIHierarchy pHierCaller, uint itemidCaller, string pszMkDocument, ref Guid rguidLogicalView, uint grfIDO, out IVsUIHierarchy ppHierOpen, uint[] pitemidOpen, out IVsWindowFrame ppWindowFrame, out int pfOpen) {
     throw new NotImplementedException();
 }
        /// <include file='doc\VsShellUtilities.uex' path='docs/doc[@for="VsShellUtilities.IsDocumentOpen"]/*' />
        /// <devdoc>
        /// Determine if a document is opened with a given logical view.  
        /// </devdoc>
        /// <param name="provider">The service provider.</param>
        /// <param name="fullPath">Full path to the document</param>
        /// <param name="logicalView">GUID identifying the logical view. If logicalView is set to Guid.Empty, it will return true if any view is open.</param>
        /// <param name="hierarchy">Reference to the IVsUIHierarchy interface of the project that contains the Open document</param>
        /// <param name="itemID"> Reference to the hierarchy item identifier of the document in the project</param>
        /// <param name="windowFrame">A reference to the window frame that is mapped to the document</param>
        /// <returns>true if the document is open with the given logical view</returns>
        public static bool IsDocumentOpen(IServiceProvider provider, string fullPath, Guid logicalView, out IVsUIHierarchy hierarchy, out uint itemID, out IVsWindowFrame windowFrame)
        {
            windowFrame = null;
            itemID = VSConstants.VSITEMID_NIL;
            hierarchy = null;

            if (provider == null)
            {
                throw new ArgumentException("provider");
            }

            if (String.IsNullOrEmpty(fullPath))
            {
                throw new ArgumentException("fullPath");
            }

            //open document
            IVsUIShellOpenDocument shellOpenDoc = provider.GetService(typeof(IVsUIShellOpenDocument)) as IVsUIShellOpenDocument;
            IVsRunningDocumentTable pRDT = provider.GetService(typeof(IVsRunningDocumentTable)) as IVsRunningDocumentTable;
            if (pRDT != null && shellOpenDoc != null)
            {
                IntPtr punkDocData = IntPtr.Zero;
                uint docCookie;
                uint[] pitemid = new uint[1];
                IVsHierarchy ppIVsHierarchy;
                try
                {
                    ErrorHandler.ThrowOnFailure(pRDT.FindAndLockDocument((uint)_VSRDTFLAGS.RDT_NoLock, fullPath, out ppIVsHierarchy, out pitemid[0], out punkDocData, out docCookie));
                    int pfOpen;
                    uint flags = (logicalView == Guid.Empty) ? (uint)__VSIDOFLAGS.IDO_IgnoreLogicalView : 0;
                    ErrorHandler.ThrowOnFailure(shellOpenDoc.IsDocumentOpen((IVsUIHierarchy)ppIVsHierarchy, pitemid[0], fullPath, ref logicalView, flags, out hierarchy, pitemid, out windowFrame, out pfOpen));
                    if (windowFrame != null)
                    {
                        itemID = pitemid[0];
                        return (pfOpen == 1);
                    }
                }
                finally
                {
                    if (punkDocData != IntPtr.Zero)
                    {
                        Marshal.Release(punkDocData);
                    }
                }
            }
            return false;
        }
 public int OpenDocumentViaProject(string pszMkDocument, ref Guid rguidLogicalView, out VisualStudio.OLE.Interop.IServiceProvider ppSP, out IVsUIHierarchy ppHier, out uint pitemid, out IVsWindowFrame ppWindowFrame) {
     throw new NotImplementedException();
 }
        /// <include file='doc\VsShellUtilities.uex' path='docs/doc[@for="VsShellUtilities.OpenDocument"]/*' />
        /// <devdoc>
        /// Open document using the appropriate project. 
        /// </devdoc>
        /// <param name="provider">The service provider.</param>
        /// <param name="fullPath">Full path to the document.</param>
        /// <param name="logicalView">In MultiView case determines view to be activated by IVsMultiViewDocumentView. For a list of logical view GUIDS, see constants starting with LOGVIEWID_ defined in NativeMethods class</param>
        /// <param name="hierarchy">Reference to the IVsUIHierarchy interface of the project that can open the document.</param>
        /// <param name="itemID"> Reference to the hierarchy item identifier of the document in the project.</param>
        /// <param name="windowFrame">A reference to the window frame that is mapped to the document.</param>
        /// <param name="view">A reference to the primary view of the document.</param>
        public static void OpenDocument(IServiceProvider provider, string fullPath, Guid logicalView, out IVsUIHierarchy hierarchy, out uint itemID, out IVsWindowFrame windowFrame, out IVsTextView view)
        {
            itemID = VSConstants.VSITEMID_NIL;
            windowFrame = null;
            hierarchy = null;
            view = null;

            if (provider == null)
            {
                throw new ArgumentException("provider");
            }

            if (String.IsNullOrEmpty(fullPath))
            {
                throw new ArgumentException("fullPath");
            }

            OpenDocument(provider, fullPath, logicalView, out hierarchy, out itemID, out windowFrame);
            view = GetTextView(windowFrame);
        }
 public int OpenStandardEditor(uint grfOpenStandard, string pszMkDocument, ref Guid rguidLogicalView, string pszOwnerCaption, IVsUIHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, VisualStudio.OLE.Interop.IServiceProvider psp, out IVsWindowFrame ppWindowFrame) {
     throw new NotImplementedException();
 }
        /// <include file='doc\VsShellUtilities.uex' path='docs/doc[@for="VsShellUtilities.OpenDocument"]/*' />
        /// <devdoc>
        /// Open document using the appropriate project. 
        /// </devdoc>
        /// <param name="provider">The service provider.</param>
        /// <param name="fullPath">Full path to the document.</param>
        /// <param name="logicalView">GUID identifying the logical view.</param>
        /// <param name="hierarchy">Reference to the IVsUIHierarchy interface of the project that contains the Open document.</param>
        /// <param name="itemID"> Reference to the hierarchy item identifier of the document in the project.</param>
        /// <param name="windowFrame">A reference to the window frame that is mapped to the document.</param>
        public static void OpenDocument(IServiceProvider provider, string fullPath, Guid logicalView, out IVsUIHierarchy hierarchy, out uint itemID, out IVsWindowFrame windowFrame)
        {
            windowFrame = null;
            itemID = VSConstants.VSITEMID_NIL;
            hierarchy = null;

            if (provider == null)
            {
                throw new ArgumentException("provider");
            }

            if (String.IsNullOrEmpty(fullPath))
            {
                throw new ArgumentException("fullPath");
            }

            //open document
            if (!IsDocumentOpen(provider, fullPath, logicalView, out hierarchy, out itemID, out windowFrame))
            {
                IVsUIShellOpenDocument shellOpenDoc = provider.GetService(typeof(IVsUIShellOpenDocument)) as IVsUIShellOpenDocument;
                if (shellOpenDoc != null)
                {
                    IOleServiceProvider psp;
                    uint itemid;
                    ErrorHandler.ThrowOnFailure(shellOpenDoc.OpenDocumentViaProject(fullPath, ref logicalView, out psp, out hierarchy, out itemid, out windowFrame));
                }
            }
            if (windowFrame != null)
            {
                ErrorHandler.ThrowOnFailure(windowFrame.Show());
            }
        }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Expands the specified hierarchy item.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 /// <param name="recursive">Set true to expand the node recursively</param>
 // --------------------------------------------------------------------------------------------
 public static void ExpandNode(this IVsUIHierarchyWindow window, IVsUIHierarchy node, uint id,
     bool recursive)
 {
     var flags = EXPANDFLAGS.EXPF_ExpandFolder;
       if (recursive) flags |= EXPANDFLAGS.EXPF_ExpandFolderRecursively;
       ExpandItem(window, node, id, flags);
 }
 int IVsUIShell.CreateDocumentWindow(uint grfCDW, string pszMkDocument, IVsUIHierarchy uih, uint itemid, IntPtr punkDocView, IntPtr punkDocData, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidCmdUI, Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp, string pszOwnerCaption, string pszEditorCaption, int[] defaultPosition, out IVsWindowFrame windowFrame)
 {
     throw new NotImplementedException();
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Finds the common selection.
 /// </summary>
 /// <param name="window">The window.</param>
 /// <param name="commonHier">The common hier.</param>
 // --------------------------------------------------------------------------------------------
 public static int FindCommonSelectionRoot(this IVsUIHierarchyWindow window,
     out IVsUIHierarchy commonHier)
 {
     return window.FindCommonSelectedHierarchy(
     (uint)__VSCOMHIEROPTIONS.COMHIEROPT_AllowHiddenRoot, out commonHier);
 }
 /// <summary>
 /// Gets the project and the itemid for the document with the given path.
 /// </summary>
 private static void GetSourceProjectItem(string inputFilePath, out IVsUIHierarchy hierarchy, out uint itemid)
 {
     var shellDocuments = Package.GetGlobalService(typeof(SVsUIShellOpenDocument)) as IVsUIShellOpenDocument;
     Assumes.Present(shellDocuments);
     Microsoft.VisualStudio.OLE.Interop.IServiceProvider sp;
     int docInProject;
     ErrorHandler.ThrowOnFailure(shellDocuments.IsDocumentInAProject(inputFilePath, out hierarchy, out itemid, out sp, out docInProject));
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Expands the specified hierarchy item.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node to expand.</param>
 /// <param name="id">The id of the node.</param>
 /// <param name="flags">Flags specifying how to expand the node.</param>
 // --------------------------------------------------------------------------------------------
 private static void ExpandItem(IVsUIHierarchyWindow window, IVsUIHierarchy node, uint id, 
     EXPANDFLAGS flags)
 {
     if (window == null) return;
       if (node == null) throw new ArgumentNullException("node");
       ErrorHandler.ThrowOnFailure(window.ExpandItem(node, id, flags));
 }
 public int InitializeEditorInstance(uint grfIEI, IntPtr punkDocView, IntPtr punkDocData, string pszMkDocument, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidLogicalView, string pszOwnerCaption, string pszEditorCaption, IVsUIHierarchy pHier, uint itemid, IntPtr punkDocDataExisting, VisualStudio.OLE.Interop.IServiceProvider pSPHierContext, ref Guid rguidCmdUI, out IVsWindowFrame ppWindowFrame) {
     throw new NotImplementedException();
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Higlights the specified node with bold font.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void BoldNode(this IVsUIHierarchyWindow window, IVsUIHierarchy node,
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_BoldItem);
 }
 public int IsDocumentInAProject(string pszMkDocument, out IVsUIHierarchy ppUIH, out uint pitemid, out VisualStudio.OLE.Interop.IServiceProvider ppSP, out int pDocInProj) {
     throw new NotImplementedException();
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Sets Cut highlighting to the specified node.
 /// </summary>
 /// <param name="window">The hierarchy window hosting the item.</param>
 /// <param name="node">The hierarchy of the node.</param>
 /// <param name="id">The id of the node.</param>
 // --------------------------------------------------------------------------------------------
 public static void CutHighlightNode(this IVsUIHierarchyWindow window, IVsUIHierarchy node,
     uint id)
 {
     ExpandItem(window, node, id, EXPANDFLAGS.EXPF_CutHighlightItem);
 }
Example #31
0
 int IVsUIShell.CreateDocumentWindow(uint grfCDW, string pszMkDocument, IVsUIHierarchy pUIH, uint itemid, IntPtr punkDocView, IntPtr punkDocData, ref Guid rguidEditorType, string pszPhysicalView, ref Guid rguidCmdUI, Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp, string pszOwnerCaption, string pszEditorCaption, int[] pfDefaultPosition, out IVsWindowFrame ppWindowFrame)
 {
     throw new NotImplementedException();
 }