Ext.namespace("Zarafa.plugins");
Zarafa.plugins.PdfBoxPlugin=Ext.extend(Zarafa.core.Plugin,{constructor:function(a){a=a||{};Ext.applyIf(a,{name:"pdfbox"});Zarafa.plugins.PdfBoxPlugin.superclass.constructor.call(this,a)},doOpen:function(a){var b=a.get("name");a={easing:"elasticOut",resizeDuration:0.6,close:"&#215;",hideInfo:"auto",href:a.getInlineImageUrl(),title:b};Ext.ux.PdfBox.open(a)},bidSharedComponent:function(a,b){var c=-1;switch(a){case Zarafa.core.data.SharedComponentType["common.view"]:if(b instanceof Zarafa.core.data.IPMAttachmentRecord){var d=
b.get("name");if(Ext.ux.PdfBox.isDocument(d))c=1}break}return c},getSharedComponent:function(a){var b;switch(a){case Zarafa.core.data.SharedComponentType["common.view"]:b=this;break}return b}});Zarafa.onReady(function(){container.registerPlugin(new Zarafa.plugins.PdfBoxPlugin)});
