Commit 9e5598e8 authored by Lingnan Wu's avatar Lingnan Wu Committed by Sebastien Robin

add the good interface of the new powerpoint editor and make it also show the svgeditor

parent f7df61fe
......@@ -21,7 +21,8 @@
edit_preferences:'simplepreferenceeditor',
text_editor:'elrte',
img_editor:'svg-edit',
spreadsheet:'jquery-sheet'
spreadsheet:'jquery-sheet',
power_point:'power-point'
};
priv.app_object = {
topnavbar: {
......@@ -167,6 +168,37 @@
});
}
},
'power-point': {
type:'editor',
path:'component/svg-edit.html',
gadget_id:'page-content',
ext:'ppt',
frameid:'svg_edit_frame',
getContent: function () {
return document.getElementById (this.frameid).
contentWindow.svgCanvas.getSvgString();
},
setContent: function (content) {
document.getElementById (this.frameid).
contentWindow.svgCanvas.setSvgString(content);
},
onload: function (param) {
var waitForInit = function (fun) {
// FIXME : wait for init end
setTimeout(fun,1000);
}
waitForInit(function () {
if (typeof param.file_name !== 'undefined') {
$('#input_file_name').attr('value',
baseName(param.file_name));
that.load(baseName(param.file_name));
} else {
$('#input_file_name').attr(
'value','untitled');
}
});
}
},
slickgrid: {
type:'editor',
path:'component/slickgrid_document_lister.html',
......@@ -185,6 +217,8 @@
icon:'<i class="icon-font"></i>'},
svg:{pref:'img_editor',app:'svg-edit',
icon:'<i class="icon-pencil"></i>'},
ppt:{pref:'power_point',app:'power-point',
icon:'<i class="icon-pencil"></i>'},
jqs:{app:'jquery-sheet',
icon:'<i class="icon-signal"></i>'}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment