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
75e23a9f
Commit
75e23a9f
authored
Apr 08, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into HEAD
parents
7915a665
d9cb3773
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
340 additions
and
95 deletions
+340
-95
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+3
-3
cell/model/clipboard.js
cell/model/clipboard.js
+27
-0
common/Charts/ChartsDrawer.js
common/Charts/ChartsDrawer.js
+10
-3
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+84
-18
word/Editor/Document.js
word/Editor/Document.js
+13
-4
word/apiBuilder.js
word/apiBuilder.js
+203
-67
No files found.
cell/model/WorkbookElems.js
View file @
75e23a9f
...
...
@@ -2911,9 +2911,9 @@ CCellValue.prototype =
for
(
var
i
=
0
,
length
=
this
.
textValueForEdit2
.
length
;
i
<
length
;
++
i
)
this
.
textValueForEdit
+=
this
.
textValueForEdit2
[
i
].
text
;
}
if
(
CellValueType
.
Error
==
this
.
type
){
return
this
.
_getValueTypeError
(
this
.
textValueForEdit
);
}
//
if( CellValueType.Error == this.type ){
//
return this._getValueTypeError(this.textValueForEdit);
//
}
return
this
.
textValueForEdit
;
},
getValue2
:
function
(
cell
,
dDigitsCount
,
fIsFitMeasurer
)
...
...
cell/model/clipboard.js
View file @
75e23a9f
...
...
@@ -2187,6 +2187,33 @@
{
//TODO сделать вставку текста всегда через эту функцию
this
.
activeRange
=
worksheet
.
activeRange
.
clone
(
true
);
//если находимся внутри шейпа
var
isIntoShape
=
worksheet
.
objectRender
.
controller
.
getTargetDocContent
();
if
(
isIntoShape
)
{
var
callback
=
function
(
isSuccess
)
{
if
(
isSuccess
===
false
)
{
return
false
;
}
var
Count
=
text
.
length
;
for
(
var
Index
=
0
;
Index
<
Count
;
Index
++
)
{
var
_char
=
text
.
charAt
(
Index
);
if
(
"
"
==
_char
)
isIntoShape
.
Paragraph_Add
(
new
ParaSpace
());
else
isIntoShape
.
Paragraph_Add
(
new
ParaText
(
_char
));
}
};
worksheet
.
objectRender
.
controller
.
checkSelectedObjectsAndCallback2
(
callback
);
return
;
}
var
aResult
=
[];
aResult
[
this
.
activeRange
.
r1
]
=
[];
...
...
common/Charts/ChartsDrawer.js
View file @
75e23a9f
...
...
@@ -233,9 +233,16 @@ CChartsDrawer.prototype =
if
(
this
.
nDimensionCount
!==
3
)
{
this
.
cShapeDrawer
.
bIsNoSmartAttack
=
true
;
this
.
chart
.
draw
(
this
);
this
.
cShapeDrawer
.
bIsNoSmartAttack
=
false
;
if
(
this
.
calcProp
.
type
===
"
Line
"
&&
this
.
calcProp
.
type
===
"
Scatter
"
)
{
this
.
cShapeDrawer
.
bIsNoSmartAttack
=
true
;
this
.
chart
.
draw
(
this
);
this
.
cShapeDrawer
.
bIsNoSmartAttack
=
false
;
}
else
{
this
.
chart
.
draw
(
this
);
}
}
}
},
...
...
common/Drawings/Format/ChartSpace.js
View file @
75e23a9f
This diff is collapsed.
Click to expand it.
word/Editor/Document.js
View file @
75e23a9f
...
...
@@ -2517,11 +2517,20 @@ CDocument.prototype =
if
(
true
===
this
.
RecalcInfo
.
Can_RecalcObject
())
{
Element
.
Set_DocumentIndex
(
Index
);
Element
.
Reset
(
X
,
Y
,
XLimit
,
YLimit
,
PageIndex
,
ColumnIndex
,
ColumnsCount
);
var
ElementPageIndex
=
0
;
if
((
0
===
Index
&&
0
===
PageIndex
)
||
Index
!=
StartIndex
||
(
Index
===
StartIndex
&&
true
===
bResetStartElement
))
{
Element
.
Set_DocumentIndex
(
Index
);
Element
.
Reset
(
X
,
Y
,
XLimit
,
YLimit
,
PageIndex
,
ColumnIndex
,
ColumnsCount
);
ElementPageIndex
=
0
;
}
else
{
ElementPageIndex
=
PageIndex
-
Element
.
PageNum
;
}
var
TempRecalcResult
=
Element
.
Recalculate_Page
(
0
);
this
.
RecalcInfo
.
Set_FlowObject
(
Element
,
0
,
TempRecalcResult
,
-
1
,
{
X
:
X
,
Y
:
Y
,
XLimit
:
XLimit
,
YLimit
:
YLimit
});
var
TempRecalcResult
=
Element
.
Recalculate_Page
(
ElementPageIndex
);
this
.
RecalcInfo
.
Set_FlowObject
(
Element
,
ElementPageIndex
,
TempRecalcResult
,
-
1
,
{
X
:
X
,
Y
:
Y
,
XLimit
:
XLimit
,
YLimit
:
YLimit
});
if
(((
0
===
Index
&&
0
===
PageIndex
)
||
Index
!=
StartIndex
)
&&
true
!=
Element
.
Is_ContentOnFirstPage
()
&&
true
!==
isColumns
)
{
...
...
word/apiBuilder.js
View file @
75e23a9f
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