[SSE] Set vertical text for cell
This commit is contained in:
parent
51d6daa702
commit
5c3b2638f5
|
@ -801,6 +801,7 @@ define([
|
|||
switch (item.value) {
|
||||
case 'countcw': angle = 45; break;
|
||||
case 'clockwise': angle = -45; break;
|
||||
case 'vertical': angle = 255; break;
|
||||
case 'rotateup': angle = 90; break;
|
||||
case 'rotatedown': angle = -90; break;
|
||||
}
|
||||
|
@ -2289,6 +2290,7 @@ define([
|
|||
need_disable = (fontparam == AscCommon.align_Justify || selectionType == Asc.c_oAscSelectionType.RangeShapeText || selectionType == Asc.c_oAscSelectionType.RangeShape);
|
||||
toolbar.btnTextOrient.menu.items[1].setDisabled(need_disable);
|
||||
toolbar.btnTextOrient.menu.items[2].setDisabled(need_disable);
|
||||
toolbar.btnTextOrient.menu.items[3].setDisabled(need_disable);
|
||||
|
||||
/* read cell vertical align */
|
||||
fontparam = xfs.asc_getVertAlign();
|
||||
|
@ -2391,8 +2393,9 @@ define([
|
|||
switch(val) {
|
||||
case 45: toolbar.btnTextOrient.menu.items[1].setChecked(true, true); break;
|
||||
case -45: toolbar.btnTextOrient.menu.items[2].setChecked(true, true); break;
|
||||
case 90: toolbar.btnTextOrient.menu.items[3].setChecked(true, true); break;
|
||||
case -90: toolbar.btnTextOrient.menu.items[4].setChecked(true, true); break;
|
||||
case 255: toolbar.btnTextOrient.menu.items[3].setChecked(true, true); break;
|
||||
case 90: toolbar.btnTextOrient.menu.items[4].setChecked(true, true); break;
|
||||
case -90: toolbar.btnTextOrient.menu.items[5].setChecked(true, true); break;
|
||||
case 0: toolbar.btnTextOrient.menu.items[0].setChecked(true, true); break;
|
||||
}
|
||||
this._state.angle = val;
|
||||
|
|
|
@ -630,6 +630,14 @@ define([
|
|||
toggleGroup : 'textorientgroup',
|
||||
value : 'clockwise'
|
||||
},
|
||||
{
|
||||
caption : me.textVertical,
|
||||
iconCls : 'menu__icon text-orient-vertical',
|
||||
checkable : true,
|
||||
checkmark : false,
|
||||
toggleGroup : 'textorientgroup',
|
||||
value : 'vertical'
|
||||
},
|
||||
{
|
||||
caption : me.textRotateUp,
|
||||
iconCls : 'menu__icon text-orient-rup',
|
||||
|
@ -2398,6 +2406,7 @@ define([
|
|||
tipInsertSymbol: 'Insert symbol',
|
||||
txtAutosumTip: 'Summation',
|
||||
capBtnPrintTitles: 'Print Titles',
|
||||
tipPrintTitles: 'Print titles'
|
||||
tipPrintTitles: 'Print titles',
|
||||
textVertical: 'Vertical Text'
|
||||
}, SSE.Views.Toolbar || {}));
|
||||
});
|
|
@ -2662,6 +2662,7 @@
|
|||
"SSE.Views.Toolbar.txtTime": "Time",
|
||||
"SSE.Views.Toolbar.txtUnmerge": "Unmerge Cells",
|
||||
"SSE.Views.Toolbar.txtYen": "¥ Yen",
|
||||
"SSE.Views.Toolbar.textVertical": "Vertical Text",
|
||||
"SSE.Views.Top10FilterDialog.textType": "Show",
|
||||
"SSE.Views.Top10FilterDialog.txtBottom": "Bottom",
|
||||
"SSE.Views.Top10FilterDialog.txtItems": "Item",
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 335 B |
Binary file not shown.
After Width: | Height: | Size: 411 B |
Binary file not shown.
After Width: | Height: | Size: 467 B |
Binary file not shown.
After Width: | Height: | Size: 268 B |
Binary file not shown.
After Width: | Height: | Size: 526 B |
Loading…
Reference in a new issue