/************************************************************
* Windows Live Writer 博客园专用代码插件
*
* @Author: 张洋(Eric Zhang)
* @Blog: leoo2sk.cnblogs.com
* @E-mail: ericzhang.buaa@gmail.com
************************************************************/
using System.Windows.Forms;
using WindowsLive.Writer.Api;
namespace CnblogsCode
{
///
/// 插件主体
///
[WriterPlugin("ED97E6E4-5A18-497e-A690-5DE4CF27C327", "CnblogsCode")]
[InsertableContentSource("插入博客园样式代码", SidebarText = "博客园样式代码")]
public class CnblogsCodeContentSource : ContentSource
{
public override DialogResult CreateContent(IWin32Window dialogOwner, ref string content)
{
FRM_INSERT_CNBLOGS_CODE dialog = new FRM_INSERT_CNBLOGS_CODE();
dialog.ShowDialog();
content = dialog.HtmlContent;
return dialog.DialogResult;
}
}
}