{"id":719,"date":"2014-03-14T01:07:17","date_gmt":"2014-03-14T01:07:17","guid":{"rendered":"http:\/\/tregner.com\/flare-blog\/?p=719"},"modified":"2014-03-14T01:08:23","modified_gmt":"2014-03-14T01:08:23","slug":"adjusting-flare-9-plug-ins-for-flare-10","status":"publish","type":"post","link":"https:\/\/tregner.com\/flare-blog\/adjusting-flare-9-plug-ins-for-flare-10\/","title":{"rendered":"Adjusting Flare 9 Plug-ins for Flare 10"},"content":{"rendered":"<p>There were some excellent additions to the plug-in API with version 10 of Flare and this blog will touch on that in later posts. But I want to make a quick note about a change to the API that you may need to address if you built plug-ins for version 9 and are planning to use those in version 10.<\/p>\n<p>In version 9, there was an\u00a0ICustomToolstrip interface. \u00a0Now there is an\u00a0ICustomToolBar interface. This bothered me a little until I realized that although the change broke my version 9 plug-ins that used\u00a0ICustomToolstrip, it eliminated a silly workaround I had to use to share code between buttons for custom toolstrips, now called custom toolbars and ribbon groups. Note that MadCap still refers to the classic UI as the Tool Strip (user) Interface.<\/p>\n<p>Before there was\u00a0AddToolStripButton(string, string, EventHandler). Now there is\u00a0AddButton and it can use the same class that inherits ICommand as\u00a0AddRibbonButton(string, ICommand, object, string, RibbonIconSize, string, string, string). This enables better code sharing for buttons on a toolbar and a ribbon group and eliminates the need for the EventHandler and silly path to share logic for the buttons that was necessary before. Dealing with toolbar buttons and buttons on ribbon groups is just a fact of life if you want to support both UI options in Flare.<\/p>\n<p>In conclusion, I think a little bit of rework in existing plug-ins is a good thing in this case.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There were some excellent additions to the plug-in API with version 10 of Flare and this blog will touch on that in later posts. But I want to make a quick note about a change to the API that you may need to address if you built plug-ins for version 9 and are planning to&hellip; <a class=\"more-link\" href=\"https:\/\/tregner.com\/flare-blog\/adjusting-flare-9-plug-ins-for-flare-10\/\">Continue reading <span class=\"screen-reader-text\">Adjusting Flare 9 Plug-ins for Flare 10<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[58,87,57],"_links":{"self":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/719"}],"collection":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":2,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/719\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/categories?post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/tags?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}