The 2007 Microsoft Office System: Developer Model for the New User Interface Andy Cheung ISV Developer Evangelist Microsoft Hong Kong
Agenda RibbonX Managed Preview Handler Custom SmartArt Graphics
Ribbon Extensibility - “RibbonX” Developers can modify the Ribbon For example: remove tabs, add a tab, add a group Custom Group Custom Tab
Existing Solutions Custom Menu Custom Buttons on Formatting Toolbar Custom Toolbars
Mapping Existing Solutions If your code added a… it appears in… Control to a built-in menu the 'Menu Commands' group Control to a built-in toolbar the 'Toolbar Commands' group Custom toolbar the ‘Custom Toolbars’ group … on the Add-Ins Tab
Before the 2007 Office System Hard to build well-behaved add-ins Hard to reference built-in controls, images Hard to localize Nearly impossible to make add-in customizable by end users Easy to have add-in conflicts Result: UI deteriorates over time
RibbonX… Is a consistent, XML-based developer model for Microsoft Office UI Produces well-behaved solutions by default Exposes new control types Targets specific developer scenarios
RibbonX Controls EditBoxesDialogBoxLaunchersDropDownsComboBoxesGalleries Only five controls in Microsoft Office 2003: msoControlButton, msoControlEdit, msoControlPopup, msoControlComboBox, msoControlDropdown
RibbonX Markup Declarative XML Easy to understand, localize, generate Separates UI from your business logic Gets applied to UI at add-in or document load <button id=“hw” label=“Hello World!” onAction=“myHelloFunc” /> </group></tab>
Doc.Level App.Level RibbonX Solution Space Installed at app-level, UI always visible Write a VSTO app-level solution Word Global Template Excel Add-in (.xlam) PPT Add-in (.ppam) Installed at app-level, displays UI based on doc properties Write a VSTO v3 doc-based solution Word, Excel, PowerPoint document Access Database COMVBAVSTO
Features Targeting Developers StartFromScratch Global repurposing Referencing built-in controls and images
Design Guidelines UI Region Contains… File Menu Commands external to document Main Tabs Commands that modify document content Contextual Tabs Commands specific to built-in objects Programmable Task Panes Typically display data relevant to current document
Resources Create Custom SmartArt Graphics For Use In The 2007 Office System Extend The 2007 Office System With Your Own Ribbon Tabs And Controls View Data Your Way With Our Managed Preview Handler Framework
FREE Hong Kong Technical Support Newsgroup Supported by experienced Microsoft senior engineers Read posts, search for specific topics and post your questions! Get an answer within 2 business days (Mon – Fri) up.mspx up.mspx
© 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.