commit
fe793710d4
|
@ -721,18 +721,18 @@ define([
|
|||
// special
|
||||
var data = [{symbol: '—', description: this.textEmDash, shortcutKey: 'Alt+Ctrl+Num -', code: '2014'},
|
||||
{symbol: '–', description: this.textEnDash, shortcutKey: '', code: '2013'},
|
||||
{symbol: '‑', description: this.textNBHyphen, shortcutKey: 'Ctrl+Shift+_', code: '2011'},
|
||||
{symbol: '', description: this.textSHyphen, shortcutKey: 'Alt+-', code: '00AD'},
|
||||
{symbol: '‑', description: this.textNBHyphen, shortcutKey: 'Ctrl+Shift+_', code: '002D', special: {"NonBreakingHyphen":true}},
|
||||
// {symbol: '', description: this.textSHyphen, shortcutKey: 'Alt+-', code: '00AD'},
|
||||
{symbol: '', description: this.textEmSpace, shortcutKey: '', code: '2003'},
|
||||
{symbol: '', description: this.textEnSpace, shortcutKey: '', code: '2002'},
|
||||
{symbol: '', description: this.textQEmSpace, shortcutKey: '', code: '2005'},
|
||||
{symbol: '°', description: this.textNBSpace, shortcutKey: 'Ctrl+Shift+Space', code: '00A0'},
|
||||
{symbol: '©', description: this.textCopyright, shortcutKey: 'Alt+Ctrl+C', code: '00A9'},
|
||||
{symbol: '®', description: this.textRegistered, shortcutKey: 'Alt+Ctrl+R', code: '00AE'},
|
||||
{symbol: '™', description: this.textTradeMark, shortcutKey: 'Alt+Ctrl+T', code: '2122'},
|
||||
{symbol: '©', description: this.textCopyright, shortcutKey: '', code: '00A9'},
|
||||
{symbol: '®', description: this.textRegistered, shortcutKey: '', code: '00AE'},
|
||||
{symbol: '™', description: this.textTradeMark, shortcutKey: '', code: '2122'},
|
||||
{symbol: '§', description: this.textSection, shortcutKey: '', code: '00A7'},
|
||||
{symbol: '¶', description: this.textPilcrow, shortcutKey: '', code: '00B6'},
|
||||
{symbol: '…', description: this.textEllipsis, shortcutKey: 'Alt+Ctrl+.', code: '2026'},
|
||||
{symbol: '…', description: this.textEllipsis, shortcutKey: '', code: '2026'},
|
||||
{symbol: '‛', description: this.textSOQuote, shortcutKey: '', code: '2018'},
|
||||
{symbol: '’', description: this.textSCQuote, shortcutKey: '', code: '2019'},
|
||||
{symbol: '‟', description: this.textDOQuote, shortcutKey: '', code: '201C'},
|
||||
|
@ -803,7 +803,7 @@ define([
|
|||
|
||||
getSpecialSymbol: function() {
|
||||
var rec = this.specialList.getSelectedRec();
|
||||
return {font: undefined, symbol: this.encodeSurrogateChar(rec.get('code')), code: parseInt(rec.get('code'), 16)};
|
||||
return {font: undefined, symbol: this.encodeSurrogateChar(rec.get('code')), code: parseInt(rec.get('code'), 16), special: rec.get('special')};
|
||||
},
|
||||
|
||||
onBtnClick: function(event) {
|
||||
|
|
|
@ -2595,14 +2595,14 @@ define([
|
|||
buttons: [{value: 'ok', caption: this.textInsert}, 'close'],
|
||||
handler: function(dlg, result, settings) {
|
||||
if (result == 'ok') {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code, settings.special);
|
||||
} else
|
||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||
}
|
||||
});
|
||||
me.dlgSymbolTable.show();
|
||||
me.dlgSymbolTable.on('symbol:dblclick', function(cmp, result, settings) {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code, settings.special);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1874,14 +1874,14 @@ define([
|
|||
buttons: [{value: 'ok', caption: this.textInsert}, 'close'],
|
||||
handler: function(dlg, result, settings) {
|
||||
if (result == 'ok') {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code, settings.special);
|
||||
} else
|
||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||
}
|
||||
});
|
||||
win.show();
|
||||
win.on('symbol:dblclick', function(cmp, result, settings) {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.get_TextProps().get_TextPr().get_FontFamily().get_Name(), settings.code, settings.special);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -2829,14 +2829,14 @@ define([
|
|||
buttons: [{value: 'ok', caption: this.textInsert}, 'close'],
|
||||
handler: function(dlg, result, settings) {
|
||||
if (result == 'ok') {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.asc_getCellInfo().asc_getXfs().asc_getFontName(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.asc_getCellInfo().asc_getXfs().asc_getFontName(), settings.code, settings.special);
|
||||
} else
|
||||
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
|
||||
}
|
||||
});
|
||||
win.show();
|
||||
win.on('symbol:dblclick', function(cmp, result, settings) {
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.asc_getCellInfo().asc_getXfs().asc_getFontName(), settings.code);
|
||||
me.api.asc_insertSymbol(settings.font ? settings.font : me.api.asc_getCellInfo().asc_getXfs().asc_getFontName(), settings.code, settings.special);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue