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
8093d1e6
Commit
8093d1e6
authored
May 20, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function asc_setCellCoord/asc_getCellCoord for AutoFiltersOptions
parent
5fac0445
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
cell/model/autofilters.js
cell/model/autofilters.js
+4
-8
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+3
-5
No files found.
cell/model/autofilters.js
View file @
8093d1e6
...
...
@@ -129,8 +129,7 @@
this
.
Properties
=
g_oAutoFiltersOptionsProperties
;
this
.
cellId
=
null
;
this
.
cellPosX
=
null
;
this
.
cellPosY
=
null
;
this
.
cellCoord
=
null
;
this
.
values
=
null
;
this
.
filter
=
null
;
this
.
sortVal
=
null
;
...
...
@@ -182,8 +181,7 @@
},
asc_setCellId
:
function
(
cellId
)
{
this
.
cellId
=
cellId
;},
asc_setCellPosX
:
function
(
val
)
{
this
.
cellPosX
=
val
;
},
asc_setCellPosY
:
function
(
val
)
{
this
.
cellPosY
=
val
;
},
asc_setCellCoord
:
function
(
val
)
{
this
.
cellCoord
=
val
;
},
asc_setValues
:
function
(
values
)
{
this
.
values
=
values
;
},
asc_setFilterObj
:
function
(
filter
)
{
this
.
filter
=
filter
;
},
...
...
@@ -197,8 +195,7 @@
asc_setSortColor
:
function
(
val
)
{
this
.
sortColor
=
val
;
},
asc_getCellId
:
function
()
{
return
this
.
cellId
;
},
asc_getCellPosX
:
function
()
{
return
this
.
cellPosX
;
},
asc_getCellPosY
:
function
()
{
return
this
.
cellPosY
;
},
asc_getCellCoord
:
function
()
{
return
this
.
cellCoord
;
},
asc_getValues
:
function
()
{
return
this
.
values
;
},
asc_getFilterObj
:
function
()
{
return
this
.
filter
;
},
...
...
@@ -4892,8 +4889,7 @@
prot
[
"
asc_getValues
"
]
=
prot
.
asc_getValues
;
prot
[
"
asc_getFilterObj
"
]
=
prot
.
asc_getFilterObj
;
prot
[
"
asc_getCellId
"
]
=
prot
.
asc_getCellId
;
prot
[
"
asc_getCellPosX
"
]
=
prot
.
asc_getCellPosX
;
prot
[
"
asc_getCellPosY
"
]
=
prot
.
asc_getCellPosY
;
prot
[
"
asc_getCellCoord
"
]
=
prot
.
asc_getCellCoord
;
prot
[
"
asc_getDisplayName
"
]
=
prot
.
asc_getDisplayName
;
prot
[
"
asc_getIsTextFilter
"
]
=
prot
.
asc_getIsTextFilter
;
prot
[
"
asc_getColorsFill
"
]
=
prot
.
asc_getColorsFill
;
...
...
cell/view/WorksheetView.js
View file @
8093d1e6
...
...
@@ -12839,9 +12839,8 @@
var
rangeButton
=
Asc
.
Range
(
autoFilter
.
Ref
.
c1
+
colId
,
autoFilter
.
Ref
.
r1
,
autoFilter
.
Ref
.
c1
+
colId
,
autoFilter
.
Ref
.
r1
);
var
cellId
=
ws
.
autoFilters
.
_rangeToId
(
rangeButton
);
var
posX
=
(
this
.
cols
[
autoFilter
.
Ref
.
c1
+
colId
].
left
+
this
.
cols
[
autoFilter
.
Ref
.
c1
+
colId
].
width
)
/
0.75
;
var
posY
=
(
this
.
rows
[
autoFilter
.
Ref
.
r1
].
top
+
this
.
rows
[
autoFilter
.
Ref
.
r1
].
height
)
/
0.75
;
var
cellCoord
=
this
.
getCellCoord
(
autoFilter
.
Ref
.
c1
,
autoFilter
.
Ref
.
r1
);
//get filter object
var
filterObj
=
new
Asc
.
AutoFilterObj
();
...
...
@@ -12926,8 +12925,7 @@
var
autoFilterObject
=
new
Asc
.
AutoFiltersOptions
();
autoFilterObject
.
asc_setSortState
(
sortVal
);
autoFilterObject
.
asc_setCellPosX
(
posX
);
autoFilterObject
.
asc_setCellPosY
(
posY
);
autoFilterObject
.
asc_setCellCoord
(
cellCoord
);
autoFilterObject
.
asc_setCellId
(
cellId
);
autoFilterObject
.
asc_setValues
(
values
);
autoFilterObject
.
asc_setFilterObj
(
filterObj
);
...
...
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