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
d4c84cf9
Commit
d4c84cf9
authored
Apr 12, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] селект текста
parent
75e23a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
cell/native/native.js
cell/native/native.js
+28
-7
No files found.
cell/native/native.js
View file @
d4c84cf9
...
@@ -5766,7 +5766,7 @@ function offline_stz(v) {_s.zoom = v; _api.asc_setZoom(v);}
...
@@ -5766,7 +5766,7 @@ function offline_stz(v) {_s.zoom = v; _api.asc_setZoom(v);}
function
offline_ds
(
x
,
y
,
width
,
height
,
ratio
,
istoplayer
)
{
_s
.
drawSheet
(
x
,
y
,
width
,
height
,
ratio
,
istoplayer
);}
function
offline_ds
(
x
,
y
,
width
,
height
,
ratio
,
istoplayer
)
{
_s
.
drawSheet
(
x
,
y
,
width
,
height
,
ratio
,
istoplayer
);}
function
offline_dh
(
x
,
y
,
width
,
height
,
type
,
ratio
)
{
_s
.
drawHeader
(
x
,
y
,
width
,
height
,
type
,
ratio
);}
function
offline_dh
(
x
,
y
,
width
,
height
,
type
,
ratio
)
{
_s
.
drawHeader
(
x
,
y
,
width
,
height
,
type
,
ratio
);}
function
offline_mouse_down
(
x
,
y
,
pin
,
isViewerMode
,
isFormulaEditMode
,
isRangeResize
,
isChartRange
,
indexRange
,
resizeRange
,
targetCol
,
targetRow
)
{
function
offline_mouse_down
(
x
,
y
,
pin
,
isViewerMode
,
isFormulaEditMode
,
isRangeResize
,
isChartRange
,
indexRange
,
resizeRange
,
targetCol
,
targetRow
,
select
)
{
_s
.
isShapeAction
=
false
;
_s
.
isShapeAction
=
false
;
var
ws
=
_api
.
wb
.
getWorksheet
();
var
ws
=
_api
.
wb
.
getWorksheet
();
...
@@ -5782,11 +5782,26 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
...
@@ -5782,11 +5782,26 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
ws
.
objectRender
.
drawingArea
.
reinitRanges
();
ws
.
objectRender
.
drawingArea
.
reinitRanges
();
var
graphicsInfo
=
wb
.
_onGetGraphicsInfo
(
x
,
y
);
var
graphicsInfo
=
wb
.
_onGetGraphicsInfo
(
x
,
y
);
if
(
graphicsInfo
)
{
if
(
graphicsInfo
)
{
ws
.
arrActiveChartsRanges
=
[];
window
.
AscDisableTextSelection
=
true
;
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
ws
.
arrActiveChartsRanges
=
[]
;
var
content
=
null
;
window
.
AscDisableTextSelection
=
true
;
if
(
1
===
select
.
pin
)
{
content
=
ws
.
objectRender
.
controller
.
getTargetDocContent
();
wb
.
_onGraphicObjectMouseDown
(
e
,
select
.
beginX
,
select
.
beginY
);
wb
.
_onGraphicObjectMouseUp
(
e
,
select
.
endX
,
select
.
endY
);
e
.
shiftKey
=
true
;
}
if
(
-
1
===
select
.
pin
)
{
content
=
ws
.
objectRender
.
controller
.
getTargetDocContent
();
wb
.
_onGraphicObjectMouseDown
(
e
,
select
.
endX
,
select
.
endY
);
wb
.
_onGraphicObjectMouseUp
(
e
,
select
.
beginX
,
select
.
beginY
);
e
.
shiftKey
=
true
;
}
wb
.
_onGraphicObjectMouseDown
(
e
,
x
,
y
);
wb
.
_onGraphicObjectMouseDown
(
e
,
x
,
y
);
wb
.
_onUpdateSelectionShape
(
true
);
wb
.
_onUpdateSelectionShape
(
true
);
...
@@ -5803,6 +5818,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
...
@@ -5803,6 +5818,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
}
}
var
ischart
=
false
;
var
ischart
=
false
;
var
isimage
=
false
;
var
controller
=
ws
.
objectRender
.
controller
;
var
controller
=
ws
.
objectRender
.
controller
;
var
selected_objects
=
controller
.
selection
.
groupSelection
?
controller
.
selection
.
groupSelection
.
selectedObjects
:
controller
.
selectedObjects
;
var
selected_objects
=
controller
.
selection
.
groupSelection
?
controller
.
selection
.
groupSelection
.
selectedObjects
:
controller
.
selectedObjects
;
if
(
selected_objects
.
length
===
1
&&
selected_objects
[
0
].
getObjectType
()
===
historyitem_type_ChartSpace
)
{
if
(
selected_objects
.
length
===
1
&&
selected_objects
[
0
].
getObjectType
()
===
historyitem_type_ChartSpace
)
{
...
@@ -5814,8 +5830,14 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
...
@@ -5814,8 +5830,14 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
window
.
AscAlwaysSaveAspectOnResizeTrack
=
false
;
window
.
AscAlwaysSaveAspectOnResizeTrack
=
false
;
}
}
}
}
else
if
(
selected_objects
.
length
===
1
&&
selected_objects
[
0
].
getObjectType
()
===
historyitem_type_ImageShape
)
{
isimage
=
true
;
}
return
{
id
:
graphicsInfo
.
id
,
ischart
:
ischart
,
'
textselect
'
:(
null
!==
ws
.
objectRender
.
controller
.
selection
.
textSelection
)};
return
{
id
:
graphicsInfo
.
id
,
ischart
:
ischart
,
isimage
:
isimage
,
'
textselect
'
:(
null
!==
ws
.
objectRender
.
controller
.
selection
.
textSelection
),
'
chartselect
'
:(
null
!==
ws
.
objectRender
.
controller
.
selection
.
chartSelection
)
};
}
}
_s
.
cellPin
=
pin
;
_s
.
cellPin
=
pin
;
...
@@ -5875,7 +5897,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
...
@@ -5875,7 +5897,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
return
null
;
return
null
;
}
}
function
offline_mouse_move
(
x
,
y
,
isViewerMode
,
isRangeResize
,
isChartRange
,
indexRange
,
resizeRange
,
targetCol
,
targetRow
)
{
function
offline_mouse_move
(
x
,
y
,
isViewerMode
,
isRangeResize
,
isChartRange
,
indexRange
,
resizeRange
,
targetCol
,
targetRow
,
textPin
)
{
var
ws
=
_api
.
wb
.
getWorksheet
();
var
ws
=
_api
.
wb
.
getWorksheet
();
var
wb
=
_api
.
wb
;
var
wb
=
_api
.
wb
;
...
@@ -5904,7 +5926,6 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, isChartRange, ind
...
@@ -5904,7 +5926,6 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, isChartRange, ind
if
(
_s
.
isShapeAction
)
{
if
(
_s
.
isShapeAction
)
{
if
(
!
isViewerMode
)
{
if
(
!
isViewerMode
)
{
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
var
e
=
{
isLocked
:
true
,
Button
:
0
,
ClickCount
:
1
,
shiftKey
:
false
,
metaKey
:
false
,
ctrlKey
:
false
};
ws
.
objectRender
.
graphicObjectMouseMove
(
e
,
x
,
y
);
ws
.
objectRender
.
graphicObjectMouseMove
(
e
,
x
,
y
);
}
}
...
@@ -6510,7 +6531,7 @@ function offline_paste(params) {
...
@@ -6510,7 +6531,7 @@ function offline_paste(params) {
}
}
else
if
(
2
==
type
)
else
if
(
2
==
type
)
{
{
_api
.
wb
.
clipboard
.
_pasteFromBinaryExcel
(
worksheet
,
params
[
1
]);
_api
.
wb
.
clipboard
.
_pasteFromBinaryExcel
(
worksheet
,
params
[
1
]
,
null
,
true
);
}
}
}
}
function
offline_cut
()
{
function
offline_cut
()
{
...
...
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