Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
9a5ea5d4
Commit
9a5ea5d4
authored
Mar 29, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Отладка настройки форматированных таблиц.
parent
851d24d5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
121 deletions
+83
-121
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+2
-1
apps/spreadsheeteditor/main/app/controller/RightMenu.js
apps/spreadsheeteditor/main/app/controller/RightMenu.js
+6
-6
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+6
-7
apps/spreadsheeteditor/main/app/view/TableSettings.js
apps/spreadsheeteditor/main/app/view/TableSettings.js
+69
-107
No files found.
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
9a5ea5d4
...
...
@@ -1156,7 +1156,8 @@ define([
documentHolder
.
pmiClear
.
menu
.
items
[
3
].
setVisible
(
!
this
.
permissions
.
isEditDiagram
);
documentHolder
.
pmiClear
.
menu
.
items
[
4
].
setVisible
(
!
this
.
permissions
.
isEditDiagram
);
var
filterInfo
=
cellinfo
.
asc_getAutoFilterInfo
()
&&
cellinfo
.
asc_getAutoFilterInfo
().
asc_getIsApplyAutoFilter
();
var
filterInfo
=
cellinfo
.
asc_getAutoFilterInfo
();
filterInfo
=
(
filterInfo
)
?
filterInfo
.
asc_getIsApplyAutoFilter
()
:
false
;
documentHolder
.
pmiInsertCells
.
menu
.
items
[
0
].
setDisabled
(
filterInfo
);
documentHolder
.
pmiDeleteCells
.
menu
.
items
[
0
].
setDisabled
(
filterInfo
);
documentHolder
.
pmiInsertCells
.
menu
.
items
[
1
].
setDisabled
(
filterInfo
);
...
...
apps/spreadsheeteditor/main/app/controller/RightMenu.js
View file @
9a5ea5d4
...
...
@@ -73,18 +73,18 @@ define([
onSelectionChanged
:
function
(
info
)
{
var
SelectedObjects
=
[],
selectType
=
info
.
asc_getFlags
().
asc_getSelectionType
(),
f
ilterInfo
=
info
.
asc_getAutoFilter
Info
();
f
ormatTableInfo
=
info
.
asc_getFormatTable
Info
();
if
(
selectType
==
c_oAscSelectionType
.
RangeImage
||
selectType
==
c_oAscSelectionType
.
RangeShape
||
selectType
==
c_oAscSelectionType
.
RangeChart
||
selectType
==
c_oAscSelectionType
.
RangeChartText
||
selectType
==
c_oAscSelectionType
.
RangeShapeText
)
{
SelectedObjects
=
this
.
api
.
asc_getGraphicObjectProps
();
}
if
(
SelectedObjects
.
length
<=
0
&&
!
(
filterInfo
&&
filterInfo
.
asc_getTableName
()
!==
null
)
&&
!
this
.
rightmenu
.
minimizedMode
)
{
if
(
SelectedObjects
.
length
<=
0
&&
!
formatTableInfo
&&
!
this
.
rightmenu
.
minimizedMode
)
{
this
.
rightmenu
.
clearSelection
();
}
this
.
onFocusObject
(
SelectedObjects
,
f
ilter
Info
);
this
.
onFocusObject
(
SelectedObjects
,
f
ormatTable
Info
);
var
need_disable
=
info
.
asc_getLocked
(),
me
=
this
;
...
...
@@ -97,7 +97,7 @@ define([
}
},
onFocusObject
:
function
(
SelectedObjects
,
f
ilter
Info
)
{
onFocusObject
:
function
(
SelectedObjects
,
f
ormatTable
Info
)
{
if
(
!
this
.
editMode
)
return
;
...
...
@@ -135,9 +135,9 @@ define([
this
.
_settings
[
settingsType
].
locked
=
value
.
asc_getLocked
();
}
if
(
f
ilterInfo
&&
filterInfo
.
asc_getTableName
()
!==
null
)
{
if
(
f
ormatTableInfo
)
{
settingsType
=
Common
.
Utils
.
documentSettingsType
.
Table
;
this
.
_settings
[
settingsType
].
props
=
f
ilter
Info
;
this
.
_settings
[
settingsType
].
props
=
f
ormatTable
Info
;
this
.
_settings
[
settingsType
].
hidden
=
0
;
}
...
...
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
9a5ea5d4
...
...
@@ -1169,9 +1169,7 @@ define([
shortcuts
:
{
'
command+l,ctrl+l
'
:
function
(
e
)
{
if
(
me
.
editMode
)
{
var
cellinfo
=
me
.
api
.
asc_getCellInfo
(),
filterinfo
=
cellinfo
.
asc_getAutoFilterInfo
();
if
(
!
filterinfo
||
filterinfo
.
asc_getTableName
()
===
null
)
if
(
!
me
.
api
.
asc_getCellInfo
().
asc_getFormatTableInfo
())
me
.
_setTableFormat
(
me
.
toolbar
.
mnuTableTemplatePicker
.
store
.
at
(
23
).
get
(
'
name
'
));
}
...
...
@@ -1674,7 +1672,8 @@ define([
// (coauth_disable !== toolbar.btnClearStyle.isDisabled()) && toolbar.btnClearStyle.setDisabled(coauth_disable);
// (coauth_disable !== toolbar.btnCopyStyle.isDisabled()) && toolbar.btnCopyStyle.setDisabled(coauth_disable);
var
filterInfo
=
info
.
asc_getAutoFilterInfo
();
var
filterInfo
=
info
.
asc_getAutoFilterInfo
(),
formatTableInfo
=
info
.
asc_getFormatTableInfo
();
if
(
!
toolbar
.
mode
.
isEditMailMerge
)
{
/* read cell horizontal align */
fontparam
=
info
.
asc_getHorAlign
();
...
...
@@ -1751,7 +1750,7 @@ define([
}
}
need_disable
=
this
.
_state
.
controlsdisabled
.
filters
||
f
ilterInfo
&&
(
filterInfo
.
asc_getTableName
()
!==
null
||
filterInfo
.
asc_getIsAutoFilter
()
===
null
)
;
need_disable
=
this
.
_state
.
controlsdisabled
.
filters
||
f
ormatTableInfo
!==
null
||
filterInfo
&&
filterInfo
.
asc_getIsAutoFilter
()
===
null
;
// (need_disable !== toolbar.btnMerge.isDisabled()) && toolbar.btnMerge.setDisabled(need_disable);
toolbar
.
lockToolbar
(
SSE
.
enumLock
.
ruleMerge
,
need_disable
,
{
array
:[
toolbar
.
btnMerge
]});
...
...
@@ -1782,7 +1781,7 @@ define([
{
array
:
[
toolbar
.
btnSortDown
,
toolbar
.
btnSortUp
,
toolbar
.
mnuitemSortAZ
,
toolbar
.
mnuitemSortZA
,
toolbar
.
btnTableTemplate
,
toolbar
.
btnSetAutofilter
,
toolbar
.
mnuitemAutoFilter
,
toolbar
.
btnAutofilter
]
});
val
=
(
f
ilterInfo
)
?
filter
Info
.
asc_getTableStyleName
()
:
null
;
val
=
(
f
ormatTableInfo
)
?
formatTable
Info
.
asc_getTableStyleName
()
:
null
;
if
(
this
.
_state
.
tablestylename
!==
val
&&
this
.
toolbar
.
mnuTableTemplatePicker
)
{
val
=
this
.
toolbar
.
mnuTableTemplatePicker
.
store
.
findWhere
({
name
:
val
});
if
(
val
)
{
...
...
@@ -1794,7 +1793,7 @@ define([
}
}
this
.
_state
.
tablename
=
(
f
ilterInfo
)
?
filter
Info
.
asc_getTableName
()
:
undefined
;
this
.
_state
.
tablename
=
(
f
ormatTableInfo
)
?
formatTable
Info
.
asc_getTableName
()
:
undefined
;
need_disable
=
this
.
_state
.
controlsdisabled
.
filters
||
!
filterInfo
||
(
filterInfo
.
asc_getIsApplyAutoFilter
()
!==
true
);
toolbar
.
lockToolbar
(
SSE
.
enumLock
.
ruleDelFilter
,
need_disable
,
{
array
:[
toolbar
.
btnClearAutofilter
,
toolbar
.
mnuitemClearFilter
]});
...
...
apps/spreadsheeteditor/main/app/view/TableSettings.js
View file @
9a5ea5d4
This diff is collapsed.
Click to expand it.
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