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
c91cf59a
Commit
c91cf59a
authored
Jul 06, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/4.0.1' into develop
parents
aebbb827
b8859a32
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
42 deletions
+50
-42
cell/api.js
cell/api.js
+10
-2
common/Shapes/SerializeWriter.js
common/Shapes/SerializeWriter.js
+1
-1
common/plugins.js
common/plugins.js
+38
-38
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+1
-1
No files found.
cell/api.js
View file @
c91cf59a
...
@@ -3216,6 +3216,16 @@ var editor;
...
@@ -3216,6 +3216,16 @@ var editor;
return
_ret
.
data
;
return
_ret
.
data
;
};
};
spreadsheet_api
.
prototype
.
asc_canPaste
=
function
()
{
History
.
Create_NewPoint
();
History
.
StartTransaction
();
return
true
;
};
spreadsheet_api
.
prototype
.
asc_Recalculate
=
function
()
{
History
.
EndTransaction
();
this
.
_onUpdateAfterApplyChanges
();
};
spreadsheet_api
.
prototype
.
_onEndLoadSdk
=
function
()
{
spreadsheet_api
.
prototype
.
_onEndLoadSdk
=
function
()
{
History
=
AscCommon
.
History
;
History
=
AscCommon
.
History
;
...
@@ -3512,6 +3522,4 @@ var editor;
...
@@ -3512,6 +3522,4 @@ var editor;
prot
[
"
asc_pluginButtonClick
"
]
=
prot
.
asc_pluginButtonClick
;
prot
[
"
asc_pluginButtonClick
"
]
=
prot
.
asc_pluginButtonClick
;
prot
[
"
asc_addOleObject
"
]
=
prot
.
asc_addOleObject
;
prot
[
"
asc_addOleObject
"
]
=
prot
.
asc_addOleObject
;
prot
[
"
asc_editOleObject
"
]
=
prot
.
asc_editOleObject
;
prot
[
"
asc_editOleObject
"
]
=
prot
.
asc_editOleObject
;
prot
[
"
asc_Recalculate
"
]
=
prot
.
asc_Recalculate
;
prot
[
"
asc_canPaste
"
]
=
prot
.
asc_canPaste
;
})(
window
);
})(
window
);
common/Shapes/SerializeWriter.js
View file @
c91cf59a
...
@@ -3180,8 +3180,8 @@ function CBinaryFileWriter()
...
@@ -3180,8 +3180,8 @@ function CBinaryFileWriter()
fMaxBottomBorder
=
oBorders
.
Bottom
.
Size
;
fMaxBottomBorder
=
oBorders
.
Bottom
.
Size
;
}
}
}
}
}
oThis
.
_WriteInt1
(
0
,
(
(
row
.
Pr
.
Height
.
Value
+
fMaxBottomMargin
+
fMaxTopMargin
+
fMaxTopBorder
+
fMaxBottomBorder
)
*
36000
)
>>
0
);
oThis
.
_WriteInt1
(
0
,
(
(
row
.
Pr
.
Height
.
Value
+
fMaxBottomMargin
+
fMaxTopMargin
+
fMaxTopBorder
+
fMaxBottomBorder
)
*
36000
)
>>
0
);
}
oThis
.
WriteUChar
(
g_nodeAttributeEnd
);
oThis
.
WriteUChar
(
g_nodeAttributeEnd
);
...
...
common/plugins.js
View file @
c91cf59a
...
@@ -348,48 +348,48 @@
...
@@ -348,48 +348,48 @@
window
.
g_asc_plugins
.
closeAttackTimer
=
-
1
;
window
.
g_asc_plugins
.
closeAttackTimer
=
-
1
;
}
}
if
(
value
&&
value
!=
""
)
if
(
value
&&
value
!=
""
)
{
{
try
{
try
if
(
window
.
g_asc_plugins
.
api
.
asc_canPaste
())
{
{
var
_script
=
"
(function(){ var Api = window.g_asc_plugins.api;
\n
"
+
value
+
"
})();
"
;
if
(
window
.
g_asc_plugins
.
api
.
asc_canPaste
())
eval
(
_script
);
{
var
_script
=
"
(function(){ var Api = window.g_asc_plugins.api;
\n
"
+
value
+
"
})();
"
;
if
(
pluginData
.
getAttribute
(
"
recalculate
"
)
==
true
)
{
eval
(
_script
);
var
editorId
=
window
.
g_asc_plugins
.
api
.
getEditorId
();
if
(
AscCommon
.
c_oEditorId
.
Word
===
editorId
)
{
var
oLogicDocument
=
window
.
g_asc_plugins
.
api
.
WordControl
?
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
:
null
;
var
oLogicDocument
=
window
.
g_asc_plugins
.
api
.
WordControl
?
if
(
pluginData
.
getAttribute
(
"
recalculate
"
)
==
true
)
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
:
null
;
{
var
_fonts
=
oLogicDocument
.
Document_Get_AllFontNames
();
var
_fonts
=
oLogicDocument
.
Document_Get_AllFontNames
();
var
_imagesArray
=
oLogicDocument
.
Get_AllImageUrls
();
var
_imagesArray
=
oLogicDocument
.
Get_AllImageUrls
();
var
_images
=
{};
var
_images
=
{};
for
(
var
i
=
0
;
i
<
_imagesArray
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
_imagesArray
.
length
;
i
++
)
_images
[
_imagesArray
[
i
]]
=
_imagesArray
[
i
];
{
_images
[
_imagesArray
[
i
]]
=
_imagesArray
[
i
];
}
window
.
g_asc_plugins
.
images_rename
=
_images
;
AscCommon
.
Check_LoadingDataBeforePrepaste
(
window
.
g_asc_plugins
.
api
,
_fonts
,
_images
,
function
()
{
if
(
window
.
g_asc_plugins
.
api
.
WordControl
&&
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
&&
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
.
Reassign_ImageUrls
)
{
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
.
Reassign_ImageUrls
(
window
.
g_asc_plugins
.
images_rename
);
}
}
delete
window
.
g_asc_plugins
.
images_rename
;
window
.
g_asc_plugins
.
api
.
asc_Recalculate
();
window
.
g_asc_plugins
.
images_rename
=
_images
;
});
AscCommon
.
Check_LoadingDataBeforePrepaste
(
window
.
g_asc_plugins
.
api
,
_fonts
,
_images
,
}
function
()
{
}
if
(
window
.
g_asc_plugins
.
api
.
WordControl
&&
}
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
&&
catch
(
err
)
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
.
Reassign_ImageUrls
)
{
{
window
.
g_asc_plugins
.
api
.
WordControl
.
m_oLogicDocument
.
Reassign_ImageUrls
(
window
.
g_asc_plugins
.
images_rename
);
}
delete
window
.
g_asc_plugins
.
images_rename
;
window
.
g_asc_plugins
.
api
.
asc_Recalculate
();
});
}
else
if
(
AscCommon
.
c_oEditorId
.
Spreadsheet
===
editorId
)
{
window
.
g_asc_plugins
.
api
.
asc_Recalculate
();
}
}
}
}
catch
(
err
)
{
}
}
}
}
if
(
"
close
"
==
name
)
if
(
"
close
"
==
name
)
{
window
.
g_asc_plugins
.
close
();
window
.
g_asc_plugins
.
close
();
}
}
}
}
}
}
}
...
...
slide/Editor/Format/Presentation.js
View file @
c91cf59a
...
@@ -1393,7 +1393,7 @@ CPresentation.prototype =
...
@@ -1393,7 +1393,7 @@ CPresentation.prototype =
var
oMargins
=
FirstCell
.
Get_Margins
();
var
oMargins
=
FirstCell
.
Get_Margins
();
if
(
oMargins
)
if
(
oMargins
)
{
{
ResultHeight
-=
(
oMargins
.
Top
+
oMargins
.
Bottom
);
ResultHeight
-=
(
oMargins
.
Top
.
W
+
oMargins
.
Bottom
.
W
);
}
}
}
}
content
[
i
].
Set_Height
(
ResultHeight
,
Asc
.
linerule_AtLeast
);
content
[
i
].
Set_Height
(
ResultHeight
,
Asc
.
linerule_AtLeast
);
...
...
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