// This class holds the available toolbar items definitions
function TBI() {}

// Standard
TBI.prototype.Cut				= new TBButton("Cut"			, "Couper"							, DECMD_CUT) ;
TBI.prototype.Copy				= new TBButton("Copy"			, "Copier"							, DECMD_COPY) ;
TBI.prototype.Paste				= new TBButton("Paste"			, "Coller"							, DECMD_PASTE) ;
TBI.prototype.PasteText			= new TBButton("PasteText"		, "Coller plusieur fois"			, "pastePlainText()"		, TBCMD_CUSTOM, "checkDecCommand(DECMD_PASTE)") ;
TBI.prototype.PasteWord			= new TBButton("PasteWord"		, "Coller a la ligne"				, "pasteFromWord()"			, TBCMD_CUSTOM, "checkDecCommand(DECMD_PASTE)") ;
TBI.prototype.Find				= new TBButton("Find"			, "Rechercher"						, DECMD_FINDTEXT) ;
TBI.prototype.SelectAll			= new TBButton("SelectAll"		, "Sélectionner tout"				, DECMD_SELECTALL) ;
TBI.prototype.RemoveFormat		= new TBButton("RemoveFormat"	, "Effacer le format du texte"		, DECMD_REMOVEFORMAT) ;
TBI.prototype.Link				= new TBButton("Link"			, "Inserer un lien"					, "dialogLink()"			, TBCMD_CUSTOM, "checkDecCommand(DECMD_HYPERLINK)") ;
TBI.prototype.RemoveLink		= new TBButton("Unlink"			, "Supprimer un lien"				, DECMD_UNLINK) ;
TBI.prototype.Image				= new TBButton("Image"			, "Inserer une Image"				, "dialogImage()"			, TBCMD_CUSTOM) ;
TBI.prototype.Table				= new TBButton("Table"			, "Inserer un Tableau"				, "dialogTable()"			, TBCMD_CUSTOM) ;
TBI.prototype.Rule				= new TBButton("Rule"			, "Inserer une ligne"				, "InsertHorizontalRule"	, TBCMD_DOC) ;
TBI.prototype.SpecialChar		= new TBButton("SpecialChar"	, "Inserer un Caractere special"	, "insertSpecialChar()"		, TBCMD_CUSTOM) ;
TBI.prototype.Smiley			= new TBButton("Smiley"			, "Inserer un Smiley"				, "insertSmiley()"			, TBCMD_CUSTOM) ;
TBI.prototype.About				= new TBButton("About"			, "About Richtext Editor"			, "about()"					, TBCMD_CUSTOM) ;

// Formatting
TBI.prototype.Bold					= new TBButton("Bold"					, "Gras"							, DECMD_BOLD) ;
TBI.prototype.Italic				= new TBButton("Italic"					, "Italic"							, DECMD_ITALIC) ;
TBI.prototype.Underline				= new TBButton("Underline"				, "Souligner"						, DECMD_UNDERLINE) ;
TBI.prototype.StrikeThrough			= new TBButton("StrikeThrough"			, "Barrer"							, "strikethrough"			, TBCMD_DOC) ;
TBI.prototype.Subscript				= new TBButton("Subscript"				, "Subscript"						, "subscript"				, TBCMD_DOC) ;
TBI.prototype.Superscript			= new TBButton("Superscript"			, "Superscript"						, "superscript"				, TBCMD_DOC) ;
TBI.prototype.JustifyLeft			= new TBButton("JustifyLeft"			, "Justifier a Gauche"				, DECMD_JUSTIFYLEFT) ;
TBI.prototype.JustifyCenter			= new TBButton("JustifyCenter"			, "Justifier Centre"				, DECMD_JUSTIFYCENTER) ;
TBI.prototype.JustifyRight			= new TBButton("JustifyRight"			, "Justifier a Droite"				, DECMD_JUSTIFYRIGHT) ;
TBI.prototype.JustifyFull			= new TBButton("JustifyFull"			, "Justifier en Block"				, "JustifyFull"				, TBCMD_DOC) ;
TBI.prototype.Outdent				= new TBButton("Outdent"				, "Diminuer le retrait"				, DECMD_OUTDENT) ;
TBI.prototype.Indent				= new TBButton("Indent"					, "Augmenter le retrait"			, DECMD_INDENT) ;
TBI.prototype.Undo					= new TBButton("Undo"					, "Retour Arriere"					, DECMD_UNDO) ;
TBI.prototype.Redo					= new TBButton("Redo"					, "Remplacer"						, DECMD_REDO) ;
TBI.prototype.InsertOrderedList		= new TBButton("InsertOrderedList"		, "Puce Numero"						, DECMD_ORDERLIST) ;
TBI.prototype.InsertUnorderedList	= new TBButton("InsertUnorderedList"	, "Puce Symbole"					, DECMD_UNORDERLIST) ;

// Options
TBI.prototype.ShowTableBorders		= new TBButton("ShowTableBorders", "Show Table Borders", "showTableBorders()", TBCMD_CUSTOM, "checkShowTableBorders()") ;
TBI.prototype.ShowDetails			= new TBButton("ShowDetails", "Show Details", "showDetails()", TBCMD_CUSTOM, "checkShowDetails()") ;

// Font
TBI.prototype.FontStyle				= new TBCombo( "FontStyle"		, "doStyle(this)"			, "Style"			, config.StyleNames, config.StyleValues, 'CheckStyle("cmbFontStyle")') ;
TBI.prototype.FontFormat			= new TBCombo( "FontFormat"		, "doFormatBlock(this)"		, "Format"			, config.BlockFormatNames, config.BlockFormatNames, 'CheckFontFormat("cmbFontFormat")') ;
TBI.prototype.Font					= new TBCombo( "Font"			, "doFontName(this)"		, "Typo"			, config.ToolbarFontNames, config.ToolbarFontNames, 'CheckFontName("cmbFont")') ;
TBI.prototype.FontSize				= new TBCombo( "FontSize"		, "doFontSize(this)"		, "Taille"			, ';xx-petit;x-petit;petit;moyen;grand;x-grand;xx-grand', ';1;2;3;4;5;6;7', 'CheckFontSize("cmbFontSize")') ;
TBI.prototype.TextColor				= new TBButton("TextColor"		, "Couleur de texte"		, "foreColor()"		, TBCMD_CUSTOM) ;
TBI.prototype.BGColor				= new TBButton("BGColor"		, "Couleur de Fond"			, "backColor()"		, TBCMD_CUSTOM) ;
TBI.prototype.EditSource			= new TBCheckBox("EditSource"	, "switchEditMode()"		, "Source"			, "onViewMode") ;

// This is the object that holds the available toolbar items
var oTB_Items = new TBI() ;
