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
2a2f2f67
Commit
2a2f2f67
authored
Jun 03, 2016
by
alexey.musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] сериализация для авто фильтров
parent
d1ee2d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
cell/native/native.js
cell/native/native.js
+24
-4
No files found.
cell/native/native.js
View file @
2a2f2f67
...
...
@@ -2409,7 +2409,18 @@ function asc_WriteAddFormatTableOptions(c, s) {
s
[
'
WriteByte
'
](
255
);
}
function
asc_WriteAutoFilterObj
(
c
,
s
)
{
if
(
!
c
)
return
;
s
[
'
WriteByte
'
](
i
);
if
(
undefined
!==
c
.
asc_getIsDateFormat
())
{
s
[
'
WriteByte
'
](
0
);
s
[
'
WriteLong
'
](
c
.
asc_getType
());
}
s
[
'
WriteByte
'
](
255
);
}
function
asc_WriteAutoFiltersOptionsElements
(
i
,
c
,
s
)
{
if
(
!
c
)
return
;
...
...
@@ -2437,7 +2448,7 @@ function asc_WriteAutoFiltersOptionsElements(i, c, s) {
s
[
'
WriteByte
'
](
255
);
}
function
asc_Write
CAscC
AutoFiltersOptions
(
c
,
s
)
{
function
asc_WriteAutoFiltersOptions
(
c
,
s
)
{
if
(
!
c
)
return
;
if
(
c
.
asc_getCellId
())
{
...
...
@@ -2477,7 +2488,16 @@ function asc_WriteCAscCAutoFiltersOptions(c, s) {
asc_WriteAutoFiltersOptionsElements
(
1
,
c
.
asc_getValues
()[
i
],
s
);
}
}
if
(
undefined
!==
c
.
asc_getSortState
())
{
s
[
'
WriteByte
'
](
6
);
s
[
'
WriteLong
'
](
c
.
asc_getSortState
());
}
if
(
c
.
asc_getFilterObj
())
{
asc_WriteAutoFilterObj
(
7
,
c
.
asc_getFilterObj
(),
s
);
}
s
[
'
WriteByte
'
](
255
);
}
...
...
@@ -3709,7 +3729,7 @@ function OfflineEditor () {
console
.
log
(
'
asc_onSetAFDialog
'
);
var
stream
=
global_memory_stream_menu
;
stream
[
"
ClearNoAttack
"
]();
asc_Write
CAscC
AutoFiltersOptions
(
state
,
stream
);
asc_WriteAutoFiltersOptions
(
state
,
stream
);
window
[
"
native
"
][
"
OnCallMenuEvent
"
](
3060
,
stream
);
// ASC_SPREADSHEETS_EVENT_TYPE_FILTER_DIALOG
});
};
...
...
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