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
19d2ae8f
Commit
19d2ae8f
authored
Feb 06, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add functions for title/description into format table(for menu)
parent
5e7f5ded
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
2 deletions
+50
-2
cell/apiDefines.js
cell/apiDefines.js
+3
-1
cell/model/CellInfo.js
cell/model/CellInfo.js
+21
-1
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+11
-0
cell/model/autofilters.js
cell/model/autofilters.js
+12
-0
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+3
-0
No files found.
cell/apiDefines.js
View file @
19d2ae8f
...
@@ -229,7 +229,9 @@ var c_oAscChangeTableStyleInfo = {
...
@@ -229,7 +229,9 @@ var c_oAscChangeTableStyleInfo = {
rowHeader
:
4
,
rowHeader
:
4
,
rowTotal
:
5
,
rowTotal
:
5
,
rowBanded
:
6
,
rowBanded
:
6
,
filterButton
:
7
filterButton
:
7
,
title
:
8
,
description
:
9
};
};
// Состояние редактора ячейки
// Состояние редактора ячейки
...
...
cell/model/CellInfo.js
View file @
19d2ae8f
...
@@ -196,7 +196,16 @@
...
@@ -196,7 +196,16 @@
this
.
tableName
=
null
;
this
.
tableName
=
null
;
this
.
tableRange
=
null
;
this
.
tableRange
=
null
;
this
.
firstRow
=
null
;
this
.
lastRow
=
null
;
this
.
bandHor
=
null
;
this
.
firstCol
=
null
;
this
.
lastCol
=
null
;
this
.
bandVer
=
null
;
this
.
filterButton
=
null
;
//info send in menu - what you can do with row/col into table
this
.
isInsertRowAbove
=
null
;
this
.
isInsertRowAbove
=
null
;
this
.
isInsertRowBelow
=
null
;
this
.
isInsertRowBelow
=
null
;
this
.
isInsertColumnLeft
=
null
;
this
.
isInsertColumnLeft
=
null
;
...
@@ -204,6 +213,9 @@
...
@@ -204,6 +213,9 @@
this
.
isDeleteRow
=
null
;
this
.
isDeleteRow
=
null
;
this
.
isDeleteColumn
=
null
;
this
.
isDeleteColumn
=
null
;
this
.
isDeleteTable
=
null
;
this
.
isDeleteTable
=
null
;
this
.
altText
=
null
;
this
.
altTextSummary
=
null
;
}
}
asc_CFormatTableInfo
.
prototype
=
{
asc_CFormatTableInfo
.
prototype
=
{
asc_getTableStyleName
:
function
()
{
asc_getTableStyleName
:
function
()
{
...
@@ -244,6 +256,12 @@
...
@@ -244,6 +256,12 @@
return
this
.
isDeleteColumn
;
return
this
.
isDeleteColumn
;
},
asc_getIsDeleteTable
:
function
()
{
},
asc_getIsDeleteTable
:
function
()
{
return
this
.
isDeleteTable
;
return
this
.
isDeleteTable
;
},
asc_getTitle
:
function
()
{
return
this
.
altText
;
},
asc_getDescription
:
function
()
{
return
this
.
altTextSummary
;
}
}
};
};
...
@@ -447,6 +465,8 @@
...
@@ -447,6 +465,8 @@
prot
[
"
asc_getIsDeleteRow
"
]
=
prot
.
asc_getIsDeleteRow
;
prot
[
"
asc_getIsDeleteRow
"
]
=
prot
.
asc_getIsDeleteRow
;
prot
[
"
asc_getIsDeleteColumn
"
]
=
prot
.
asc_getIsDeleteColumn
;
prot
[
"
asc_getIsDeleteColumn
"
]
=
prot
.
asc_getIsDeleteColumn
;
prot
[
"
asc_getIsDeleteTable
"
]
=
prot
.
asc_getIsDeleteTable
;
prot
[
"
asc_getIsDeleteTable
"
]
=
prot
.
asc_getIsDeleteTable
;
prot
[
"
asc_getTitle
"
]
=
prot
.
asc_getTitle
;
prot
[
"
asc_getDescription
"
]
=
prot
.
asc_getDescription
;
window
[
"
AscCommonExcel
"
].
asc_CCellInfo
=
asc_CCellInfo
;
window
[
"
AscCommonExcel
"
].
asc_CCellInfo
=
asc_CCellInfo
;
prot
=
asc_CCellInfo
.
prototype
;
prot
=
asc_CCellInfo
.
prototype
;
...
...
cell/model/WorkbookElems.js
View file @
19d2ae8f
...
@@ -6124,6 +6124,17 @@ TablePart.prototype.checkTotalRowFormula = function(ws)
...
@@ -6124,6 +6124,17 @@ TablePart.prototype.checkTotalRowFormula = function(ws)
}
}
};
};
TablePart
.
prototype
.
changeAltText
=
function
(
val
)
{
this
.
altText
=
val
;
};
TablePart
.
prototype
.
changeAltTextSummary
=
function
(
val
)
{
this
.
altTextSummary
=
val
;
};
/** @constructor */
/** @constructor */
function
AutoFilter
()
{
function
AutoFilter
()
{
this
.
Ref
=
null
;
this
.
Ref
=
null
;
...
...
cell/model/autofilters.js
View file @
19d2ae8f
...
@@ -2542,6 +2542,18 @@
...
@@ -2542,6 +2542,18 @@
{
{
tablePart
.
showButton
(
val
);
tablePart
.
showButton
(
val
);
break
;
}
case
c_oAscChangeTableStyleInfo
.
title
:
{
tablePart
.
changeAltText
(
val
);
break
;
}
case
c_oAscChangeTableStyleInfo
.
description
:
{
tablePart
.
changeAltTextSummary
(
val
);
break
;
break
;
}
}
}
}
...
...
cell/view/WorksheetView.js
View file @
19d2ae8f
...
@@ -6960,6 +6960,9 @@
...
@@ -6960,6 +6960,9 @@
cell_info
.
formatTableInfo
.
firstRow
=
curTablePart
.
HeaderRowCount
===
null
;
cell_info
.
formatTableInfo
.
firstRow
=
curTablePart
.
HeaderRowCount
===
null
;
cell_info
.
formatTableInfo
.
tableRange
=
curTablePart
.
Ref
.
getAbsName
();
cell_info
.
formatTableInfo
.
tableRange
=
curTablePart
.
Ref
.
getAbsName
();
cell_info
.
formatTableInfo
.
filterButton
=
curTablePart
.
isShowButton
();
cell_info
.
formatTableInfo
.
filterButton
=
curTablePart
.
isShowButton
();
cell_info
.
formatTableInfo
.
altText
=
curTablePart
.
altText
;
cell_info
.
formatTableInfo
.
altTextSummary
=
curTablePart
.
altTextSummary
;
this
.
af_setDisableProps
(
curTablePart
,
cell_info
.
formatTableInfo
);
this
.
af_setDisableProps
(
curTablePart
,
cell_info
.
formatTableInfo
);
}
}
...
...
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