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
63363b29
Commit
63363b29
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/Shapes/SerializeWriter to function-closure
parent
66d472c2
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
22 deletions
+30
-22
build/configs/webexcel.json
build/configs/webexcel.json
+4
-4
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+4
-4
build/configs/webword.json
build/configs/webword.json
+4
-4
cell/model/clipboard.js
cell/model/clipboard.js
+1
-1
common/Charts/DrawingObjects.js
common/Charts/DrawingObjects.js
+2
-2
common/Shapes/SerializeWriter.js
common/Shapes/SerializeWriter.js
+9
-1
common/wordcopypaste.js
common/wordcopypaste.js
+2
-2
slide/Drawing/HtmlPage.js
slide/Drawing/HtmlPage.js
+1
-1
slide/api.js
slide/api.js
+2
-2
word/Editor/SerializeCommon.js
word/Editor/SerializeCommon.js
+1
-1
No files found.
build/configs/webexcel.json
View file @
63363b29
...
...
@@ -23,6 +23,10 @@
"../common/Drawings/Metafile.js"
,
"../common/FontsFreeType/TextMeasurer.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -58,9 +62,6 @@
"../common/Drawings/Externals.js"
,
"../common/GlobalLoaders.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/scroll.js"
,
"../cell/view/iscroll.js"
,
...
...
@@ -106,7 +107,6 @@
"../cell/view/EventsController.js"
,
"../cell/view/WorkbookView.js"
,
"../word/Editor/SerializeCommon.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../cell/view/DrawingObjectsController.js"
,
"../cell/model/DrawingObjects/Graphics.js"
,
"../common/Overlay.js"
,
...
...
This diff is collapsed.
Click to expand it.
build/configs/webpowerpoint.json
View file @
63363b29
...
...
@@ -23,6 +23,10 @@
"../common/Drawings/Metafile.js"
,
"../common/FontsFreeType/TextMeasurer.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -58,9 +62,6 @@
"../common/Drawings/Externals.js"
,
"../common/GlobalLoaders.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/scroll.js"
,
"../common/wordcopypaste.js"
,
...
...
@@ -93,7 +94,6 @@
"../slide/Drawing/Transitions.js"
,
"../slide/Drawing/DrawingDocument.js"
,
"../slide/Drawing/HtmlPage.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../word/Editor/SerializeCommon.js"
,
"../slide/Editor/Format/Presentation.js"
,
"../cell/view/DrawingObjectsController.js"
,
...
...
This diff is collapsed.
Click to expand it.
build/configs/webword.json
View file @
63363b29
...
...
@@ -26,6 +26,10 @@
"../common/Drawings/Metafile.js"
,
"../common/FontsFreeType/TextMeasurer.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../common/Drawings/Hit.js"
,
"../common/Drawings/ArcTo.js"
,
"../common/Drawings/ColorArray.js"
,
...
...
@@ -61,16 +65,12 @@
"../common/Drawings/Externals.js"
,
"../common/GlobalLoaders.js"
,
"../common/Shapes/EditorSettings.js"
,
"../common/Shapes/Serialize.js"
,
"../common/scroll.js"
,
"../common/Scrolls/iscroll.js"
,
"../common/wordcopypaste.js"
,
"../word/apiDefines.js"
,
"../common/Shapes/SerializeWriter.js"
,
"../word/Drawing/translations.js"
,
"../word/Editor/GraphicObjects/Format/ShapePrototype.js"
,
"../word/Editor/GraphicObjects/Format/ImagePrototype.js"
,
...
...
This diff is collapsed.
Click to expand it.
cell/model/clipboard.js
View file @
63363b29
...
...
@@ -4374,7 +4374,7 @@
this
.
bOccurEndPar
=
null
;
this
.
oCurHyperlink
=
null
;
this
.
oCurHyperlinkElem
=
null
;
this
.
oPresentationWriter
=
new
CBinaryFileWriter
();
this
.
oPresentationWriter
=
new
AscCommon
.
CBinaryFileWriter
();
}
CopyProcessor
.
prototype
=
{
...
...
This diff is collapsed.
Click to expand it.
common/Charts/DrawingObjects.js
View file @
63363b29
...
...
@@ -104,13 +104,13 @@ function asc_CChartBinary(chart) {
this
[
"
binary
"
]
=
writer
.
memory
.
pos
+
"
;
"
+
writer
.
memory
.
GetBase64Memory
();
if
(
chart
.
theme
)
{
pptx_writer
=
new
CBinaryFileWriter
();
pptx_writer
=
new
AscCommon
.
CBinaryFileWriter
();
pptx_writer
.
WriteTheme
(
chart
.
theme
);
this
[
"
themeBinary
"
]
=
pptx_writer
.
pos
+
"
;
"
+
pptx_writer
.
GetBase64Memory
();
}
if
(
chart
.
colorMapOverride
)
{
pptx_writer
=
new
CBinaryFileWriter
();
pptx_writer
=
new
AscCommon
.
CBinaryFileWriter
();
pptx_writer
.
WriteRecord1
(
1
,
chart
.
colorMapOverride
,
pptx_writer
.
WriteClrMap
);
this
[
"
colorMapBinary
"
]
=
pptx_writer
.
pos
+
"
;
"
+
pptx_writer
.
GetBase64Memory
();
}
...
...
This diff is collapsed.
Click to expand it.
common/Shapes/SerializeWriter.js
View file @
63363b29
"
use strict
"
;
(
function
(
window
,
undefined
){
// Import
var
c_dScalePPTXSizes
=
AscCommon
.
c_dScalePPTXSizes
;
var
g_nodeAttributeStart
=
AscCommon
.
g_nodeAttributeStart
;
...
...
@@ -4126,4 +4128,10 @@ function CBinaryFileWriter()
oThis
.
WriteRecord2
(
1
,
_border
.
LineRef
,
oThis
.
WriteStyleRef
);
}
// --------------------------------------------------------------------------
};
\ No newline at end of file
}
//--------------------------------------------------------export----------------------------------------------------
window
[
'
AscCommon
'
]
=
window
[
'
AscCommon
'
]
||
{};
window
[
'
AscCommon
'
].
GUID
=
GUID
;
window
[
'
AscCommon
'
].
CBinaryFileWriter
=
CBinaryFileWriter
;
})(
window
);
This diff is collapsed.
Click to expand it.
common/wordcopypaste.js
View file @
63363b29
...
...
@@ -600,7 +600,7 @@ function CopyProcessor(api, onlyBinaryCopy)
this
.
onlyBinaryCopy
=
onlyBinaryCopy
;
this
.
oBinaryFileWriter
=
new
BinaryFileWriter
(
this
.
oDocument
);
this
.
oPresentationWriter
=
new
CBinaryFileWriter
();
this
.
oPresentationWriter
=
new
AscCommon
.
CBinaryFileWriter
();
this
.
oPresentationWriter
.
Start_UseFullUrl
();
if
(
this
.
api
.
ThemeLoader
)
{
this
.
oPresentationWriter
.
Start_UseDocumentOrigin
(
this
.
api
.
ThemeLoader
.
ThemesUrlAbs
);
...
...
@@ -1967,7 +1967,7 @@ CopyProcessor.prototype =
{
if
(
presentation
.
TableStylesIdMap
.
hasOwnProperty
(
key
))
{
this
.
oPresentationWriter
.
tableStylesGuides
[
key
]
=
"
{
"
+
GUID
()
+
"
}
"
this
.
oPresentationWriter
.
tableStylesGuides
[
key
]
=
"
{
"
+
AscCommon
.
GUID
()
+
"
}
"
}
}
...
...
This diff is collapsed.
Click to expand it.
slide/Drawing/HtmlPage.js
View file @
63363b29
...
...
@@ -3635,7 +3635,7 @@ function CEditorPage(api)
this
.
SaveDocument
=
function
()
{
var
writer
=
new
CBinaryFileWriter
();
var
writer
=
new
AscCommon
.
CBinaryFileWriter
();
this
.
m_oLogicDocument
.
CalculateComments
();
var
str
=
writer
.
WriteDocument
(
this
.
m_oLogicDocument
);
return
str
;
...
...
This diff is collapsed.
Click to expand it.
slide/api.js
View file @
63363b29
...
...
@@ -4918,14 +4918,14 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isF
window
[
"
asc_docs_api
"
].
prototype
[
"
asc_nativeGetFile
"
]
=
function
()
{
var
writer
=
new
CBinaryFileWriter
();
var
writer
=
new
AscCommon
.
CBinaryFileWriter
();
this
.
WordControl
.
m_oLogicDocument
.
CalculateComments
();
return
writer
.
WriteDocument
(
this
.
WordControl
.
m_oLogicDocument
);
}
window
[
"
asc_docs_api
"
].
prototype
[
"
asc_nativeGetFileData
"
]
=
function
()
{
var
writer
=
new
CBinaryFileWriter
();
var
writer
=
new
AscCommon
.
CBinaryFileWriter
();
this
.
WordControl
.
m_oLogicDocument
.
CalculateComments
();
writer
.
WriteDocument2
(
this
.
WordControl
.
m_oLogicDocument
);
...
...
This diff is collapsed.
Click to expand it.
word/Editor/SerializeCommon.js
View file @
63363b29
...
...
@@ -752,7 +752,7 @@ function CPPTXContentLoader()
function
CPPTXContentWriter
()
{
this
.
BinaryFileWriter
=
new
CBinaryFileWriter
();
this
.
BinaryFileWriter
=
new
AscCommon
.
CBinaryFileWriter
();
this
.
BinaryFileWriter
.
Init
();
//this.BinaryFileWriter.IsWordWriter = true;
...
...
This diff is collapsed.
Click to expand it.
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