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
6dce37d4
Commit
6dce37d4
authored
May 24, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cell apiBuilder
parent
85c3afbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
build/configs/webexcel.json
build/configs/webexcel.json
+2
-0
cell/apiBuilder.js
cell/apiBuilder.js
+63
-0
No files found.
build/configs/webexcel.json
View file @
6dce37d4
...
...
@@ -171,6 +171,8 @@
"../word/Math/borderBox.js"
,
"../word/apiCommon.js"
,
"../cell/apiBuilder.js"
,
"../common/clipboard_base.js"
,
"../common/Drawings/Format/OleObject.js"
,
"../common/plugins.js"
...
...
cell/apiBuilder.js
0 → 100644
View file @
6dce37d4
"
use strict
"
;
(
function
(
window
,
builder
)
{
/**
* @global
* @class
* @name Api
*/
var
Api
=
window
[
"
Asc
"
][
"
spreadsheet_api
"
];
/**
* Class representing a sheet.
* @constructor
*/
function
ApiWorksheet
(
worksheet
)
{
this
.
worksheet
=
worksheet
;
}
/**
* Class representing a range.
* @constructor
*/
function
ApiRange
(
range
)
{
this
.
range
=
range
;
}
/**
* Returns an object that represents the active sheet
* @memberof Api
* @returns {ApiWorksheet}
*/
Api
.
prototype
.
GetActiveSheet
=
function
()
{
return
new
ApiWorksheet
(
this
.
wbModel
.
getWorksheet
(
this
.
wbModel
.
getActive
()));
};
/**
* Remove element by specified position.
* @memberof ApiWorksheet
* @param {string} sRange
* @returns {ApiRange}
*/
ApiWorksheet
.
prototype
.
getRange
=
function
(
sRange
)
{
return
new
ApiRange
(
this
.
worksheet
.
getRange2
(
sRange
));
};
/**
* Remove element by specified position.
* @memberof ApiRange
* @param {string} val
*/
ApiRange
.
prototype
.
setValue
=
function
(
val
)
{
this
.
range
.
setValue
(
val
);
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Export
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Api
.
prototype
[
"
GetActiveSheet
"
]
=
Api
.
prototype
.
GetActiveSheet
;
ApiWorksheet
.
prototype
[
"
getRange
"
]
=
ApiWorksheet
.
prototype
.
getRange
;
ApiRange
.
prototype
[
"
setValue
"
]
=
ApiRange
.
prototype
.
setValue
;
}(
window
,
null
));
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