1+ <!DOCTYPE html>
2+ < html >
3+
4+ < head >
5+ < meta charset ="utf-8 " />
6+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
7+ < title > SpreadJS Designer</ title >
8+ < link href ="./SpreadJS/css/gc.spread.sheets.excel2013white.css " rel ="stylesheet " type ="text/css " />
9+ < link href ="./ui/ribbon/lib/css/gc.spread.sheets.designer.min.css " rel ="stylesheet " type ="text/css ">
10+ < link href ="./ui/ribbon/custom.css " rel ="stylesheet " type ="text/css ">
11+ </ head >
12+
13+ < body unselectable ="on ">
14+ < div class ="loading-placeholder background-mask-layer "> </ div >
15+ < span class ="loading-placeholder loading-pic "> </ span >
16+ < div id ="gc-designer-container "> </ div >
17+
18+ <!-- run minified source -->
19+ < script src ="./scripts/getTimezoneOffset.js "> </ script >
20+ < script src ="./SpreadJS/scripts/gc.spread.sheets.all.min.js "> </ script >
21+ < script src ="./SpreadJS/scripts/gc.spread.sheets.charts.min.js "> </ script >
22+ < script src ="./SpreadJS/scripts/gc.spread.sheets.shapes.min.js "> </ script >
23+ < script src ="./SpreadJS/scripts/gc.spread.sheets.slicers.min.js "> </ script >
24+ < script src ="./SpreadJS/scripts/gc.spread.sheets.print.min.js "> </ script >
25+ < script src ="./SpreadJS/scripts/gc.spread.sheets.barcode.min.js "> </ script >
26+ < script src ="./SpreadJS/scripts/gc.spread.sheets.pdf.min.js "> </ script >
27+ < script src ="./SpreadJS/scripts/gc.spread.pivot.pivottables.min.js "> </ script >
28+ < script src ="./SpreadJS/scripts/gc.spread.sheets.tablesheet.min.js "> </ script >
29+ < script src ="./SpreadJS/scripts/gc.spread.sheets.ganttsheet.min.js "> </ script >
30+ < script src ="./SpreadJS/scripts/gc.spread.sheets.formulapanel.min.js "> </ script >
31+ < script src ="./SpreadJS/scripts/gc.spread.excelio.min.js "> </ script >
32+ < script src ="./SpreadJS/scripts/gc.spread.sheets.io.min.js "> </ script >
33+ < script src ="./SpreadJS/scripts/gc.spread.calcengine.languagepackages.min.js "> </ script >
34+ <!-- -->
35+
36+ <!-- Load localized resource file -->
37+ < script type ="application/javascript "
38+ src ="./___LOCALIZATION___.lproj/gc.spread.sheets.resources.___LOCALIZATION___.min.js "> </ script >
39+ < script type ="application/javascript "
40+ src ="./___LOCALIZATION___.lproj/designer_localization_resources.___LOCALIZATION___.js "> </ script >
41+ < script type ="application/javascript " src ="./___LOCALIZATION___.lproj/contextMenu.js "> </ script >
42+ < script >
43+ var vp_localizedFolder = '___LOCALIZATION___.lproj' ;
44+ let vp_fonts = ___FONTS___ ;
45+
46+ ( function ( ) {
47+ // call the language package to translate the command names
48+ let lang = vp_localizedFolder . substring ( 0 , 2 ) ;
49+ if ( ( lang != '' ) && ( lang != 'en' ) ) {
50+ GC . Spread . CalcEngine . LanguagePackages . languagePackages ( lang ) ;
51+ }
52+
53+ if ( vp_localizedFolder === 'ja.lproj' ) {
54+ GC . Spread . Common . CultureManager . culture ( "ja-jp" ) ;
55+ } else if ( vp_localizedFolder === 'fr.lproj' ) {
56+ GC . Spread . Common . CultureManager . culture ( "fr-FR" ) ;
57+ } else if ( vp_localizedFolder === 'de.lproj' ) {
58+ GC . Spread . Common . CultureManager . culture ( "de-DE" ) ;
59+ } else if ( vp_localizedFolder === 'es.lproj' ) {
60+ GC . Spread . Common . CultureManager . culture ( "es-ES" ) ;
61+ } else if ( vp_localizedFolder === 'cs.lproj' ) {
62+ GC . Spread . Common . CultureManager . culture ( "cs-CZ" ) ;
63+ } else if ( vp_localizedFolder === 'pt.lproj' ) {
64+ GC . Spread . Common . CultureManager . culture ( "pt-PT" ) ;
65+ }
66+ } ) ( ) ;
67+ //# sourceURL=init_language.js
68+ </ script >
69+
70+ < script src ="./scripts/custom-designer-functions.js "> </ script >
71+
72+ <!-- -------------- -->
73+ <!-- run minified -->
74+ < script
75+ src ="./ui/ribbon/lib/scripts/gc.spread.sheets.designer.resource.___DESIGNER_LOCALIZATION___.min.js "> </ script >
76+ < script >
77+ var vp_insertFunctionDialogTemplate = null ;
78+ ( function ( ) {
79+ // we must inject the system fonts now after initializing designer resources
80+ // and before initializing designer code, if we did it later then the font list is not upddated in the ribbon
81+ if ( vp_fonts . length > 0 ) {
82+ let ff_fonts = { } ;
83+ let font_list = { } ;
84+
85+ for ( let i = 0 ; i < vp_fonts . length ; i ++ ) {
86+ var value = vp_fonts [ i ] . replace ( / " / g, '' ) ;
87+ ff_fonts [ "ff" + ( i + 1 ) ] = { name : vp_fonts [ i ] , text : value } ;
88+ font_list [ vp_fonts [ i ] ] = vp_fonts [ i ] ;
89+ }
90+
91+ GC . Spread . Sheets . Designer . DR . res . fontPicker . fontFamilies = font_list ; // {Arial:"Arial",Times:"Times",...}
92+ GC . Spread . Sheets . Designer . DR . res . ribbon . fontFamilies = ff_fonts ; // {ff1:{name:'Arial',text:'Arial'},ff2... }
93+ }
94+ let custom = vp_designerResources . ribbon . formulas . custom ;
95+ GC . Spread . Sheets . Designer . DR . res . insertFunctionDialog . functionCategorys += ( "," + custom ) ;
96+
97+ if ( vp_designerResources . insertFunctionDialog != null ) {
98+ GC . Spread . Sheets . Designer . DR . res . insertFunctionDialog . title = vp_designerResources . insertFunctionDialog . title ;
99+ GC . Spread . Sheets . Designer . DR . res . insertFunctionDialog . functionCategory = vp_designerResources . insertFunctionDialog . functionCategory ;
100+ GC . Spread . Sheets . Designer . DR . res . insertFunctionDialog . functionList = vp_designerResources . insertFunctionDialog . functionList ;
101+ GC . Spread . Sheets . Designer . DR . res . insertFunctionDialog . formula = vp_designerResources . insertFunctionDialog . formula ;
102+ }
103+
104+ GC . Spread . Sheets . Designer . DR . res . ribbon . formulas . custom = custom ;
105+ } ) ( ) ;
106+ //# sourceURL=init_fonts.js
107+ </ script >
108+ < script src ="./ui/ribbon/lib/scripts/gc.spread.sheets.designer.all.min.js "> </ script >
109+
110+ < script >
111+ ( function ( ) {
112+ function mergeResources ( res1 , res2 ) {
113+
114+ for ( var propertyName in res1 ) {
115+ if ( res2 [ propertyName ] != null ) {
116+ if ( ( typeof ( res1 [ propertyName ] ) == "object" )
117+ && ( typeof ( res2 [ propertyName ] ) == "object" ) )
118+ mergeResources ( res1 [ propertyName ] , res2 [ propertyName ] ) ;
119+ else
120+ res1 [ propertyName ] = res2 [ propertyName ] ;
121+ }
122+ }
123+ }
124+
125+ let res = GC . Spread . Sheets . Designer . getResources ( ) ;
126+ mergeResources ( res , vp_designerResources ) ;
127+ GC . Spread . Sheets . Designer . setResources ( res ) ;
128+ } ) ( ) ;
129+ //# sourceURL=init_resources.js
130+ </ script >
131+
132+ <!-- -------------- -->
133+
134+ <!-- View Pro specific -->
135+ < script src ="./scripts/init.js "> </ script >
136+ < script src ="./scripts/utils.js "> </ script >
137+ < script src ="./scripts/custom-types.js "> </ script >
138+ < script src ="./scripts/custom-function-helpers.js "> </ script >
139+ < script src ="./scripts/custom-functions.js "> </ script >
140+
141+ < script src ="./4dviewpro.js "> </ script >
142+
143+ <!-- View Pro Commands -->
144+ < script src ="./scripts/commands/values.js "> </ script >
145+ < script src ="./scripts/commands/file.js "> </ script >
146+ < script src ="./scripts/commands/print.js "> </ script >
147+ < script src ="./scripts/commands/style.js "> </ script >
148+ < script src ="./scripts/commands/names.js "> </ script >
149+ < script src ="./scripts/commands/sheets.js "> </ script >
150+ < script src ="./scripts/commands/events.js "> </ script >
151+ < script src ="./scripts/commands/utilities.js "> </ script >
152+ < script src ="./scripts/commands/spans.js "> </ script >
153+ < script src ="./scripts/commands/rows-and-columns.js "> </ script >
154+ < script src ="./scripts/commands/clipboard.js "> </ script >
155+ < script src ="./scripts/commands/data-context.js "> </ script >
156+ < script src ="./scripts/commands/workbook.js "> </ script >
157+ < script src ="./scripts/commands/tables.js "> </ script >
158+
159+ < script type ="text/javascript ">
160+ var spread = null ;
161+ var designer = null ;
162+
163+ window . onload = function ( ) {
164+
165+ //Apply License
166+ GC . Spread . Sheets . LicenseKey = "___LICENSE_KEY___" ;
167+ GC . Spread . Sheets . Designer . LicenseKey = "___DESIGNER_LICENSE_KEY___" ;
168+
169+ let config = GC . Spread . Sheets . Designer . DefaultConfig ;
170+
171+ config . contextMenu = config . contextMenu . concat ( [
172+ "separator" ,
173+ "DesignerInsertPageBreak" ,
174+ "DesignerInsertColPageBreak" ,
175+ "DesignerInsertRowPageBreak" ,
176+ "DesignerRemovePageBreak" ,
177+ "DesignerRemoveColPageBreak" ,
178+ "DesignerRemoveRowPageBreak"
179+ ] ) ;
180+
181+ designer = new GC . Spread . Sheets . Designer . Designer ( document . getElementById ( "gc-designer-container" ) , config ) ;
182+ spread = designer . Spread ;
183+ }
184+ //# sourceURL=designerInit.js
185+ </ script >
186+ </ body >
187+
188+ </ html >
0 commit comments