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
d428594f
Commit
d428594f
authored
Apr 17, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PreDelete function in the new class CBlockLevelSdt.
parent
2be97d0f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
word/Editor/DocumentContent.js
word/Editor/DocumentContent.js
+7
-0
word/Editor/DocumentContentBase.js
word/Editor/DocumentContentBase.js
+1
-1
word/Editor/DocumentContentElementBase.js
word/Editor/DocumentContentElementBase.js
+3
-0
word/Editor/StructuredDocumentTags/BlockLevel.js
word/Editor/StructuredDocumentTags/BlockLevel.js
+4
-0
No files found.
word/Editor/DocumentContent.js
View file @
d428594f
...
@@ -8826,6 +8826,13 @@ CDocumentContent.prototype.IsStartFromNewPage = function()
...
@@ -8826,6 +8826,13 @@ CDocumentContent.prototype.IsStartFromNewPage = function()
return
this
.
Content
[
0
].
IsStartFromNewPage
();
return
this
.
Content
[
0
].
IsStartFromNewPage
();
};
};
CDocumentContent
.
prototype
.
PreDelete
=
function
()
{
for
(
var
nIndex
=
0
,
nCount
=
this
.
Content
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
this
.
Content
[
nIndex
].
PreDelete
();
}
};
function
CDocumentContentStartState
(
DocContent
)
function
CDocumentContentStartState
(
DocContent
)
{
{
...
...
word/Editor/DocumentContentBase.js
View file @
d428594f
...
@@ -504,7 +504,7 @@ CDocumentContentBase.prototype.private_Remove = function(Count, bOnlyText, bRemo
...
@@ -504,7 +504,7 @@ CDocumentContentBase.prototype.private_Remove = function(Count, bOnlyText, bRemo
{
{
// Удаляем весь промежуточный контент, начальный элемент и конечный элемент, если это
// Удаляем весь промежуточный контент, начальный элемент и конечный элемент, если это
// таблица, поскольку таблица не может быть последним элементом в документе удаляем без проверок.
// таблица, поскольку таблица не может быть последним элементом в документе удаляем без проверок.
if
(
type_Pargraph
!==
EndType
)
if
(
type_Par
a
graph
!==
EndType
)
this
.
Internal_Content_Remove
(
StartPos
,
EndPos
-
StartPos
+
1
);
this
.
Internal_Content_Remove
(
StartPos
,
EndPos
-
StartPos
+
1
);
else
else
this
.
Internal_Content_Remove
(
StartPos
,
EndPos
-
StartPos
);
this
.
Internal_Content_Remove
(
StartPos
,
EndPos
-
StartPos
);
...
...
word/Editor/DocumentContentElementBase.js
View file @
d428594f
...
@@ -429,6 +429,9 @@ CDocumentContentElementBase.prototype.Add = function(oParaItem)
...
@@ -429,6 +429,9 @@ CDocumentContentElementBase.prototype.Add = function(oParaItem)
{
{
// TODO: Данную функцию нужно заменить на AddToParagraph
// TODO: Данную функцию нужно заменить на AddToParagraph
};
};
CDocumentContentElementBase
.
prototype
.
PreDelete
=
function
()
{
};
//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с номерами страниц
// Функции для работы с номерами страниц
//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
...
...
word/Editor/StructuredDocumentTags/BlockLevel.js
View file @
d428594f
...
@@ -349,6 +349,10 @@ CBlockLevelSdt.prototype.Add = function(oParaItem)
...
@@ -349,6 +349,10 @@ CBlockLevelSdt.prototype.Add = function(oParaItem)
{
{
return
this
.
Content
.
Paragraph_Add
(
oParaItem
);
return
this
.
Content
.
Paragraph_Add
(
oParaItem
);
};
};
CBlockLevelSdt
.
prototype
.
PreDelete
=
function
()
{
this
.
Content
.
PreDelete
();
};
//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
CBlockLevelSdt
.
prototype
.
Is_HdrFtr
=
function
(
bReturnHdrFtr
)
CBlockLevelSdt
.
prototype
.
Is_HdrFtr
=
function
(
bReturnHdrFtr
)
{
{
...
...
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