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
42418b3f
Commit
42418b3f
authored
Mar 31, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/develop' into feature/sparklines
parents
4f73be77
4879f710
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
3272 additions
and
6164 deletions
+3272
-6164
Makefile
Makefile
+1
-1
build/Gruntfile.js
build/Gruntfile.js
+1
-1
build/configs/nativeword.json
build/configs/nativeword.json
+1
-1
build/configs/webexcel.json
build/configs/webexcel.json
+3
-3
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+4
-4
build/configs/webword.json
build/configs/webword.json
+4
-5
cell/api.js
cell/api.js
+4
-1
cell/model/DrawingObjects/DrawingDocument.js
cell/model/DrawingObjects/DrawingDocument.js
+47
-25
cell/model/DrawingObjects/Overlay.js
cell/model/DrawingObjects/Overlay.js
+0
-2944
common/Charts/DrawingArea.js
common/Charts/DrawingArea.js
+35
-26
common/Drawings/CommonController.js
common/Drawings/CommonController.js
+630
-0
common/Drawings/Format/Shape.js
common/Drawings/Format/Shape.js
+25
-25
common/Overlay.js
common/Overlay.js
+2510
-3127
slide/api.js
slide/api.js
+4
-1
word/api.js
word/api.js
+3
-0
No files found.
Makefile
View file @
42418b3f
GRUNT
=
grunt
GRUNT
=
grunt
GRUNT_FLAGS
=
--
no-color
-v
GRUNT_FLAGS
=
--
private
=
true
--no-color
-v
OUTPUT_DIR
=
deploy
OUTPUT_DIR
=
deploy
OUTPUT
=
$(OUTPUT_DIR)
OUTPUT
=
$(OUTPUT_DIR)
...
...
build/Gruntfile.js
View file @
42418b3f
...
@@ -173,7 +173,7 @@ module.exports = function(grunt) {
...
@@ -173,7 +173,7 @@ module.exports = function(grunt) {
});
});
var
mobileFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile
'
];
var
mobileFiles
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
mobile
'
];
if
(
mobileFiles
){
if
(
mobileFiles
){
srcFiles
=
srcFiles
.
concat
(
mobile
Files
);
srcFiles
=
mobileFiles
.
concat
(
src
Files
);
}
}
}
}
...
...
build/configs/nativeword.json
View file @
42418b3f
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
"../word/Editor/FontClassification.js"
,
"../word/Editor/FontClassification.js"
,
"../word/Editor/Spelling.js"
,
"../word/Editor/Spelling.js"
,
"../word/Drawing/Graphics.js"
,
"../word/Drawing/Graphics.js"
,
"../
word/Drawing
/Overlay.js"
,
"../
common
/Overlay.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/Metafile.js"
,
"../word/Drawing/Metafile.js"
,
...
...
build/configs/webexcel.json
View file @
42418b3f
{
{
"info"
:
{
"info"
:
{
"version"
:
"3.
7
.0"
,
"version"
:
"3.
8
.0"
,
"build"
:
148
"build"
:
148
},
},
"update_src"
:
{
"update_src"
:
{
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
"../common/wordcopypaste.js"
,
"../common/wordcopypaste.js"
,
"../cell/view/DrawingObjectsController.js"
,
"../cell/view/DrawingObjectsController.js"
,
"../cell/model/DrawingObjects/Graphics.js"
,
"../cell/model/DrawingObjects/Graphics.js"
,
"../c
ell/model/DrawingObjects
/Overlay.js"
,
"../c
ommon
/Overlay.js"
,
"../common/Controls.js"
,
"../common/Controls.js"
,
"../cell/model/DrawingObjects/ShapeDrawer.js"
,
"../cell/model/DrawingObjects/ShapeDrawer.js"
,
"../cell/model/DrawingObjects/DrawingDocument.js"
,
"../cell/model/DrawingObjects/DrawingDocument.js"
,
...
@@ -204,4 +204,4 @@
...
@@ -204,4 +204,4 @@
"compile_sdk"
"compile_sdk"
]
]
}
}
}
}
\ No newline at end of file
build/configs/webpowerpoint.json
View file @
42418b3f
{
{
"info"
:
{
"info"
:
{
"version"
:
"3.
7
.0"
,
"version"
:
"3.
8
.0"
,
"build"
:
158
"build"
:
158
},
},
"update_src"
:
{
"update_src"
:
{
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
"../common/Drawings/TrackObjects/MoveTracks.js"
,
"../common/Drawings/TrackObjects/MoveTracks.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/Graphics.js"
,
"../word/Drawing/Graphics.js"
,
"../
word/Drawing
/Overlay.js"
,
"../
common
/Overlay.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../slide/Drawing/Transitions.js"
,
"../slide/Drawing/Transitions.js"
,
"../slide/Drawing/DrawingDocument.js"
,
"../slide/Drawing/DrawingDocument.js"
,
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
"exclude_mobile"
:
[
"exclude_mobile"
:
[
"../common/browser.js"
,
"../common/browser.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../
word/Drawing
/Overlay.js"
,
"../
common
/Overlay.js"
,
"../slide/Drawing/HtmlPage.js"
,
"../slide/Drawing/HtmlPage.js"
,
"../slide/Drawing/DrawingDocument.js"
"../slide/Drawing/DrawingDocument.js"
],
],
...
@@ -207,4 +207,4 @@
...
@@ -207,4 +207,4 @@
"compile_sdk"
"compile_sdk"
]
]
}
}
}
}
\ No newline at end of file
build/configs/webword.json
View file @
42418b3f
{
{
"info"
:
{
"info"
:
{
"version"
:
"3.
7
.0"
,
"version"
:
"3.
8
.0"
,
"build"
:
167
"build"
:
167
},
},
"update_src"
:
{
"update_src"
:
{
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"../word/Editor/FontClassification.js"
,
"../word/Editor/FontClassification.js"
,
"../word/Editor/Spelling.js"
,
"../word/Editor/Spelling.js"
,
"../word/Drawing/Graphics.js"
,
"../word/Drawing/Graphics.js"
,
"../
word/Drawing
/Overlay.js"
,
"../
common
/Overlay.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/HatchPattern.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../word/Drawing/ShapeDrawer.js"
,
"../word/Drawing/Metafile.js"
,
"../word/Drawing/Metafile.js"
,
...
@@ -158,8 +158,7 @@
...
@@ -158,8 +158,7 @@
"../common/Local/common.js"
,
"../common/Local/common.js"
,
"../word/Local/api.js"
"../word/Local/api.js"
],
],
"exclude_mobile"
:
[
"exclude_mobile"
:
[],
],
"dst"
:
"../word/sdk-all.js"
,
"dst"
:
"../word/sdk-all.js"
,
"externs"
:
[
"externs"
:
[
"../common/Build/Externs.js"
,
"../common/Build/Externs.js"
,
...
@@ -191,4 +190,4 @@
...
@@ -191,4 +190,4 @@
"compile_sdk"
"compile_sdk"
]
]
}
}
}
}
\ No newline at end of file
cell/api.js
View file @
42418b3f
...
@@ -856,7 +856,10 @@ var editor;
...
@@ -856,7 +856,10 @@ var editor;
oAdditionalData
[
"
userid
"
]
=
this
.
documentUserId
;
oAdditionalData
[
"
userid
"
]
=
this
.
documentUserId
;
oAdditionalData
[
"
vkey
"
]
=
this
.
documentVKey
;
oAdditionalData
[
"
vkey
"
]
=
this
.
documentVKey
;
oAdditionalData
[
"
outputformat
"
]
=
sFormat
;
oAdditionalData
[
"
outputformat
"
]
=
sFormat
;
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
this
.
documentTitle
,
getExtentionByFormat
(
sFormat
));
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
this
.
documentTitle
,
getExtentionByFormat
(
sFormat
));
if
(
DownloadType
.
Print
===
options
.
downloadType
)
{
oAdditionalData
[
"
inline
"
]
=
1
;
}
if
(
c_oAscFileType
.
PDF
===
sFormat
)
{
if
(
c_oAscFileType
.
PDF
===
sFormat
)
{
var
printPagesData
=
this
.
wb
.
calcPagesPrint
(
this
.
adjustPrint
);
var
printPagesData
=
this
.
wb
.
calcPagesPrint
(
this
.
adjustPrint
);
var
pdf_writer
=
new
CPdfPrinter
();
var
pdf_writer
=
new
CPdfPrinter
();
...
...
cell/model/DrawingObjects/DrawingDocument.js
View file @
42418b3f
/*
/*
*
*
* (c) Copyright Ascensio System Limited 2010-2016
* (c) Copyright Ascensio System Limited 2010-2016
*
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
*
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* in every copy of the program you distribute.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*
*/
*/
"
use strict
"
;
"
use strict
"
;
var
g_dDpiX
=
96.0
;
var
g_dDpiX
=
96.0
;
...
@@ -4890,4 +4890,26 @@ function CDrawingDocument(drawingObjects)
...
@@ -4890,4 +4890,26 @@ function CDrawingDocument(drawingObjects)
if
(
this
.
m_oWordControl
&&
this
.
m_oWordControl
.
MobileTouchManager
)
if
(
this
.
m_oWordControl
&&
this
.
m_oWordControl
.
MobileTouchManager
)
this
.
m_oWordControl
.
MobileTouchManager
.
CheckSelectEnd
(
false
);
this
.
m_oWordControl
.
MobileTouchManager
.
CheckSelectEnd
(
false
);
}
}
}
}
\ No newline at end of file
// заглушка
function
CHtmlPage
()
{
this
.
drawingPage
=
{
top
:
0
,
left
:
0
,
right
:
0
,
bottom
:
0
};
this
.
width_mm
=
0
;
this
.
height_mm
=
0
;
}
CHtmlPage
.
prototype
.
init
=
function
(
x
,
y
,
w_pix
,
h_pix
,
w_mm
,
h_mm
)
{
this
.
drawingPage
.
top
=
y
;
this
.
drawingPage
.
left
=
x
;
this
.
drawingPage
.
right
=
w_pix
;
this
.
drawingPage
.
bottom
=
h_pix
;
this
.
width_mm
=
w_mm
;
this
.
height_mm
=
h_mm
;
};
CHtmlPage
.
prototype
.
GetDrawingPageInfo
=
function
()
{
return
{
drawingPage
:
this
.
drawingPage
,
width_mm
:
this
.
width_mm
,
height_mm
:
this
.
height_mm
};
};
\ No newline at end of file
cell/model/DrawingObjects/Overlay.js
deleted
100644 → 0
View file @
4f73be77
This diff is collapsed.
Click to expand it.
common/Charts/DrawingArea.js
View file @
42418b3f
/*
/*
*
*
* (c) Copyright Ascensio System Limited 2010-2016
* (c) Copyright Ascensio System Limited 2010-2016
*
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
*
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* in every copy of the program you distribute.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*
*/
*/
"
use strict
"
;
"
use strict
"
;
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
...
@@ -560,7 +560,7 @@ function FrozenPlace(ws, type) {
...
@@ -560,7 +560,7 @@ function FrozenPlace(ws, type) {
_this
.
restore
(
canvas
.
shapeCtx
);
_this
.
restore
(
canvas
.
shapeCtx
);
};
};
_this
.
setTransform
=
function
(
shapeCtx
,
shapeOverlayCtx
,
autoShapeTrack
)
{
_this
.
setTransform
=
function
(
shapeCtx
,
shapeOverlayCtx
,
autoShapeTrack
,
trackOverlay
)
{
if
(
shapeCtx
&&
shapeOverlayCtx
&&
autoShapeTrack
)
{
if
(
shapeCtx
&&
shapeOverlayCtx
&&
autoShapeTrack
)
{
...
@@ -580,6 +580,15 @@ function FrozenPlace(ws, type) {
...
@@ -580,6 +580,15 @@ function FrozenPlace(ws, type) {
autoShapeTrack
.
Graphics
.
CalculateFullTransform
();
autoShapeTrack
.
Graphics
.
CalculateFullTransform
();
_this
.
worksheet
.
objectRender
.
controller
.
recalculateCurPos
();
_this
.
worksheet
.
objectRender
.
controller
.
recalculateCurPos
();
}
}
if
(
trackOverlay
&&
trackOverlay
.
m_oHtmlPage
)
{
var
width
=
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
right
-
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
left
;
var
height
=
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
bottom
-
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
top
;
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
left
=
x
;
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
top
=
y
;
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
right
=
x
+
width
;
trackOverlay
.
m_oHtmlPage
.
drawingPage
.
bottom
=
y
+
height
;
}
};
};
// Range constructor
// Range constructor
...
@@ -682,7 +691,7 @@ DrawingArea.prototype.drawSelection = function(drawingDocument) {
...
@@ -682,7 +691,7 @@ DrawingArea.prototype.drawSelection = function(drawingDocument) {
}
}
for
(
var
i
=
0
;
i
<
this
.
frozenPlaces
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
frozenPlaces
.
length
;
i
++
)
{
this
.
frozenPlaces
[
i
].
setTransform
(
shapeCtx
,
shapeOverlayCtx
,
autoShapeTrack
);
this
.
frozenPlaces
[
i
].
setTransform
(
shapeCtx
,
shapeOverlayCtx
,
autoShapeTrack
,
trackOverlay
);
// Clip
// Clip
this
.
frozenPlaces
[
i
].
clip
(
shapeOverlayCtx
);
this
.
frozenPlaces
[
i
].
clip
(
shapeOverlayCtx
);
...
...
common/Drawings/CommonController.js
View file @
42418b3f
This diff is collapsed.
Click to expand it.
common/Drawings/Format/Shape.js
View file @
42418b3f
/*
/*
*
*
* (c) Copyright Ascensio System Limited 2010-2016
* (c) Copyright Ascensio System Limited 2010-2016
*
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
*
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* Pursuant to Section 7 3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* in every copy of the program you distribute.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
* Pursuant to Section 7 3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*
*/
*/
"
use strict
"
;
"
use strict
"
;
var
BOUNDS_DELTA
=
3
;
var
BOUNDS_DELTA
=
3
;
...
@@ -3829,7 +3829,7 @@ CShape.prototype =
...
@@ -3829,7 +3829,7 @@ CShape.prototype =
{
{
var
clip_rect
=
this
.
clipRect
;
var
clip_rect
=
this
.
clipRect
;
var
oBodyPr
=
this
.
getBodyPr
();
var
oBodyPr
=
this
.
getBodyPr
();
if
(
!
oBodyPr
||
oBodyPr
.
upright
)
if
(
!
oBodyPr
||
!
oBodyPr
.
upright
)
{
{
graphics
.
transform3
(
this
.
transform
);
graphics
.
transform3
(
this
.
transform
);
graphics
.
AddClipRect
(
clip_rect
.
x
,
clip_rect
.
y
,
clip_rect
.
w
,
clip_rect
.
h
);
graphics
.
AddClipRect
(
clip_rect
.
x
,
clip_rect
.
y
,
clip_rect
.
w
,
clip_rect
.
h
);
...
...
word/Drawing
/Overlay.js
→
common
/Overlay.js
View file @
42418b3f
This diff is collapsed.
Click to expand it.
slide/api.js
View file @
42418b3f
...
@@ -4737,7 +4737,10 @@ function _downloadAs(editor, filetype, actionType, options)
...
@@ -4737,7 +4737,10 @@ function _downloadAs(editor, filetype, actionType, options)
oAdditionalData
[
"
vkey
"
]
=
editor
.
documentVKey
;
oAdditionalData
[
"
vkey
"
]
=
editor
.
documentVKey
;
oAdditionalData
[
"
outputformat
"
]
=
filetype
;
oAdditionalData
[
"
outputformat
"
]
=
filetype
;
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
editor
.
documentTitle
,
getExtentionByFormat
(
filetype
));
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
editor
.
documentTitle
,
getExtentionByFormat
(
filetype
));
oAdditionalData
[
"
savetype
"
]
=
c_oAscSaveTypes
.
CompleteAll
;
oAdditionalData
[
"
savetype
"
]
=
c_oAscSaveTypes
.
CompleteAll
;
if
(
DownloadType
.
Print
===
options
.
downloadType
)
{
oAdditionalData
[
"
inline
"
]
=
1
;
}
if
(
c_oAscFileType
.
PDF
==
filetype
)
if
(
c_oAscFileType
.
PDF
==
filetype
)
{
{
var
dd
=
editor
.
WordControl
.
m_oDrawingDocument
;
var
dd
=
editor
.
WordControl
.
m_oDrawingDocument
;
...
...
word/api.js
View file @
42418b3f
...
@@ -6733,6 +6733,9 @@ function _downloadAs(editor, command, filetype, actionType, options, fCallbackRe
...
@@ -6733,6 +6733,9 @@ function _downloadAs(editor, command, filetype, actionType, options, fCallbackRe
oAdditionalData
[
"
outputformat
"
]
=
filetype
;
oAdditionalData
[
"
outputformat
"
]
=
filetype
;
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
editor
.
documentTitle
,
getExtentionByFormat
(
filetype
));
oAdditionalData
[
"
title
"
]
=
changeFileExtention
(
editor
.
documentTitle
,
getExtentionByFormat
(
filetype
));
oAdditionalData
[
"
savetype
"
]
=
c_oAscSaveTypes
.
CompleteAll
;
oAdditionalData
[
"
savetype
"
]
=
c_oAscSaveTypes
.
CompleteAll
;
if
(
DownloadType
.
Print
===
options
.
downloadType
)
{
oAdditionalData
[
"
inline
"
]
=
1
;
}
if
(
options
.
isNoData
)
{
if
(
options
.
isNoData
)
{
;
//nothing
;
//nothing
}
else
if
(
null
==
options
.
oDocumentMailMerge
&&
c_oAscFileType
.
PDF
===
filetype
)
{
}
else
if
(
null
==
options
.
oDocumentMailMerge
&&
c_oAscFileType
.
PDF
===
filetype
)
{
...
...
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