2 if (!defined("_ECRIRE_INC_VERSION")) return;
3 function typoenluminee_porte_plume_barre_pre_charger($barres){
4 $barre = &$barres['edition'];
6 $barre->cacher('stroke_through');
8 $module_barre = "barre_outils";
9 if (intval($GLOBALS['spip_version_branche'])>2)
10 $module_barre = "barreoutils";
12 $barre->set('header1', array(
13 // groupe formatage paragraphe
18 "name" => _T('barre_intertitre'),
19 "className" => 'outil_intertitre1',
20 "openWith" => "\n{{{",
21 "closeWith" => "}}}\n",
23 "selectionType" => "line",
26 "id" => 'intertitre2',
27 "name" => _T('enlumtypo:barre_intertitre2'),
28 "className" => 'outil_intertitre2',
29 "openWith" => "\n{{{**",
30 "closeWith" => "}}}\n",
32 "selectionType" => "line",
35 "id" => 'intertitre3',
36 "name" => _T('enlumtypo:barre_intertitre3'),
37 "className" => 'outil_intertitre3',
38 "openWith" => "\n{{{***",
39 "closeWith" => "}}}\n",
41 "selectionType" => "line",
44 "id" => 'alignerdroite',
45 "name" => _T('enlumtypo:barre_alignerdroite'),
46 "className" => 'outil_alignerdroite',
48 "closeWith" => "/]\n",
50 "selectionType" => "line",
53 "id" => 'alignergauche',
54 "name" => _T('enlumtypo:barre_alignergauche'),
55 "className" => 'outil_alignergauche',
57 "closeWith" => "!]\n",
59 "lang" => array('ar','fa'),
60 "selectionType" => "line",
64 "name" => _T('enlumtypo:barre_encadrer'),
65 "className" => 'outil_cadretexte',
67 "closeWith" => ")]\n",
69 "selectionType" => "line",
73 "id" => 'barre_cadre',
74 "name" => _T($module_barre.':barre_cadre'),
75 "className" => "outil_barre_cadre",
76 "openWith" => "\n<cadre>",
77 "closeWith" => "</cadre>\n",
79 "selectionType" => "line",
84 $barre->set('bold', array(
85 // groupe formatage texte
87 // Mise en évidence (gras + couleur)
89 "id" => 'miseenevidence',
90 "name" => _T('enlumtypo:barre_miseenevidence'),
91 "className" => "outil_miseenevidence",
95 "selectionType" => "word",
97 // Mise en évidence2 (gras + autre couleur)
99 "id" => 'miseenevidence2',
100 "name" => _T('enlumtypo:barre_miseenevidence2'),
101 "className" => "outil_miseenevidence2",
105 "selectionType" => "word",
107 // montrer une suppression
109 "id" => 'stroke_through_et',
110 "name" => _T('enlumtypo:barre_barre'), // :-)
111 "className" => "outil_stroke_through_et",
112 "openWith" => "<del>",
113 "closeWith" => "</del>",
115 "selectionType" => "word",
120 "name" => _T('enlumtypo:barre_exposant'),
121 "className" => "outil_exposant",
122 "openWith" => "<sup>",
123 "closeWith" => "</sup>",
125 "selectionType" => "word",
130 "name" => _T('enlumtypo:barre_indice'),
131 "className" => "outil_indice",
132 "openWith" => "<sub>",
133 "closeWith" => "</sub>",
135 "selectionType" => "word",
139 "id" => 'barre_code',
140 "name" => _T($module_barre.':barre_code'),
141 "className" => "outil_barre_code",
142 "openWith" => "<code>",
143 "closeWith" => "</code>",
145 "selectionType" => "word",
151 $barre->ajouterApres('notes', array(
152 "id" => 'barre_tableau',
153 "name" => _T('enlumtypo:barre_tableau'),
154 "className" => "outil_barre_tableau",
155 "replaceWith" => 'function(markitup) { zone_selection = markitup.textarea; window.open("?exec=tableau_edit", "","scrollbars=yes,resizable=yes,width=700,height=600") }',
157 "selectionType" => "line",
160 $barre->set('quote', array(
164 "id" => 'barre_poesie',
165 "name" => _T($module_barre.':barre_poesie'),
166 "className" => "outil_barre_poesie",
167 "openWith" => "\n<poesie>",
168 "closeWith" => "</poesie>\n",
170 "selectionType" => "line",
176 $barre->ajouterApres('italic', array(
177 "id" => 'petitescapitales',
178 "name" => _T('enlumtypo:barre_petitescapitales'),
179 "className" => "outil_petitescapitales",
180 "openWith" => "<sc>",
181 "closeWith" => "</sc>",
183 "selectionType" => "word",
189 function typoenluminee_porte_plume_lien_classe_vers_icone($flux){
190 return array_merge($flux, array(
191 'outil_intertitre1' => array('spt-v1.png','-10px -226px'), //'intertitre.png'
192 'outil_intertitre2' => array('intertitre2.png','0'),
193 'outil_intertitre3' => array('intertitre3.png','0'),
194 'outil_alignerdroite' => array('right.png','0'),
195 'outil_alignergauche' => array('left.png','0'),
196 'outil_stroke_through_et' => array('spt-v1.png','-10px -946px'), //'text_strikethrough.png'
197 'outil_cadretexte' => array('cadretexte.png','0'),
198 'outil_speciaux' => array('tag.png','0'),
199 'outil_barre_code' => array('page_white_code_red.png','0'),
200 'outil_barre_cadre' => array('page_white_code.png','0'),
202 'outil_miseenevidence' => array('miseenevidence.png','0'),
203 'outil_miseenevidence2' => array('miseenevidence2.png','0'),
204 'outil_exposant' => array('exposant.png','0'),
205 'outil_indice' => array('indice.png','0'),
206 'outil_petitescapitales' => array('petitescapitales.png','0'),
207 'outil_barre_poesie' => array('poesie.png','0'),
209 'outil_barre_tableau' => array('barre-tableau.png','0'),