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
dafd7f47
Commit
dafd7f47
authored
Nov 03, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ParaDrawing was moved to a separate file, also all changes were replaced with the new classes.
parent
82f4ba27
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4119 additions
and
4028 deletions
+4119
-4028
build/configs/nativeword.json
build/configs/nativeword.json
+2
-0
build/configs/webexcel.json
build/configs/webexcel.json
+2
-0
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+2
-0
build/configs/webword.json
build/configs/webword.json
+2
-0
common/HistoryCommon.js
common/HistoryCommon.js
+75
-21
word/Editor/GraphicObjects/Format/ShapePrototype.js
word/Editor/GraphicObjects/Format/ShapePrototype.js
+2
-2
word/Editor/Paragraph/ParaDrawing.js
word/Editor/Paragraph/ParaDrawing.js
+3135
-0
word/Editor/Paragraph/ParaDrawingChanges.js
word/Editor/Paragraph/ParaDrawingChanges.js
+899
-0
word/Editor/ParagraphContent.js
word/Editor/ParagraphContent.js
+0
-4005
No files found.
build/configs/nativeword.json
View file @
dafd7f47
...
@@ -86,6 +86,8 @@
...
@@ -86,6 +86,8 @@
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaDrawing.js"
,
"../word/Editor/Paragraph/ParaDrawingChanges.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Run.js"
,
"../word/Editor/Run.js"
,
...
...
build/configs/webexcel.json
View file @
dafd7f47
...
@@ -135,6 +135,8 @@
...
@@ -135,6 +135,8 @@
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaDrawing.js"
,
"../word/Editor/Paragraph/ParaDrawingChanges.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Run.js"
,
"../word/Editor/Run.js"
,
...
...
build/configs/webpowerpoint.json
View file @
dafd7f47
...
@@ -127,6 +127,8 @@
...
@@ -127,6 +127,8 @@
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaDrawing.js"
,
"../word/Editor/Paragraph/ParaDrawingChanges.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Run.js"
,
"../word/Editor/Run.js"
,
...
...
build/configs/webword.json
View file @
dafd7f47
...
@@ -108,6 +108,8 @@
...
@@ -108,6 +108,8 @@
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/ParagraphContentBase.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPr.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaTextPrChanges.js"
,
"../word/Editor/Paragraph/ParaDrawing.js"
,
"../word/Editor/Paragraph/ParaDrawingChanges.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Hyperlink.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Field.js"
,
"../word/Editor/Run.js"
,
"../word/Editor/Run.js"
,
...
...
common/HistoryCommon.js
View file @
dafd7f47
...
@@ -1323,27 +1323,25 @@
...
@@ -1323,27 +1323,25 @@
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// Типы изменений в классе ParaDrawing
// Типы изменений в классе ParaDrawing
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
window
[
'
AscDFH
'
].
historyitem_Drawing_Size
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
1
;
window
[
'
AscDFH
'
].
historyitem_Drawing_DrawingType
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
1
;
window
[
'
AscDFH
'
].
historyitem_Drawing_Url
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
2
;
window
[
'
AscDFH
'
].
historyitem_Drawing_WrappingType
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
2
;
window
[
'
AscDFH
'
].
historyitem_Drawing_DrawingType
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
3
;
window
[
'
AscDFH
'
].
historyitem_Drawing_Distance
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
3
;
window
[
'
AscDFH
'
].
historyitem_Drawing_WrappingType
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
4
;
window
[
'
AscDFH
'
].
historyitem_Drawing_AllowOverlap
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
4
;
window
[
'
AscDFH
'
].
historyitem_Drawing_Distance
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
5
;
window
[
'
AscDFH
'
].
historyitem_Drawing_PositionH
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
5
;
window
[
'
AscDFH
'
].
historyitem_Drawing_AllowOverlap
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
6
;
window
[
'
AscDFH
'
].
historyitem_Drawing_PositionV
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
6
;
window
[
'
AscDFH
'
].
historyitem_Drawing_PositionH
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
7
;
window
[
'
AscDFH
'
].
historyitem_Drawing_BehindDoc
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
7
;
window
[
'
AscDFH
'
].
historyitem_Drawing_PositionV
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
8
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetGraphicObject
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
8
;
window
[
'
AscDFH
'
].
historyitem_Drawing_BehindDoc
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
10
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetSimplePos
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
9
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetGraphicObject
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
11
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetExtent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
10
;
window
[
'
AscDFH
'
].
historyitem_SetSimplePos
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
12
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetWrapPolygon
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
11
;
window
[
'
AscDFH
'
].
historyitem_SetExtent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
13
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetLocked
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
12
;
window
[
'
AscDFH
'
].
historyitem_SetWrapPolygon
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
14
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetRelativeHeight
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
13
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetLocked
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
15
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetEffectExtent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
14
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetRelativeHeight
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
16
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetParent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
15
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetEffectExtent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
17
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetParaMath
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
16
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetParent
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
18
;
window
[
'
AscDFH
'
].
historyitem_Drawing_LayoutInCell
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
17
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetParaMath
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
19
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetSizeRelH
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
18
;
window
[
'
AscDFH
'
].
historyitem_Drawing_LayoutInCell
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
20
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetSizeRelV
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
19
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetSizeRelH
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
21
;
window
[
'
AscDFH
'
].
historyitem_Drawing_SetSizeRelV
=
window
[
'
AscDFH
'
].
historyitem_type_Drawing
|
22
;
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// Типы изменений в классе CTable
// Типы изменений в классе CTable
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
...
@@ -2825,6 +2823,8 @@
...
@@ -2825,6 +2823,8 @@
//
//
// Базовые классы для изменений
// Базовые классы для изменений
//
//
// Разница между классами Property и Value в том, что Property могут быть undefined, а Value всегда значение
// заданного типа.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
/**
...
@@ -3325,4 +3325,58 @@
...
@@ -3325,4 +3325,58 @@
this
.
Old
=
Reader
.
GetByte
();
this
.
Old
=
Reader
.
GetByte
();
};
};
window
[
'
AscDFH
'
].
CChangesBaseByteProperty
=
CChangesBaseByteProperty
;
window
[
'
AscDFH
'
].
CChangesBaseByteProperty
=
CChangesBaseByteProperty
;
/**
* Базовый класс для изменения числовых(long) значений.
* @constructor
* @extends {AscDFH.CChangesBaseProperty}
*/
function
CChangesBaseLongValue
(
Class
,
Old
,
New
,
Color
)
{
CChangesBaseLongValue
.
superclass
.
constructor
.
call
(
this
,
Class
,
Old
,
New
,
Color
);
}
AscCommon
.
extendClass
(
CChangesBaseLongValue
,
CChangesBaseProperty
);
CChangesBaseLongValue
.
prototype
.
WriteToBinary
=
function
(
Writer
)
{
// Long : New
// Long : Old
Writer
.
WriteLong
(
this
.
New
);
Writer
.
WriteLong
(
this
.
Old
);
};
CChangesBaseLongValue
.
prototype
.
ReadFromBinary
=
function
(
Reader
)
{
// Long : New
// Long : Old
this
.
New
=
Reader
.
GetLong
();
this
.
Old
=
Reader
.
GetLong
();
};
window
[
'
AscDFH
'
].
CChangesBaseLongValue
=
CChangesBaseLongValue
;
/**
* Базовый класс для изменения числовых(long) значений.
* @constructor
* @extends {AscDFH.CChangesBaseProperty}
*/
function
CChangesBaseBoolValue
(
Class
,
Old
,
New
,
Color
)
{
CChangesBaseBoolValue
.
superclass
.
constructor
.
call
(
this
,
Class
,
Old
,
New
,
Color
);
}
AscCommon
.
extendClass
(
CChangesBaseBoolValue
,
CChangesBaseProperty
);
CChangesBaseBoolValue
.
prototype
.
WriteToBinary
=
function
(
Writer
)
{
// Bool : New
// Bool : Old
Writer
.
WriteBool
(
this
.
New
);
Writer
.
WriteBool
(
this
.
Old
);
};
CChangesBaseBoolValue
.
prototype
.
ReadFromBinary
=
function
(
Reader
)
{
// Bool : New
// Bool : Old
this
.
New
=
Reader
.
GetBool
();
this
.
Old
=
Reader
.
GetBool
();
};
window
[
'
AscDFH
'
].
CChangesBaseBoolValue
=
CChangesBaseBoolValue
;
})(
window
);
})(
window
);
word/Editor/GraphicObjects/Format/ShapePrototype.js
View file @
dafd7f47
...
@@ -599,14 +599,14 @@ CShape.prototype.Refresh_RecalcData2 = function()
...
@@ -599,14 +599,14 @@ CShape.prototype.Refresh_RecalcData2 = function()
var
oMainGroup
=
this
.
getMainGroup
();
var
oMainGroup
=
this
.
getMainGroup
();
if
(
oMainGroup
.
parent
)
if
(
oMainGroup
.
parent
)
{
{
oMainGroup
.
parent
.
Refresh_RecalcData
({
Type
:
AscDFH
.
historyitem_SetExtent
});
oMainGroup
.
parent
.
Refresh_RecalcData
({
Type
:
AscDFH
.
historyitem_
Drawing_
SetExtent
});
}
}
}
}
else
else
{
{
if
(
this
.
parent
)
if
(
this
.
parent
)
{
{
this
.
parent
.
Refresh_RecalcData
({
Type
:
AscDFH
.
historyitem_SetExtent
});
this
.
parent
.
Refresh_RecalcData
({
Type
:
AscDFH
.
historyitem_
Drawing_
SetExtent
});
}
}
}
}
return
;
return
;
...
...
word/Editor/Paragraph/ParaDrawing.js
0 → 100644
View file @
dafd7f47
This diff is collapsed.
Click to expand it.
word/Editor/Paragraph/ParaDrawingChanges.js
0 → 100644
View file @
dafd7f47
This diff is collapsed.
Click to expand it.
word/Editor/ParagraphContent.js
View file @
dafd7f47
This diff is collapsed.
Click to expand it.
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