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
fd0f2169
Commit
fd0f2169
authored
Jun 23, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Убран ненужный параметр ContentLastChangePos.
parent
b0bf8739
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
220 additions
and
258 deletions
+220
-258
word/Editor/Document.js
word/Editor/Document.js
+179
-208
word/Editor/DocumentControllerBase.js
word/Editor/DocumentControllerBase.js
+6
-7
word/Editor/DrawingsController.js
word/Editor/DrawingsController.js
+10
-12
word/Editor/Footnotes.js
word/Editor/Footnotes.js
+12
-13
word/Editor/HeaderFooterController.js
word/Editor/HeaderFooterController.js
+9
-11
word/Editor/LogicDocumentController.js
word/Editor/LogicDocumentController.js
+4
-7
No files found.
word/Editor/Document.js
View file @
fd0f2169
This diff is collapsed.
Click to expand it.
word/Editor/DocumentControllerBase.js
View file @
fd0f2169
...
...
@@ -312,6 +312,12 @@ CDocumentControllerBase.prototype.AddInlineTable = function(nCols, nRows){};
* Очищаем настройки параграфа.
*/
CDocumentControllerBase
.
prototype
.
ClearParagraphFormatting
=
function
(){};
/**
* Добавляем элемент в параграф.
* @param oItem
* @param {boolean} bRecalculate - Пересчитывать ли после выполнения данной функции.
*/
CDocumentControllerBase
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
){};
/**
* Производим удаление выделенной части документа или исходя из позиции курсора.
* @param {number} nDirection направление удаления
...
...
@@ -702,10 +708,3 @@ CDocumentControllerBase.prototype.SaveDocumentStateBeforeLoadChanges = function(
* @param State
*/
CDocumentControllerBase
.
prototype
.
RestoreDocumentStateAfterLoadChanges
=
function
(
State
){};
/**
* Добавляем элемент в параграф.
* @param oItem
* @param {boolean} bRecalculate - Пересчитывать ли после выполнения данной функции.
*/
CDocumentControllerBase
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
){};
word/Editor/DrawingsController.js
View file @
fd0f2169
...
...
@@ -64,6 +64,16 @@ CDrawingsController.prototype.ClearParagraphFormatting = function()
{
this
.
DrawingObjects
.
paragraphClearFormatting
();
};
CDrawingsController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
if
(
para_NewLine
===
oItem
.
Type
&&
true
===
oItem
.
Is_PageOrColumnBreak
())
return
;
this
.
DrawingObjects
.
paragraphAdd
(
oItem
,
bRecalculate
);
this
.
LogicDocument
.
Document_UpdateSelectionState
();
this
.
LogicDocument
.
Document_UpdateUndoRedoState
();
this
.
LogicDocument
.
Document_UpdateInterfaceState
();
};
CDrawingsController
.
prototype
.
Remove
=
function
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
bOnTextAdd
)
{
return
this
.
DrawingObjects
.
remove
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
bOnTextAdd
);
...
...
@@ -489,15 +499,3 @@ CDrawingsController.prototype.RestoreDocumentStateAfterLoadChanges = function(St
};
CDrawingsController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
if
(
para_NewLine
===
oItem
.
Type
&&
true
===
oItem
.
Is_PageOrColumnBreak
())
return
;
this
.
DrawingObjects
.
paragraphAdd
(
oItem
,
bRecalculate
);
this
.
LogicDocument
.
Document_UpdateSelectionState
();
this
.
LogicDocument
.
Document_UpdateUndoRedoState
();
this
.
LogicDocument
.
Document_UpdateInterfaceState
();
};
word/Editor/Footnotes.js
View file @
fd0f2169
...
...
@@ -403,6 +403,18 @@ CFootnotesController.prototype.ClearParagraphFormatting = function()
this
.
CurFootnote
.
Paragraph_ClearFormatting
();
}
};
CFootnotesController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
{
if
(
null
!==
this
.
CurFootnote
)
this
.
CurFootnote
.
Paragraph_Add
(
oItem
,
bRecalculate
);
}
};
CFootnotesController
.
prototype
.
Remove
=
function
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
bOnTextAdd
)
{
// TODO: Доделать селект и курсор
...
...
@@ -1064,19 +1076,6 @@ CFootnotesController.prototype.RestoreDocumentStateAfterLoadChanges = function(S
// TODO: Реализовать
};
CFootnotesController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
{
if
(
null
!==
this
.
CurFootnote
)
this
.
CurFootnote
.
Paragraph_Add
(
oItem
,
bRecalculate
);
}
};
function
CFootEndnotePage
()
...
...
word/Editor/HeaderFooterController.js
View file @
fd0f2169
...
...
@@ -67,6 +67,15 @@ CHdrFtrController.prototype.ClearParagraphFormatting = function()
{
this
.
HdrFtr
.
Paragraph_ClearFormatting
();
};
CHdrFtrController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
if
(
para_NewLine
===
oItem
.
Type
&&
true
===
oItem
.
Is_PageOrColumnBreak
())
return
;
this
.
HdrFtr
.
Paragraph_Add
(
oItem
,
bRecalculate
);
this
.
LogicDocument
.
Document_UpdateSelectionState
();
this
.
LogicDocument
.
Document_UpdateUndoRedoState
();
};
CHdrFtrController
.
prototype
.
Remove
=
function
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
bOnTextAdd
)
{
var
nResult
=
this
.
HdrFtr
.
Remove
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
bOnTextAdd
);
...
...
@@ -441,14 +450,3 @@ CHdrFtrController.prototype.RestoreDocumentStateAfterLoadChanges = function(Stat
this
.
LogicDocument
.
Document_End_HdrFtrEditing
();
}
};
\ No newline at end of file
CHdrFtrController
.
prototype
.
AddToParagraph
=
function
(
oItem
,
bRecalculate
)
{
if
(
para_NewLine
===
oItem
.
Type
&&
true
===
oItem
.
Is_PageOrColumnBreak
())
return
;
this
.
HdrFtr
.
Paragraph_Add
(
oItem
,
bRecalculate
);
this
.
LogicDocument
.
Document_UpdateSelectionState
();
this
.
LogicDocument
.
Document_UpdateUndoRedoState
();
};
\ No newline at end of file
word/Editor/LogicDocumentController.js
View file @
fd0f2169
...
...
@@ -57,6 +57,10 @@ CLogicDocumentController.prototype.ClearParagraphFormatting = function()
{
this
.
LogicDocument
.
controller_ClearParagraphFormatting
();
};
CLogicDocumentController
.
prototype
.
AddToParagraph
=
function
(
oItem
)
{
this
.
LogicDocument
.
controller_AddToParagraph
(
oItem
);
};
CLogicDocumentController
.
prototype
.
Remove
=
function
(
nDirection
,
bOnlyText
,
bRemoveOnlySelection
,
bOnAddText
)
{
return
this
.
LogicDocument
.
controller_Remove
(
nDirection
,
bOnlyText
,
bRemoveOnlySelection
,
bOnAddText
);
...
...
@@ -361,10 +365,3 @@ CLogicDocumentController.prototype.RestoreDocumentStateAfterLoadChanges = functi
{
this
.
LogicDocument
.
controller_RestoreDocumentStateAfterLoadChanges
(
State
);
};
CLogicDocumentController
.
prototype
.
AddToParagraph
=
function
(
oItem
)
{
this
.
LogicDocument
.
controller_AddToParagraph
(
oItem
);
};
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