/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit._editor.plugins.FontChoice"]){dojo._hasResource["dijit._editor.plugins.FontChoice"]=true;dojo.provide("dijit._editor.plugins.FontChoice");dojo.require("dijit._editor._Plugin");dojo.require("dijit._editor.range");dojo.require("dijit.form.FilteringSelect");dojo.require("dojo.data.ItemFileReadStore");dojo.require("dojo.i18n");dojo.requireLocalization("dijit._editor","FontChoice",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");dojo.declare("dijit._editor.plugins._FontDropDown",[dijit._Widget,dijit._Templated],{label:"",widgetsInTemplate:true,plainText:false,templateString:""+""+""+"",postMixInProperties:function(){this.inherited(arguments);this.strings=dojo.i18n.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments);},postCreate:function(){var _1=dojo.map(this.values,function(_2){var _3=this.strings[_2]||_2;return {label:this.getLabel(_2,_3),name:_3,value:_2};},this);this.select.store=new dojo.data.ItemFileReadStore({data:{identifier:"value",items:_1}});this.select.attr("value","",false);this.disabled=this.select.attr("disabled");},_setValueAttr:function(_4,_5){_5=_5!==false?true:false;this.select.attr("value",dojo.indexOf(this.values,_4)<0?"":_4,_5);if(!_5){this.select._lastValueReported=null;}},_getValueAttr:function(){return this.select.attr("value");},focus:function(){this.select.focus();},_setDisabledAttr:function(_6){this.disabled=_6;this.select.attr("disabled",_6);}});dojo.declare("dijit._editor.plugins._FontNameDropDown",dijit._editor.plugins._FontDropDown,{generic:false,command:"fontName",postMixInProperties:function(){if(!this.values){this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"];}this.inherited(arguments);},getLabel:function(_7,_8){if(this.plainText){return _8;}else{return "