提交 36ebb3a3 编写于 作者: 傻拖

增加金格控件

上级 1e3621b5
{
"copyright": "金格科技iWebOffice2015智能文档中间件[演示版];V5.0S0xGAAEAAAAAAAAAEAAAAJ0BAACgAQAALAAAAFgHOIQT3Ejo2JZMmSVxBkTixI2YkNh+cy/HGFlQ3HNIRG8j2V9vAnBWM8B384zkV79hltghTpDkba9QJTjGCDkylzhl3rian7v/AFF5DXQ7HdoXpN2imHbGHf8ieQNf672v38ODXJum7VaWv4P3DXzlzdnmzoaTTukFl+3ntFH29dQSjC94c4v0npn9rnXK5OsjJGR5mVGJJd6GWjE9rP3fo+kWCBYzb+bhn2sL+SKoyFjUuSptNHsOn3nRKrXyqkRd+QaHR/MDuKd1kEbUpRqCz9CjgfZFX00Zaz2l6ChA6LmdMMjjECalHZQA9WuxAc7cynGbvNfEgi277ahRpSZHmjKY5s18dJM/t9gdatg5b/dCqnUEn0+HS511XaM3xvy4DCVnD1n8xC9I5w+16NGrtTMiMSZFpc3QJphdShC0j+1l/ZyVj33YM31JmuxkI5SDL2CAfMUNsioseUfpOKvpxdcA7nmwlKrpxNetm9Bq0kwJn/jUU2bQa2c+bPRX82JcmFUwAz0ctOQ+Tyi+MoRpATEYW35KZtWepeDTGHJRfaJR81x8dVU0Lp1TuxtQiw==",
"version": "12,7,0,828",
"clsid": "D89F482C-5045-4DB5-8C53-D2C9EE71D025",
"codeBase": "../o2_lib/iWebOffice/iWebOffice2015.cab",
"version64" : "12,5,0,652",
"clsid64" : "D89F482C-5045-4DB5-8C53-D2C9EE71D024",
"codeBase64": "../o2_lib/iWebOffice/iWebOffice2015.cab"
}
......@@ -202,6 +202,11 @@
"text": MWF.xApplication.process.FormDesigner.LP.modules.office,
"className": "Office"
},
"iWebOffice": {
"icon": "office.png",
"text": "iWebOffice",
"className": "IWebOffice"
},
"statementSelector": {
"icon": "statementSelector.png",
"text": MWF.xApplication.process.FormDesigner.LP.modules.statementSelector,
......
MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
MWF.xDesktop.requireApp("process.FormDesigner", "Module.$Element", null, false);
MWF.xApplication.process.FormDesigner.Module.IWebOffice = MWF.FCIWebOffice = new Class({
Extends: MWF.FC$Element,
Implements: [Options, Events],
options: {
"style": "default",
"propertyPath": "../x_component_process_FormDesigner/Module/IWebOffice/office.html"
},
initialize: function(form, options){
this.setOptions(options);
this.path = "../x_component_process_FormDesigner/Module/IWebOffice/";
this.cssPath = "../x_component_process_FormDesigner/Module/IWebOffice/"+this.options.style+"/css.wcss";
this._loadCss();
this.moduleType = "element";
this.moduleName = "iWebOffice";
this.form = form;
this.container = null;
this.containerNode = null;
},
_createMoveNode: function(){
this.moveNode = new Element("div", {
"MWFType": "iWebOffice",
"id": this.json.id,
"styles": this.css.moduleNodeMove,
"events": {
"selectstart": function(){
return false;
}
}
}).inject(this.form.container);
},
_createNode: function(){
this.node = this.moveNode.clone(true, true);
this.node.setStyles(this.css.moduleNode);
this.node.set("id", this.json.id);
this.node.addEvent("selectstart", function(){
return false;
});
this.iconNode = new Element("div", {
"styles": this.css.iconNode
}).inject(this.node);
var icon = new Element("div", {
"styles": this.css.iconNodeIcon
}).inject(this.iconNode);
var text = new Element("div", {
"styles": this.css.iconNodeText,
"text": "IWebOffice"
}).inject(this.iconNode);
this.setIcon();
},
_loadNodeStyles: function(){
this.iconNode = this.node.getElement("div").setStyles(this.css.iconNode);
this.iconNode.getFirst("div").setStyles(this.css.iconNodeIcon);
this.iconNode.getLast("div").setStyles(this.css.iconNodeText);
this.setIcon();
},
setIconNode: function(img, txt, color, width){
if (this.iconNode){
this.iconNode.setStyle("width", width);
var icon = this.iconNode.getFirst();
var text = this.iconNode.getLast();
icon.setStyle("background-image", "url("+this.path+this.options.style+"/icon/"+img+".png)");
text.set("text", txt);
text.setStyles({
"color": color,
"width": width-34
});
}
},
setIcon: function(){
if (this.json.officeType=="word"){
this.setIconNode("word", "Word", "#2b5797", 90);
}
if (this.json.officeType=="excel"){
this.setIconNode("excel", "Excel", "#1e7145", 86);
}
if (this.json.officeType=="ppt"){
this.setIconNode("ppt", "PowerPoint", "#d04525", 130);
}
if (this.json.officeType=="other"){
this.setIconNode("office", "Office", "#f36523", 96);
}
},
_setEditStyle_custom: function(name){
if (name=="officeType"){
this.setIcon();
}
}
});
{
"moduleNodeMove": {
"border": "2px dashed #ffa200",
"height": "22px",
"line-height": "22px",
"overflow": "hidden",
"margin": "3px",
"display": "block",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "absolute",
"z-index": 10002,
"opacity": 0.7,
"width": "100px",
"cursor": "move",
"background-color": "#EEE"
},
"moduleNodeShow": {
"border": "1px dashed #333",
"height": "2px",
"cursor": "pointer",
"line-height": "22px",
"overflow": "hidden",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"display": "block",
"top": "auto",
"left": "auto",
"width": "auto",
"opacity": 0.5,
"background": "#ffa200"
},
"moduleNode": {
"border": "1px dashed #333",
"min-height": "300px",
"cursor": "pointer",
"line-height": "22px",
"overflow": "hidden",
"margin": "3px",
"-webkit-user-select": "none",
"-moz-user-select": "none",
"position": "static",
"display": "block",
"top": "auto",
"left": "auto",
"width": "auto",
"opacity": 1,
"background-color": "#ffffff"
},
"iconNode": {
"width": "100px",
"height": "34px",
"color": "#999",
"font-size": "12px",
"margin": "auto",
"margin-top": "36px",
// "background": "#FFF",
"position": "static",
"float": "none"
},
"iconNodeIcon":{
"width": "34px",
"height": "34px",
"background": "url("+"../x_component_process_FormDesigner/Module/Office/default/icon/office.png) 5px center no-repeat",
"float": "left"
},
"iconNodeText":{
"line-height": "34px",
"height": "34px",
"width": "66px",
"float": "right",
"font-family": "Gadugi",
"font-weight": "bold",
"font-size": "16px",
"color": "#f36523"
}
}
\ No newline at end of file
{
"id": "",
"name": "",
"type": "IWebOffice",
"description": "",
"officeType": "word",
"template": "",
"productCaption": "O2",
"productKey": "EDCC626CB85C9A1D3E0D7BDDDC2637753C596725",
// "makerCaption": "浙江兰德纵横网络技术股份有限公司",
// "makerKey": "E138DABB4AC26C2D8E09FAE59AB3BDE87AFB9D7B",
// "version": "5.0.3.1",
// "clsid": "A64E3073-2016-4baf-A89D-FFE1FAA10EC0",
// "codeBase": "../x_desktop/res/framework/officecontrol/OfficeControl.cab",
// "clsid64": "A64E3073-2016-4baf-A89D-FFE1FAA10EC0",
// "codeBase64": "../x_desktop/res/framework/officecontrol/OfficeControl.cab",
"isNotLoadNow": false,
"script": {
"code": "",
"html": ""
},
"ntkoEditProperties": {
"Titlebar": "0",
"Menubar": "0",
"ToolBars": "1",
"Statusbar": "0",
"BorderStyle": "1",
"IsNoCopy": "0"
},
"ntkoReadProperties": {
"Titlebar": "0",
"Menubar": "0",
"ToolBars": "0",
"Statusbar": "0",
"BorderStyle": "0",
"IsNoCopy": "0"
},
"menuReadButtons": ["revisions","fullscreen","preview"],
"menuEditButtons": ["revisions","fullscreen","toolbar","preview"],
"events": {
"redFile": {
"code": "",
"html": ""
},
"afterOpen": {
"code": "",
"html": ""
},
"afterOpenOffice": {
"code": "",
"html": ""
},
"afterCreate": {
"code": "",
"html": ""
},
"seal": {
"code": "",
"html": ""
},
"beforeSave": {
"code": "",
"html": ""
},
"afterSave": {
"code": "",
"html": ""
},
"afterCloseOffice": {
"code": "",
"html": ""
},
"click": {
"code": "",
"html": ""
},
"dblclick": {
"code": "",
"html": ""
},
"keydown": {
"code": "",
"html": ""
},
"keypress": {
"code": "",
"html": ""
},
"keyup": {
"code": "",
"html": ""
},
"mousedown": {
"code": "",
"html": ""
},
"mousemove": {
"code": "",
"html": ""
},
"mouseout": {
"code": "",
"html": ""
},
"mouseover": {
"code": "",
"html": ""
},
"mouseup": {
"code": "",
"html": ""
},
"focus": {
"code": "",
"html": ""
},
"blur": {
"code": "",
"html": ""
}
},
"properties": {},
"class": "",
"styles": {},
"container": ""
}
......@@ -26,7 +26,7 @@ MWF.xDesktop.requireApp("process.FormDesigner", "Module.Datagrid", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Datatable", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Datatemplate", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Subform", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.ViewSelector", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.ViewSelector", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.View", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Stat", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Html", null, false);
......@@ -39,6 +39,7 @@ MWF.xDesktop.requireApp("process.FormDesigner", "Module.Iframe", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Documenteditor", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Htmleditor", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Office", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.IWebOffice", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Attachment", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Orgfield", null, false);
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Org", null, false);
......
此差异已折叠。
......@@ -30,6 +30,7 @@ MWF.xApplication.process.Xform.require = function(callback){
["process.Xform", "Iframe"],
["process.Xform", "Htmleditor"],
["process.Xform", "Office"],
["process.Xform", "IWebOffice"],
["process.Xform", "Attachment"],
["process.Xform", "Actionbar"],
["process.Xform", "Sidebar"],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册