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
9022ee67
Commit
9022ee67
authored
Apr 06, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getSelectionRangeValue returns object AscCommonExcel.asc_CSelectionRangeValue
parent
6c9f8abf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
cell/utils/utils.js
cell/utils/utils.js
+15
-0
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+13
-7
No files found.
cell/utils/utils.js
View file @
9022ee67
...
...
@@ -2216,6 +2216,15 @@
asc_CFormatCellsInfo
.
prototype
.
asc_getSeparator
=
function
()
{
return
this
.
separator
;};
asc_CFormatCellsInfo
.
prototype
.
asc_getSymbol
=
function
()
{
return
this
.
symbol
;};
function
asc_CSelectionRangeValue
(){
this
.
name
=
null
;
this
.
type
=
null
;
}
asc_CSelectionRangeValue
.
prototype
.
asc_setType
=
function
(
val
)
{
this
.
type
=
val
;};
asc_CSelectionRangeValue
.
prototype
.
asc_setName
=
function
(
val
)
{
this
.
name
=
val
;};
asc_CSelectionRangeValue
.
prototype
.
asc_getType
=
function
()
{
return
this
.
type
;};
asc_CSelectionRangeValue
.
prototype
.
asc_getName
=
function
()
{
return
this
.
name
;};
/*
* Export
* -----------------------------------------------------------------------------
...
...
@@ -2396,4 +2405,10 @@
prot
[
"
asc_getDecimalPlaces
"
]
=
prot
.
asc_getDecimalPlaces
;
prot
[
"
asc_getSeparator
"
]
=
prot
.
asc_getSeparator
;
prot
[
"
asc_getSymbol
"
]
=
prot
.
asc_getSymbol
;
window
[
"
AscCommonExcel
"
][
"
asc_CSelectionRangeValue
"
]
=
window
[
"
AscCommonExcel
"
].
asc_CSelectionRangeValue
=
asc_CSelectionRangeValue
;
prot
=
asc_CSelectionRangeValue
.
prototype
;
prot
[
"
asc_getType
"
]
=
prot
.
asc_getType
;
prot
[
"
asc_getName
"
]
=
prot
.
asc_getName
;
})(
window
);
cell/view/WorksheetView.js
View file @
9022ee67
...
...
@@ -6923,13 +6923,19 @@
return
this
.
_getColumnTitle
(
c1
)
+
this
.
_getRowTitle
(
r1
);
};
WorksheetView
.
prototype
.
getSelectionRangeValue
=
function
()
{
// ToDo проблема с выбором целого столбца/строки
var
ar
=
this
.
model
.
selectionRange
.
getLast
().
clone
(
true
);
var
sName
=
ar
.
getAbsName
();
return
(
c_oAscSelectionDialogType
.
FormatTable
===
this
.
selectionDialogType
)
?
sName
:
parserHelp
.
get3DRef
(
this
.
model
.
getName
(),
sName
);
};
WorksheetView
.
prototype
.
getSelectionRangeValue
=
function
()
{
// ToDo проблема с выбором целого столбца/строки
var
ar
=
this
.
model
.
selectionRange
.
getLast
().
clone
(
true
);
var
sAbsName
=
ar
.
getAbsName
();
var
sName
=
(
c_oAscSelectionDialogType
.
FormatTable
===
this
.
selectionDialogType
)
?
sAbsName
:
parserHelp
.
get3DRef
(
this
.
model
.
getName
(),
sAbsName
);
var
type
=
ar
.
type
;
var
selectionRangeValueObj
=
new
AscCommonExcel
.
asc_CSelectionRangeValue
();
selectionRangeValueObj
.
asc_setName
(
sName
);
selectionRangeValueObj
.
asc_setType
(
type
);
return
selectionRangeValueObj
;
};
WorksheetView
.
prototype
.
getSelectionInfo
=
function
()
{
return
this
.
objectRender
.
selectedGraphicObjectsExists
()
?
this
.
_getSelectionInfoObject
()
:
...
...
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