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
7e9b70ba
Commit
7e9b70ba
authored
Sep 14, 2016
by
Oleg Korshul
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #66 from ONLYOFFICE/hotfix/v4.1.2
Hotfix/v4.1.2
parents
d8e480b3
0cb44c05
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
42 additions
and
43 deletions
+42
-43
Readme.md
Readme.md
+1
-1
build/build-desktop.bat
build/build-desktop.bat
+7
-17
cell/Local/api.js
cell/Local/api.js
+10
-6
cell/css/main-mobile.css
cell/css/main-mobile.css
+1
-1
cell/model/DrawingObjects/Format/ChartSpacePrototype.js
cell/model/DrawingObjects/Format/ChartSpacePrototype.js
+0
-1
cell/model/DrawingObjects/Format/GroupPrototype.js
cell/model/DrawingObjects/Format/GroupPrototype.js
+0
-2
cell/model/DrawingObjects/Format/ImagePrototype.js
cell/model/DrawingObjects/Format/ImagePrototype.js
+0
-1
cell/model/DrawingObjects/Format/ShapePrototype.js
cell/model/DrawingObjects/Format/ShapePrototype.js
+0
-1
common/Local/common.js
common/Local/common.js
+6
-0
slide/Editor/Format/ChartSpacePrototype.js
slide/Editor/Format/ChartSpacePrototype.js
+0
-1
slide/Editor/Format/GroupPrototype.js
slide/Editor/Format/GroupPrototype.js
+0
-1
slide/Editor/Format/ImagePrototype.js
slide/Editor/Format/ImagePrototype.js
+0
-1
slide/Editor/Format/ShapePrototype.js
slide/Editor/Format/ShapePrototype.js
+0
-1
slide/Local/api.js
slide/Local/api.js
+9
-0
word/Editor/GraphicObjects/Format/GroupPrototype.js
word/Editor/GraphicObjects/Format/GroupPrototype.js
+0
-1
word/Editor/GraphicObjects/Format/ImagePrototype.js
word/Editor/GraphicObjects/Format/ImagePrototype.js
+0
-1
word/Editor/GraphicObjects/Format/ShapePrototype.js
word/Editor/GraphicObjects/Format/ShapePrototype.js
+0
-1
word/Local/api.js
word/Local/api.js
+8
-6
No files found.
Readme.md
View file @
7e9b70ba
[
![License
](
https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat
)
](http://www.gnu.org/licenses/agpl-3.0.ru.html) !
[
Release
](
https://img.shields.io/badge/Release-v4.1.
1
-blue.svg?style=flat
)
[
![License
](
https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat
)
](http://www.gnu.org/licenses/agpl-3.0.ru.html) !
[
Release
](
https://img.shields.io/badge/Release-v4.1.
2
-blue.svg?style=flat
)
## Sdkjs
...
...
build/build-desktop.bat
View file @
7e9b70ba
...
...
@@ -13,24 +13,14 @@ copy ..\cell\sdk-all-min.js ..\..\core\build\jsdesktop\cell\sdk-all-min.js
copy
..\common\Native\native.js ..\..\core\build\jsdesktop\common\Native\native.js
copy
..\word\sdk
-all
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\slide\sdk
-all
.js
copy
..\cell\sdk
-all
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\cell\sdk
-all
.js
copy
..\word\sdk
-all
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\slide\sdk
-all
.js
copy
..\cell\sdk
-all
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\cell\sdk
-all
.js
copy
..\word\sdk
-all-min
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\word\sdk
-all-min
.js
copy
..\slide\sdk
-all-min
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\slide\sdk
-all-min
.js
copy
..\cell\sdk
-all-min
.js ..\..\core
-ext
\
ChromiumBasedEditors\app
\test\src\build\win_64\Debug\Local\editors\sdkjs\cell\sdk
-all-min
.js
copy
..\word\sdk
-all-min
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\word\sdk
-all-min
.js
copy
..\slide\sdk
-all-min
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\slide\sdk
-all-min
.js
copy
..\cell\sdk
-all-min
.js ..\..\core
-ext
\
desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\cell\sdk
-all-min
.js
copy
..\common\Native\native.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Debug\Local\editors\sdkjs\common\Native\native.js
copy
..\word\sdk
-all
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\word\sdk
-all
.js
copy
..\slide\sdk
-all
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\slide\sdk
-all
.js
copy
..\cell\sdk
-all
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\cell\sdk
-all
.js
copy
..\word\sdk
-all-min
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\word\sdk
-all-min
.js
copy
..\slide\sdk
-all-min
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\slide\sdk
-all-min
.js
copy
..\cell\sdk
-all-min
.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\cell\sdk
-all-min
.js
copy
..\common\Native\native.js ..\..\core
-ext
\ChromiumBasedEditors\app\test\src\build\win_64\Release\Local\editors\sdkjs\common\Native\native.js
copy
..\common\Native\native.js ..\..\core
-ext
\desktop
-sdk-wrapper
\test\src\build\win_64\Debug\Local\editors\sdkjs\common\Native\native.js
pause
\ No newline at end of file
cell/Local/api.js
View file @
7e9b70ba
...
...
@@ -112,16 +112,20 @@ var c_oAscError = Asc.c_oAscError;
window
[
"
Asc
"
][
'
spreadsheet_api
'
].
prototype
.
asc_setAdvancedOptions
=
function
(
idOption
,
option
)
{
if
(
window
[
"
Asc
"
].
c_oAscAdvancedOptionsID
.
CSV
===
idOption
)
{
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
""
+
option
.
asc_getCodePage
(),
""
+
option
.
asc_getDelimiter
());
var
_param
=
""
;
_param
+=
(
"
<m_nCsvTxtEncoding>
"
+
option
.
asc_getCodePage
()
+
"
</m_nCsvTxtEncoding>
"
);
_param
+=
(
"
<m_nCsvDelimiter>
"
+
option
.
asc_getDelimiter
()
+
"
</m_nCsvDelimiter>
"
);
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
_param
);
}
else
if
(
window
[
"
Asc
"
].
c_oAscAdvancedOptionsID
.
DRM
===
idOption
)
{
var
_param
=
""
;
_param
+=
(
"
<m_sPassword>
"
+
AscCommon
.
CopyPasteCorrectString
(
option
.
asc_getPassword
())
+
"
</m_sPassword>
"
);
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
_param
);
}
};
window
[
"
Asc
"
][
'
spreadsheet_api
'
].
prototype
[
"
asc_setAdvancedOptions
"
]
=
window
[
"
Asc
"
][
'
spreadsheet_api
'
].
prototype
.
asc_setAdvancedOptions
;
window
[
"
asc_initAdvancedOptions
"
]
=
function
()
{
window
[
"
Asc
"
][
"
editor
"
].
_onNeedParams
(
undefined
);
};
window
[
"
DesktopOfflineAppDocumentEndLoad
"
]
=
function
(
_url
,
_data
)
{
AscCommon
.
g_oDocumentUrls
.
documentUrl
=
_url
;
...
...
cell/css/main-mobile.css
View file @
7e9b70ba
...
...
@@ -17,7 +17,7 @@
border
:
0
;
}
#ws-canvas-overlay
{
#ws-canvas-overlay
,
#ws-canvas-graphic
,
#ws-canvas-graphic-overlay
{
border
:
0
;
position
:
absolute
;
left
:
0
;
...
...
cell/model/DrawingObjects/Format/ChartSpacePrototype.js
View file @
7e9b70ba
...
...
@@ -119,7 +119,6 @@ CChartSpace.prototype.setRecalculateInfo = function()
recalculateBBoxRange
:
true
};
this
.
baseColors
=
[];
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
chartObj
=
null
;
this
.
rectGeometry
=
AscFormat
.
ExecuteNoHistory
(
function
(){
return
AscFormat
.
CreateGeometry
(
"
rect
"
);},
this
,
[]);
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
...
...
cell/model/DrawingObjects/Format/GroupPrototype.js
View file @
7e9b70ba
...
...
@@ -90,8 +90,6 @@ CGroupShape.prototype.setRecalculateInfo = function()
recalculateScaleCoefficients
:
true
};
this
.
localTransform
=
new
AscCommon
.
CMatrix
();
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
...
...
cell/model/DrawingObjects/Format/ImagePrototype.js
View file @
7e9b70ba
...
...
@@ -71,7 +71,6 @@ CImageShape.prototype.setRecalculateInfo = function()
recalculateLine
:
true
,
recalculateTransparent
:
true
};
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
...
...
cell/model/DrawingObjects/Format/ShapePrototype.js
View file @
7e9b70ba
...
...
@@ -260,7 +260,6 @@ CShape.prototype.setRecalculateInfo = function()
oContentMetrics
:
null
};
this
.
compiledStyles
=
[];
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
CShape
.
prototype
.
recalcContent
=
function
()
...
...
common/Local/common.js
View file @
7e9b70ba
...
...
@@ -226,6 +226,12 @@ AscCommon.InitDragAndDrop = function(oHtmlElement, callback) {
}
}
window
[
"
asc_initAdvancedOptions
"
]
=
function
(
_code
)
{
var
_editor
=
window
[
"
Asc
"
][
"
editor
"
]
?
window
[
"
Asc
"
][
"
editor
"
]
:
window
.
editor
;
_editor
.
_onNeedParams
(
undefined
,
(
_code
==
90
||
_code
==
91
)
?
true
:
undefined
);
};
// меняем среду
//AscBrowser.isSafari = false;
//AscBrowser.isSafariMacOs = false;
...
...
slide/Editor/Format/ChartSpacePrototype.js
View file @
7e9b70ba
...
...
@@ -225,7 +225,6 @@ CChartSpace.prototype.setRecalculateInfo = function()
recalculateBBoxRange
:
true
};
this
.
baseColors
=
[];
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
chartObj
=
null
;
this
.
rectGeometry
=
AscFormat
.
ExecuteNoHistory
(
function
(){
return
AscFormat
.
CreateGeometry
(
"
rect
"
);},
this
,
[]);
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
...
...
slide/Editor/Format/GroupPrototype.js
View file @
7e9b70ba
...
...
@@ -88,7 +88,6 @@ CGroupShape.prototype.setRecalculateInfo = function()
recalculateScaleCoefficients
:
true
};
this
.
localTransform
=
new
AscCommon
.
CMatrix
();
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
...
...
slide/Editor/Format/ImagePrototype.js
View file @
7e9b70ba
...
...
@@ -73,7 +73,6 @@ CImageShape.prototype.setRecalculateInfo = function()
recalculateLine
:
true
,
recalculateTransparent
:
true
};
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
...
...
slide/Editor/Format/ShapePrototype.js
View file @
7e9b70ba
...
...
@@ -223,7 +223,6 @@ CShape.prototype.setRecalculateInfo = function()
};
this
.
compiledStyles
=
[];
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
lockType
=
AscCommon
.
c_oAscLockTypes
.
kLockTypeNone
;
};
CShape
.
prototype
.
recalcContent
=
function
()
...
...
slide/Local/api.js
View file @
7e9b70ba
...
...
@@ -260,3 +260,12 @@ window["on_editor_native_message"] = function(sCommand, sParam)
else
if
(
sCommand
==
"
editor:stopDemonstration
"
)
editor
.
EndDemonstration
(
true
);
};
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_setAdvancedOptions
=
function
(
idOption
,
option
)
{
if
(
window
[
"
Asc
"
].
c_oAscAdvancedOptionsID
.
DRM
===
idOption
)
{
var
_param
=
""
;
_param
+=
(
"
<m_sPassword>
"
+
AscCommon
.
CopyPasteCorrectString
(
option
.
asc_getPassword
())
+
"
</m_sPassword>
"
);
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
_param
);
}
};
\ No newline at end of file
word/Editor/GraphicObjects/Format/GroupPrototype.js
View file @
7e9b70ba
...
...
@@ -146,7 +146,6 @@ CGroupShape.prototype.setRecalculateInfo = function()
recalculateWrapPolygon
:
true
};
this
.
localTransform
=
new
AscCommon
.
CMatrix
();
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
posX
=
null
;
this
.
posY
=
null
;
this
.
bNeedUpdatePosition
=
true
;
...
...
word/Editor/GraphicObjects/Format/ImagePrototype.js
View file @
7e9b70ba
...
...
@@ -71,7 +71,6 @@ CImageShape.prototype.setRecalculateInfo = function()
this
.
bNeedUpdatePosition
=
true
;
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
posX
=
null
;
this
.
posY
=
null
;
...
...
word/Editor/GraphicObjects/Format/ShapePrototype.js
View file @
7e9b70ba
...
...
@@ -66,7 +66,6 @@ CShape.prototype.setRecalculateInfo = function()
this
.
contentWidth
=
null
;
this
.
contentHeight
=
null
;
this
.
compiledStyles
=
[];
this
.
bounds
=
{
l
:
0
,
t
:
0
,
r
:
0
,
b
:
0
,
w
:
0
,
h
:
0
};
this
.
posX
=
null
;
this
.
posY
=
null
;
...
...
word/Local/api.js
View file @
7e9b70ba
...
...
@@ -84,16 +84,18 @@ window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_setAdvancedOptions
=
function
(
idOption
,
option
)
{
if
(
window
[
"
Asc
"
].
c_oAscAdvancedOptionsID
.
TXT
===
idOption
)
{
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
""
+
option
.
asc_getCodePage
());
var
_param
=
""
;
_param
+=
(
"
<m_nCsvTxtEncoding>
"
+
option
.
asc_getCodePage
()
+
"
</m_nCsvTxtEncoding>
"
);
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
_param
);
}
else
if
(
window
[
"
Asc
"
].
c_oAscAdvancedOptionsID
.
DRM
===
idOption
)
{
var
_param
=
""
;
_param
+=
(
"
<m_sPassword>
"
+
AscCommon
.
CopyPasteCorrectString
(
option
.
asc_getPassword
())
+
"
</m_sPassword>
"
);
window
[
"
AscDesktopEditor
"
][
"
SetAdvancedOptions
"
](
_param
);
}
};
Asc
[
'
asc_docs_api
'
].
prototype
[
"
asc_setAdvancedOptions
"
]
=
Asc
[
'
asc_docs_api
'
].
prototype
.
asc_setAdvancedOptions
;
window
[
"
asc_initAdvancedOptions
"
]
=
function
()
{
editor
.
_onNeedParams
(
undefined
);
};
/////////////////////////////////////////////////////////
////////////// CHANGES /////////////////////
/////////////////////////////////////////////////////////
...
...
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