-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Unit Test support for MS Project, adds basic bitmap copy of Code…
… Explorer treeview (#1701) * Adds RTF and XML Spreadsheet data formats Still need to RTF-escape content values Temporary Fix in InspectionResultBase, for instances of unsaved filename boom. * XML Spreadsheet builds from XMLWriter instead of StringBuilder Adds ColumnInfos helper classes, for specifying and formatting column titles, not yet fully implemented. * Improves Clipboard export formatter Adds a DocumentName property to QualifiedModuleName, adds DocumentName to column output. * adds notes and placeholder for Outllook's Application.Run alternative not implemented - need to write to events in the ThisOutlookSession before this will work. * Adds columns to inspection results, and adds column titles changes to Column alignment, font weights, colspans * improvements to InspectionResults Clipboard Refines DocumentName of QualifiedModule * Adds DisplayName and Title for Projects and Components ProjectDisplayName eg. `Book1` ProjectTitle eg. `VBA Project (Book1) ComponentDisplayName eg. `Home` ComponentTitle eg. `shtHome (Home)` * corrects ComponentTitle behaviour still needs testing across multiple hosts. * removes temporary comments * adds DisplayName to extra QualifiedModuleName constructor was out of Sync with Next, so had to add these fields to the newly discovered ctor. * Adds Unit Test support for Visio, clipboard formats for Test Explorer Adds Start and End Times for Unit Test results (only viewable in Clipboard exports) Title and Headings aren't yet localized. No plain-text clipboard export format yet * Adjusts treeview border to correct jagged edge of Code Explorer window sought and received @Hosch250 approval * Adds Copy button to Code Explorer, allows copy of *all* User Declarations WIP... * Fixes GetDisplayName Adds extra method for projects that have documents without a document-component (eg. PowerPoint) * Adds experimental Bitmap WPF copy element is clipped if there is overflow... See http://stackoverflow.com/questions/37572471/how-to-copy-a-frameworkelement-including-the-overflowed-content * Adds Unit Testing for MSProject Application.Run() does exist but doesn't seem to work, so using Application.Macro() instead. * Adds MS Project Application.Macro method
- Loading branch information
1 parent
1d5a7af
commit b96664e
Showing
7 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Microsoft.Vbe.Interop; | ||
|
||
namespace Rubberduck.VBEditor.VBEHost | ||
{ | ||
public class ProjectApp : HostApplicationBase<Microsoft.Office.Interop.MSProject.Application> | ||
{ | ||
public ProjectApp() : base("MSProject") { } | ||
public ProjectApp(VBE vbe) : base(vbe, "MSProject") { } | ||
|
||
public override void Run(QualifiedMemberName qualifiedMemberName) | ||
{ | ||
var call = GenerateMethodCall(qualifiedMemberName); | ||
Application.Macro(call); | ||
} | ||
|
||
protected virtual string GenerateMethodCall(QualifiedMemberName qualifiedMemberName) | ||
{ | ||
var moduleName = qualifiedMemberName.QualifiedModuleName.Component.Name; | ||
return string.Concat(moduleName, ".", qualifiedMemberName.MemberName); | ||
} | ||
} | ||
} |
Binary file not shown.