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
d4418bd7
Commit
d4418bd7
authored
May 15, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New class CInlineLevelSdt.
parent
8a8b68ac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
35 deletions
+24
-35
build/configs/webexcel.json
build/configs/webexcel.json
+1
-0
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+1
-0
build/configs/webword.json
build/configs/webword.json
+1
-0
word/Editor/StructuredDocumentTags/BlockLevel.js
word/Editor/StructuredDocumentTags/BlockLevel.js
+1
-35
word/Editor/StructuredDocumentTags/InlineLevel.js
word/Editor/StructuredDocumentTags/InlineLevel.js
+20
-0
No files found.
build/configs/webexcel.json
View file @
d4418bd7
...
...
@@ -136,6 +136,7 @@
"../word/Editor/DocumentContentElementBase.js"
,
"../word/Editor/StructuredDocumentTags/BlockLevel.js"
,
"../word/Editor/StructuredDocumentTags/InlineLevel.js"
,
"../word/Editor/StructuredDocumentTags/SdtPr.js"
,
"../word/Editor/StructuredDocumentTags/SdtPrChanges.js"
,
"../word/Editor/Comments.js"
,
...
...
build/configs/webpowerpoint.json
View file @
d4418bd7
...
...
@@ -138,6 +138,7 @@
"../slide/Editor/Format/Notes.js"
,
"../word/Editor/DocumentContentElementBase.js"
,
"../word/Editor/StructuredDocumentTags/BlockLevel.js"
,
"../word/Editor/StructuredDocumentTags/InlineLevel.js"
,
"../word/Editor/StructuredDocumentTags/SdtPr.js"
,
"../word/Editor/StructuredDocumentTags/SdtPrChanges.js"
,
"../word/Editor/Styles.js"
,
...
...
build/configs/webword.json
View file @
d4418bd7
...
...
@@ -110,6 +110,7 @@
"../word/Editor/GraphicObjects/WrapManager.js"
,
"../word/Editor/DocumentContentElementBase.js"
,
"../word/Editor/StructuredDocumentTags/BlockLevel.js"
,
"../word/Editor/StructuredDocumentTags/InlineLevel.js"
,
"../word/Editor/StructuredDocumentTags/SdtPr.js"
,
"../word/Editor/StructuredDocumentTags/SdtPrChanges.js"
,
"../word/Editor/Comments.js"
,
...
...
word/Editor/StructuredDocumentTags/BlockLevel.js
View file @
d4418bd7
...
...
@@ -947,38 +947,4 @@ CBlockLevelSdt.prototype.GetContentControlPr = function()
//--------------------------------------------------------export--------------------------------------------------------
window
[
'
AscCommonWord
'
]
=
window
[
'
AscCommonWord
'
]
||
{};
window
[
'
AscCommonWord
'
].
CBlockLevelSdt
=
CBlockLevelSdt
;
window
[
'
AscCommonWord
'
].
type_BlockLevelSdt
=
type_BlockLevelSdt
;
function
TEST_ADD_SDT
()
{
var
oLogicDocument
=
editor
.
WordControl
.
m_oLogicDocument
;
oLogicDocument
.
Create_NewHistoryPoint
();
var
oContentControl
=
oLogicDocument
.
AddContentControl
();
oLogicDocument
.
AddToParagraph
(
new
ParaText
(
"
S
"
));
oLogicDocument
.
AddToParagraph
(
new
ParaText
(
"
d
"
));
oLogicDocument
.
AddToParagraph
(
new
ParaText
(
"
t
"
));
oLogicDocument
.
Recalculate
();
oLogicDocument
.
Document_UpdateSelectionState
();
oLogicDocument
.
Document_UpdateInterfaceState
();
oLogicDocument
.
Document_UpdateRulersState
();
return
oContentControl
?
oContentControl
.
GetId
()
:
null
;
}
function
TEST_REMOVE_SDT
(
Id
)
{
var
oLogicDocument
=
editor
.
WordControl
.
m_oLogicDocument
;
oLogicDocument
.
Create_NewHistoryPoint
();
oLogicDocument
.
RemoveContentControl
(
Id
);
oLogicDocument
.
Recalculate
();
oLogicDocument
.
Document_UpdateSelectionState
();
oLogicDocument
.
Document_UpdateInterfaceState
();
oLogicDocument
.
Document_UpdateRulersState
();
}
\ No newline at end of file
window
[
'
AscCommonWord
'
].
type_BlockLevelSdt
=
type_BlockLevelSdt
;
\ No newline at end of file
word/Editor/StructuredDocumentTags/InlineLevel.js
View file @
d4418bd7
...
...
@@ -351,3 +351,23 @@ CInlineLevelSdt.prototype.Read_FromBinary2 = function(Reader)
this
.
Content
.
push
(
Element
);
}
};
function
TEST_ADD_SDT
()
{
var
oLogicDocument
=
editor
.
WordControl
.
m_oLogicDocument
;
oLogicDocument
.
Create_NewHistoryPoint
();
//var oPara = oLogicDocument.GetCurrentParagraph();
var
oInlineContentControl
=
new
CInlineLevelSdt
();
oInlineContentControl
.
Add
(
new
ParaRun
());
oLogicDocument
.
AddToParagraph
(
oInlineContentControl
);
oLogicDocument
.
Recalculate
();
oLogicDocument
.
Document_UpdateSelectionState
();
oLogicDocument
.
Document_UpdateInterfaceState
();
oLogicDocument
.
Document_UpdateRulersState
();
return
oInlineContentControl
?
oInlineContentControl
.
GetId
()
:
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