Skip to content

Commit

Permalink
Add new functions for numbering in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Jun 15, 2018
1 parent a18295a commit 4ff3d26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Ability to work with bookmarks
Ability to add/change hyperlinks anchored to bookmarks/headings
Add support east asian punctuation and line breaks with hieroglyphs
Add support for characters that can't be placed at the beginning/end of the line
Implement the function to continue the numbering
Implement the function to continue a numbering
Implement the function to separate a numbering

### Spreadsheet Editor
* Add support comment mode
Expand Down
18 changes: 18 additions & 0 deletions word/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3511,6 +3511,22 @@ background-repeat: no-repeat;\
fCallback();
}
};
asc_docs_api.prototyoe.asc_ContinueNumbering = function()
{
var oLogicDocument = this.WordControl.m_oLogicDocument;
if (!oLogicDocument)
return;

oLogicDocument.ContinueNumbering();
};
asc_docs_api.prototype.asc_RestartNumbering = function(nRestartValue)
{
var oLogicDocument = this.WordControl.m_oLogicDocument;
if (!oLogicDocument)
return;

oLogicDocument.RestartNumbering(nRestartValue);
};
asc_docs_api.prototype.put_Style = function(sName)
{
if (false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Properties))
Expand Down Expand Up @@ -9172,6 +9188,8 @@ background-repeat: no-repeat;\
asc_docs_api.prototype['put_PrAlign'] = asc_docs_api.prototype.put_PrAlign;
asc_docs_api.prototype['put_TextPrBaseline'] = asc_docs_api.prototype.put_TextPrBaseline;
asc_docs_api.prototype['put_ListType'] = asc_docs_api.prototype.put_ListType;
asc_docs_api.prototype['asc_ContinueNumbering'] = asc_docs_api.prototype.asc_ContinueNumbering;
asc_docs_api.prototype['asc_RestartNumbering'] = asc_docs_api.prototype.asc_RestartNumbering;
asc_docs_api.prototype['put_Style'] = asc_docs_api.prototype.put_Style;
asc_docs_api.prototype['SetDeviceInputHelperId'] = asc_docs_api.prototype.SetDeviceInputHelperId;
asc_docs_api.prototype['put_ShowSnapLines'] = asc_docs_api.prototype.put_ShowSnapLines;
Expand Down

0 comments on commit 4ff3d26

Please sign in to comment.