Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
472d4436
Commit
472d4436
authored
Apr 26, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slide/themes/Themes to function-closure
parent
70e9e3d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
20 deletions
+29
-20
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+2
-0
slide/api.js
slide/api.js
+3
-3
slide/apiCommon.js
slide/apiCommon.js
+15
-9
slide/apiExport.js
slide/apiExport.js
+1
-7
slide/themes/Themes.js
slide/themes/Themes.js
+8
-1
No files found.
build/configs/webpowerpoint.json
View file @
472d4436
...
@@ -66,6 +66,8 @@
...
@@ -66,6 +66,8 @@
"../common/wordcopypaste.js"
,
"../common/wordcopypaste.js"
,
"../slide/apiDefines.js"
,
"../slide/apiDefines.js"
,
"../slide/themes/Themes.js"
,
"../slide/Drawing/ThemeLoader.js"
,
"../slide/Drawing/ThemeLoader.js"
,
"../word/Editor/Serialize2.js"
,
"../word/Editor/Serialize2.js"
,
"../word/Editor/Styles.js"
,
"../word/Editor/Styles.js"
,
...
...
slide/api.js
View file @
472d4436
...
@@ -3633,9 +3633,9 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
...
@@ -3633,9 +3633,9 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
theme_load_info
.
Layouts
[
j
]
=
_masters
[
i
].
sldLayoutLst
[
j
];
theme_load_info
.
Layouts
[
j
]
=
_masters
[
i
].
sldLayoutLst
[
j
];
var
th_info
=
{};
var
th_info
=
{};
th_info
[
"
Name
"
]
=
"
Doc Theme
"
+
i
;
th_info
.
Name
=
"
Doc Theme
"
+
i
;
th_info
[
"
Url
"
]
=
""
;
th_info
.
Url
=
""
;
th_info
[
"
Thumbnail
"
]
=
_masters
[
i
].
ImageBase64
;
th_info
.
Thumbnail
=
_masters
[
i
].
ImageBase64
;
var
th
=
new
CAscThemeInfo
(
th_info
);
var
th
=
new
CAscThemeInfo
(
th_info
);
this
.
ThemeLoader
.
Themes
.
DocumentThemes
[
this
.
ThemeLoader
.
Themes
.
DocumentThemes
.
length
]
=
th
;
this
.
ThemeLoader
.
Themes
.
DocumentThemes
[
this
.
ThemeLoader
.
Themes
.
DocumentThemes
.
length
]
=
th
;
...
...
slide/apiCommon.js
View file @
472d4436
...
@@ -192,28 +192,28 @@ CAscSlideProps.prototype.put_LockRemove = function(v){this.lockRemove = v;}
...
@@ -192,28 +192,28 @@ CAscSlideProps.prototype.put_LockRemove = function(v){this.lockRemove = v;}
function
CAscThemeInfo
(
themeInfo
)
function
CAscThemeInfo
(
themeInfo
)
{
{
this
.
Obj
=
themeInfo
;
this
.
ThemeInfo
=
themeInfo
;
this
.
Index
=
-
1000
;
this
.
Index
=
-
1000
;
}
}
CAscThemeInfo
.
prototype
.
get_Name
=
function
()
{
return
this
.
Obj
[
"
Name
"
];
}
CAscThemeInfo
.
prototype
.
get_Name
=
function
()
{
return
this
.
ThemeInfo
.
Name
;
};
CAscThemeInfo
.
prototype
.
get_Url
=
function
()
{
return
this
.
Obj
[
"
Url
"
];
}
CAscThemeInfo
.
prototype
.
get_Url
=
function
()
{
return
this
.
ThemeInfo
.
Url
;
};
CAscThemeInfo
.
prototype
.
get_Image
=
function
()
{
return
this
.
Obj
[
"
Thumbnail
"
];
}
CAscThemeInfo
.
prototype
.
get_Image
=
function
()
{
return
this
.
ThemeInfo
.
Thumbnail
;
};
CAscThemeInfo
.
prototype
.
get_Index
=
function
()
{
return
this
.
Index
;
}
CAscThemeInfo
.
prototype
.
get_Index
=
function
()
{
return
this
.
Index
;
}
;
function
CAscThemes
()
function
CAscThemes
()
{
{
this
.
EditorThemes
=
[];
this
.
EditorThemes
=
[];
this
.
DocumentThemes
=
[];
this
.
DocumentThemes
=
[];
var
_count
=
_presentation_editor_themes
.
length
;
var
_count
=
AscCommon
.
_presentation_editor_themes
.
length
;
for
(
var
i
=
0
;
i
<
_count
;
i
++
)
for
(
var
i
=
0
;
i
<
_count
;
i
++
)
{
{
this
.
EditorThemes
[
i
]
=
new
CAscThemeInfo
(
_presentation_editor_themes
[
i
]);
this
.
EditorThemes
[
i
]
=
new
CAscThemeInfo
(
AscCommon
.
_presentation_editor_themes
[
i
]);
this
.
EditorThemes
[
i
].
Index
=
i
;
this
.
EditorThemes
[
i
].
Index
=
i
;
}
}
}
}
CAscThemes
.
prototype
.
get_EditorThemes
=
function
(){
return
this
.
EditorThemes
;
}
CAscThemes
.
prototype
.
get_EditorThemes
=
function
(){
return
this
.
EditorThemes
;
}
;
CAscThemes
.
prototype
.
get_DocumentThemes
=
function
(){
return
this
.
DocumentThemes
;
}
CAscThemes
.
prototype
.
get_DocumentThemes
=
function
(){
return
this
.
DocumentThemes
;
}
;
// ---------------------------------------------------------------
// ---------------------------------------------------------------
...
@@ -1183,3 +1183,9 @@ function CAscTableStyle()
...
@@ -1183,3 +1183,9 @@ function CAscTableStyle()
CAscTableStyle
.
prototype
.
get_Id
=
function
(){
return
this
.
Id
;
}
CAscTableStyle
.
prototype
.
get_Id
=
function
(){
return
this
.
Id
;
}
CAscTableStyle
.
prototype
.
get_Image
=
function
(){
return
this
.
Image
;
}
CAscTableStyle
.
prototype
.
get_Image
=
function
(){
return
this
.
Image
;
}
CAscTableStyle
.
prototype
.
get_Type
=
function
(){
return
this
.
Type
;
}
CAscTableStyle
.
prototype
.
get_Type
=
function
(){
return
this
.
Type
;
}
//------------------------------------------------------------export----------------------------------------------------
CAscThemeInfo
.
prototype
[
'
get_Name
'
]
=
CAscThemeInfo
.
prototype
.
get_Name
;
CAscThemeInfo
.
prototype
[
'
get_Url
'
]
=
CAscThemeInfo
.
prototype
.
get_Url
;
CAscThemeInfo
.
prototype
[
'
get_Image
'
]
=
CAscThemeInfo
.
prototype
.
get_Image
;
CAscThemeInfo
.
prototype
[
'
get_Index
'
]
=
CAscThemeInfo
.
prototype
.
get_Index
;
slide/apiExport.js
View file @
472d4436
if
(
undefined
===
window
[
'
Asc
'
])
{
window
[
'
Asc
'
]
=
window
[
'
Asc
'
]
||
{};
window
[
'
Asc
'
]
=
{};
}
window
[
'
Asc
'
][
'
asc_docs_api
'
]
=
asc_docs_api
;
window
[
'
Asc
'
][
'
asc_docs_api
'
]
=
asc_docs_api
;
asc_docs_api
.
prototype
[
'
asc_GetFontThumbnailsPath
'
]
=
asc_docs_api
.
prototype
.
asc_GetFontThumbnailsPath
;
asc_docs_api
.
prototype
[
'
asc_GetFontThumbnailsPath
'
]
=
asc_docs_api
.
prototype
.
asc_GetFontThumbnailsPath
;
asc_docs_api
.
prototype
[
'
pre_Save
'
]
=
asc_docs_api
.
prototype
.
pre_Save
;
asc_docs_api
.
prototype
[
'
pre_Save
'
]
=
asc_docs_api
.
prototype
.
pre_Save
;
...
@@ -467,10 +465,6 @@ CAscSlideProps.prototype['get_LockTranzition'] = CAscSlideProps.prototype.get_Lo
...
@@ -467,10 +465,6 @@ CAscSlideProps.prototype['get_LockTranzition'] = CAscSlideProps.prototype.get_Lo
CAscSlideProps
.
prototype
[
'
put_LockTranzition
'
]
=
CAscSlideProps
.
prototype
.
put_LockTranzition
;
CAscSlideProps
.
prototype
[
'
put_LockTranzition
'
]
=
CAscSlideProps
.
prototype
.
put_LockTranzition
;
CAscSlideProps
.
prototype
[
'
get_LockRemove
'
]
=
CAscSlideProps
.
prototype
.
get_LockRemove
;
CAscSlideProps
.
prototype
[
'
get_LockRemove
'
]
=
CAscSlideProps
.
prototype
.
get_LockRemove
;
CAscSlideProps
.
prototype
[
'
put_LockRemove
'
]
=
CAscSlideProps
.
prototype
.
put_LockRemove
;
CAscSlideProps
.
prototype
[
'
put_LockRemove
'
]
=
CAscSlideProps
.
prototype
.
put_LockRemove
;
CAscThemeInfo
.
prototype
[
'
get_Name
'
]
=
CAscThemeInfo
.
prototype
.
get_Name
;
CAscThemeInfo
.
prototype
[
'
get_Url
'
]
=
CAscThemeInfo
.
prototype
.
get_Url
;
CAscThemeInfo
.
prototype
[
'
get_Image
'
]
=
CAscThemeInfo
.
prototype
.
get_Image
;
CAscThemeInfo
.
prototype
[
'
get_Index
'
]
=
CAscThemeInfo
.
prototype
.
get_Index
;
CAscThemes
.
prototype
[
'
get_EditorThemes
'
]
=
CAscThemes
.
prototype
.
get_EditorThemes
;
CAscThemes
.
prototype
[
'
get_EditorThemes
'
]
=
CAscThemes
.
prototype
.
get_EditorThemes
;
CAscThemes
.
prototype
[
'
get_DocumentThemes
'
]
=
CAscThemes
.
prototype
.
get_DocumentThemes
;
CAscThemes
.
prototype
[
'
get_DocumentThemes
'
]
=
CAscThemes
.
prototype
.
get_DocumentThemes
;
window
[
'
Asc
'
][
'
CAscChartProp
'
]
=
CAscChartProp
;
window
[
'
Asc
'
][
'
CAscChartProp
'
]
=
CAscChartProp
;
...
...
slide/themes/Themes.js
View file @
472d4436
"
use strict
"
;
"
use strict
"
;
(
function
(
window
,
undefined
){
var
_presentation_editor_themes
=
[];
var
_presentation_editor_themes
=
[];
_presentation_editor_themes
[
0
]
=
{
_presentation_editor_themes
[
0
]
=
{
...
@@ -66,4 +68,9 @@ _presentation_editor_themes[10] = {
...
@@ -66,4 +68,9 @@ _presentation_editor_themes[10] = {
Name
:
"
turtle
"
,
Name
:
"
turtle
"
,
Url
:
"
/theme11/
"
,
Url
:
"
/theme11/
"
,
Thumbnail
:
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAAAmCAYAAAC1Q9c1AAAG5UlEQVRoQ+2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HWJiADiQN2DUqWP9bUbAFVXYCGWn3Wvl9+kEJFDFS5SKXFc9UakDZgK7HPqwb8DdSfcho176Pqt1j6L/lHzbnof2qopOFnzbmM7/+iP34p05z7vTiNkv5u0ZyrTfmOev/8QXMu4Nd/OeVoWSfx6hz50ynqNPpARORKIoLN3+mxUKFG5Q6VvfnTKDi94wRUScBlsB4LVblIUdGlhw8fYv92UBWqvAelN/bYnCovyNkFSU+R1gqZ8MdflYptvHHjxslJ1+K8V69eSXjzqX4Zp/flalsCi2LE/yGMsd8q/40Aqi1aYq33UsIqsWVyVoXXW5PevFzoTaIH5zeV6nCCWQZMZ94wQAOQbLIB2t6XeINR4fUgquflTs7idQqefH/nMWi5CaYd3YxstvFTr8VEDhVvYgftHo3CFX8KBS9r+h+3SM28ZOCggQAAAABJRU5ErkJggg==
"
};
};
\ No newline at end of file
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
'
AscCommon
'
].
_presentation_editor_themes
=
_presentation_editor_themes
;
})(
window
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment