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
cf9a0cc2
Commit
cf9a0cc2
authored
Aug 02, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add referenceType
parent
0253893e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
cell/model/FormulaObjects/lookupandreferenceFunctions.js
cell/model/FormulaObjects/lookupandreferenceFunctions.js
+5
-5
cell/utils/utils.js
cell/utils/utils.js
+8
-0
No files found.
cell/model/FormulaObjects/lookupandreferenceFunctions.js
View file @
cf9a0cc2
...
@@ -178,19 +178,19 @@
...
@@ -178,19 +178,19 @@
var
strRef
;
var
strRef
;
var
strColumn
=
A1RefType
?
g_oCellAddressUtils
.
colnumToColstrFromWsView
(
colNumber
)
:
colNumber
;
var
strColumn
=
A1RefType
?
g_oCellAddressUtils
.
colnumToColstrFromWsView
(
colNumber
)
:
colNumber
;
var
strRow
;
var
strRow
;
switch
(
refType
)
{
switch
(
refType
-
1
)
{
case
1
:
case
AscCommonExcel
.
referenceType
.
A
:
strRow
=
this
.
_absolute
(
rowNumber
,
A1RefType
);
strRow
=
this
.
_absolute
(
rowNumber
,
A1RefType
);
strColumn
=
this
.
_absolute
(
strColumn
,
A1RefType
);
strColumn
=
this
.
_absolute
(
strColumn
,
A1RefType
);
break
;
break
;
case
2
:
case
AscCommonExcel
.
referenceType
.
ARRC
:
strRow
=
this
.
_absolute
(
rowNumber
,
A1RefType
);
strRow
=
this
.
_absolute
(
rowNumber
,
A1RefType
);
break
;
break
;
case
3
:
case
AscCommonExcel
.
referenceType
.
RRAC
:
strColumn
=
this
.
_absolute
(
strColumn
,
A1RefType
);
strColumn
=
this
.
_absolute
(
strColumn
,
A1RefType
);
strRow
=
rowNumber
;
strRow
=
rowNumber
;
break
;
break
;
case
4
:
case
AscCommonExcel
.
referenceType
.
R
:
strRow
=
rowNumber
;
strRow
=
rowNumber
;
break
;
break
;
}
}
...
...
cell/utils/utils.js
View file @
cf9a0cc2
...
@@ -173,6 +173,13 @@
...
@@ -173,6 +173,13 @@
return
undefined
;
return
undefined
;
}
}
var
referenceType
=
{
A
:
0
,
// Absolute
ARRC
:
1
,
// Absolute row; relative column
RRAC
:
2
,
// Relative row; absolute column
R
:
3
// Relative
};
function
CRangeOffset
(
offsetCol
,
offsetRow
)
{
function
CRangeOffset
(
offsetCol
,
offsetRow
)
{
this
.
offsetCol
=
offsetCol
;
this
.
offsetCol
=
offsetCol
;
this
.
offsetRow
=
offsetRow
;
this
.
offsetRow
=
offsetRow
;
...
@@ -1655,6 +1662,7 @@
...
@@ -1655,6 +1662,7 @@
window
[
"
Asc
"
].
truncFracPart
=
truncFracPart
;
window
[
"
Asc
"
].
truncFracPart
=
truncFracPart
;
window
[
"
Asc
"
].
getEndValueRange
=
getEndValueRange
;
window
[
"
Asc
"
].
getEndValueRange
=
getEndValueRange
;
window
[
"
AscCommonExcel
"
].
referenceType
=
referenceType
;
window
[
"
AscCommonExcel
"
].
CRangeOffset
=
CRangeOffset
;
window
[
"
AscCommonExcel
"
].
CRangeOffset
=
CRangeOffset
;
window
[
"
Asc
"
].
Range
=
Range
;
window
[
"
Asc
"
].
Range
=
Range
;
window
[
"
AscCommonExcel
"
].
Range3D
=
Range3D
;
window
[
"
AscCommonExcel
"
].
Range3D
=
Range3D
;
...
...
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