Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View a project's Ribbon/CustomUI XML in a ToolWindow #3369

Open
ThunderFrame opened this issue Sep 12, 2017 · 3 comments
Open

View a project's Ribbon/CustomUI XML in a ToolWindow #3369

ThunderFrame opened this issue Sep 12, 2017 · 3 comments
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. library-specific navigation user-interface This issue explicitly relates to the visible interface of Rubberduck.

Comments

@ThunderFrame
Copy link
Member

Probably only good for the modern Office file formats, but being able to display the CustomUI (2007) and/or CustomUI (2010+) XML files, with markup, would be useful. The XML would need to be loaded from the last-saved copy of the host document using the Packaging API.

XML can be syntax highlighted with AvalonEdit.

Nice to have would be navigation links from XML-defined callbacks, straight to the VBA callback implementation, and or showing callbacks without implementations.

@ThunderFrame ThunderFrame added enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. library-specific navigation user-interface This issue explicitly relates to the visible interface of Rubberduck. labels Sep 12, 2017
@pgeerkens
Copy link

If there were an XLAM loaded that linked to Rubberduck, how about actually editing the CustomUI.xml for another workbook. Or related, copying images in for use by the Customized Fluent Ribbon?

@ThunderFrame
Copy link
Member Author

sure, you could edit the XML for any document, then have RD save and close the document, update the CustomUI parts in the document, and then reopen the document.

If the document was being referred to by other projects, you'd have to close all of those projects first, before you could close and update the target document, but it's still feasible.

@ThunderFrame
Copy link
Member Author

With AvalonEdit coming, the Ribbon XML files can be displayed as source-code pages (instead of as dedicated ToolWindows). I've added CustomUI and CustomUI14 properties to IVBProject in my branch, so the ribbon content is nearly available. We'll just need to be able to have AvalonEdit be able to render XML source, and select nodes where there's a callback method defined.

I've also added a list of callbacks by control and callback signature, so hopefully find usages will be able to resolve them to Declarations or QMNs once we finalize how those will behave under 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. library-specific navigation user-interface This issue explicitly relates to the visible interface of Rubberduck.
Projects
None yet
Development

No branches or pull requests

2 participants