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
d6de2669
Commit
d6de2669
authored
Apr 22, 2016
by
konovalovsergey
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grpFill open/save
parent
01d2d99c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
3 deletions
+116
-3
common/Drawings/Format/Constants.js
common/Drawings/Format/Constants.js
+1
-0
common/Drawings/Format/Format.js
common/Drawings/Format/Format.js
+100
-0
common/Shapes/Serialize.js
common/Shapes/Serialize.js
+5
-0
common/Shapes/SerializeWriter.js
common/Shapes/SerializeWriter.js
+6
-0
common/commonDefines.js
common/commonDefines.js
+3
-2
word/Editor/SerializeCommon.js
word/Editor/SerializeCommon.js
+1
-1
No files found.
common/Drawings/Format/Constants.js
View file @
d6de2669
...
@@ -1191,6 +1191,7 @@ window['AscDFH'].historyitem_type_SlideComments = 1119;
...
@@ -1191,6 +1191,7 @@ window['AscDFH'].historyitem_type_SlideComments = 1119;
window
[
'
AscDFH
'
].
historyitem_type_PropLocker
=
1120
;
window
[
'
AscDFH
'
].
historyitem_type_PropLocker
=
1120
;
window
[
'
AscDFH
'
].
historyitem_type_Theme
=
1121
;
window
[
'
AscDFH
'
].
historyitem_type_Theme
=
1121
;
window
[
'
AscDFH
'
].
historyitem_type_GraphicFrame
=
1122
;
window
[
'
AscDFH
'
].
historyitem_type_GraphicFrame
=
1122
;
window
[
'
AscDFH
'
].
historyitem_type_GrpFill
=
1123
;
...
...
common/Drawings/Format/Format.js
View file @
d6de2669
...
@@ -2991,6 +2991,87 @@ CNoFill.prototype =
...
@@ -2991,6 +2991,87 @@ CNoFill.prototype =
}
}
};
};
function
CGrpFill
()
{
this
.
type
=
c_oAscFill
.
FILL_TYPE_GRP
;
}
CGrpFill
.
prototype
=
{
Get_Id
:
function
()
{
return
this
.
Id
;
},
Refresh_RecalcData
:
function
()
{},
check
:
function
()
{},
getObjectType
:
function
()
{
return
AscDFH
.
historyitem_type_GrpFill
;
},
Write_ToBinary
:
function
(
w
)
{
w
.
WriteLong
(
c_oAscFill
.
FILL_TYPE_GRP
);
},
Read_FromBinary
:
function
(
r
)
{
},
checkWordMods
:
function
()
{
return
false
;
},
convertToPPTXMods
:
function
()
{
},
canConvertPPTXModsToWord
:
function
()
{
return
false
;
},
convertToWordMods
:
function
()
{
},
createDuplicate
:
function
()
{
return
new
CGrpFill
();
},
IsIdentical
:
function
(
fill
)
{
if
(
fill
==
null
)
{
return
false
;
}
return
fill
.
type
===
c_oAscFill
.
FILL_TYPE_GRP
;
},
compare
:
function
(
grpfill
)
{
if
(
grpfill
==
null
)
{
return
null
;
}
if
(
grpfill
.
type
===
this
.
type
)
{
return
new
CGrpFill
();
}
return
null
;
}
};
function
CreateBlackRGBUnifill
()
function
CreateBlackRGBUnifill
()
{
{
...
@@ -3043,6 +3124,7 @@ CUniFill.prototype =
...
@@ -3043,6 +3124,7 @@ CUniFill.prototype =
case
c_oAscFill
.
FILL_TYPE_NONE
:
case
c_oAscFill
.
FILL_TYPE_NONE
:
case
c_oAscFill
.
FILL_TYPE_BLIP
:
case
c_oAscFill
.
FILL_TYPE_BLIP
:
case
c_oAscFill
.
FILL_TYPE_NOFILL
:
case
c_oAscFill
.
FILL_TYPE_NOFILL
:
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
{
break
;
break
;
}
}
...
@@ -3090,6 +3172,7 @@ CUniFill.prototype =
...
@@ -3090,6 +3172,7 @@ CUniFill.prototype =
case
c_oAscFill
.
FILL_TYPE_NONE
:
case
c_oAscFill
.
FILL_TYPE_NONE
:
case
c_oAscFill
.
FILL_TYPE_BLIP
:
case
c_oAscFill
.
FILL_TYPE_BLIP
:
case
c_oAscFill
.
FILL_TYPE_NOFILL
:
case
c_oAscFill
.
FILL_TYPE_NOFILL
:
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
{
break
;
break
;
}
}
...
@@ -3220,6 +3303,12 @@ CUniFill.prototype =
...
@@ -3220,6 +3303,12 @@ CUniFill.prototype =
this
.
fill
.
Read_FromBinary
(
r
);
this
.
fill
.
Read_FromBinary
(
r
);
break
;
break
;
}
}
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
this
.
fill
=
new
CGrpFill
();
this
.
fill
.
Read_FromBinary
(
r
);
break
;
}
}
}
}
}
},
},
...
@@ -11153,6 +11242,11 @@ function CreateAscFill(unifill)
...
@@ -11153,6 +11242,11 @@ function CreateAscFill(unifill)
ret
.
type
=
c_oAscFill
.
FILL_TYPE_NOFILL
;
ret
.
type
=
c_oAscFill
.
FILL_TYPE_NOFILL
;
break
;
break
;
}
}
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
ret
.
type
=
c_oAscFill
.
FILL_TYPE_GRP
;
break
;
}
default
:
default
:
break
;
break
;
}
}
...
@@ -11184,6 +11278,11 @@ function CorrectUniFill(asc_fill, unifill, editorId)
...
@@ -11184,6 +11278,11 @@ function CorrectUniFill(asc_fill, unifill, editorId)
ret
.
fill
=
new
CNoFill
();
ret
.
fill
=
new
CNoFill
();
break
;
break
;
}
}
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
ret
.
fill
=
new
CGrpFill
();
break
;
}
case
c_oAscFill
.
FILL_TYPE_BLIP
:
case
c_oAscFill
.
FILL_TYPE_BLIP
:
{
{
...
@@ -11809,6 +11908,7 @@ function CorrectUniColor(asc_color, unicolor, flag)
...
@@ -11809,6 +11908,7 @@ function CorrectUniColor(asc_color, unicolor, flag)
window
[
'
AscFormat
'
].
CGradFill
=
CGradFill
;
window
[
'
AscFormat
'
].
CGradFill
=
CGradFill
;
window
[
'
AscFormat
'
].
CPattFill
=
CPattFill
;
window
[
'
AscFormat
'
].
CPattFill
=
CPattFill
;
window
[
'
AscFormat
'
].
CNoFill
=
CNoFill
;
window
[
'
AscFormat
'
].
CNoFill
=
CNoFill
;
window
[
'
AscFormat
'
].
CGrpFill
=
CGrpFill
;
window
[
'
AscFormat
'
].
CUniFill
=
CUniFill
;
window
[
'
AscFormat
'
].
CUniFill
=
CUniFill
;
window
[
'
AscFormat
'
].
CompareUniFill
=
CompareUniFill
;
window
[
'
AscFormat
'
].
CompareUniFill
=
CompareUniFill
;
window
[
'
AscFormat
'
].
CompareUnifillBool
=
CompareUnifillBool
;
window
[
'
AscFormat
'
].
CompareUnifillBool
=
CompareUnifillBool
;
...
...
common/Shapes/Serialize.js
View file @
d6de2669
...
@@ -2512,6 +2512,11 @@ function BinaryPPTYLoader()
...
@@ -2512,6 +2512,11 @@ function BinaryPPTYLoader()
uni_fill
.
setFill
(
new
AscFormat
.
CNoFill
());
uni_fill
.
setFill
(
new
AscFormat
.
CNoFill
());
break
;
break
;
}
}
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
uni_fill
.
setFill
(
new
AscFormat
.
CGrpFill
());
break
;
}
}
}
}
}
...
...
common/Shapes/SerializeWriter.js
View file @
d6de2669
...
@@ -2191,6 +2191,12 @@ function CBinaryFileWriter()
...
@@ -2191,6 +2191,12 @@ function CBinaryFileWriter()
oThis
.
EndRecord
();
oThis
.
EndRecord
();
break
;
break
;
}
}
case
c_oAscFill
.
FILL_TYPE_GRP
:
{
oThis
.
StartRecord
(
c_oAscFill
.
FILL_TYPE_GRP
);
oThis
.
EndRecord
();
break
;
}
case
c_oAscFill
.
FILL_TYPE_GRAD
:
case
c_oAscFill
.
FILL_TYPE_GRAD
:
{
{
oThis
.
StartRecord
(
c_oAscFill
.
FILL_TYPE_GRAD
);
oThis
.
StartRecord
(
c_oAscFill
.
FILL_TYPE_GRAD
);
...
...
common/commonDefines.js
View file @
d6de2669
...
@@ -616,8 +616,8 @@ var c_oAscFill = {
...
@@ -616,8 +616,8 @@ var c_oAscFill = {
FILL_TYPE_NOFILL
:
2
,
FILL_TYPE_NOFILL
:
2
,
FILL_TYPE_SOLID
:
3
,
FILL_TYPE_SOLID
:
3
,
FILL_TYPE_GRAD
:
4
,
FILL_TYPE_GRAD
:
4
,
FILL_TYPE_PATT
:
5
FILL_TYPE_PATT
:
5
,
FILL_TYPE_GRP
:
6
};
};
// Chart defines
// Chart defines
...
@@ -1266,6 +1266,7 @@ window['Asc']['c_oAscFill'] = window['Asc'].c_oAscFill = c_oAscFill;
...
@@ -1266,6 +1266,7 @@ window['Asc']['c_oAscFill'] = window['Asc'].c_oAscFill = c_oAscFill;
prot
[
'
FILL_TYPE_SOLID
'
]
=
prot
.
FILL_TYPE_SOLID
;
prot
[
'
FILL_TYPE_SOLID
'
]
=
prot
.
FILL_TYPE_SOLID
;
prot
[
'
FILL_TYPE_GRAD
'
]
=
prot
.
FILL_TYPE_GRAD
;
prot
[
'
FILL_TYPE_GRAD
'
]
=
prot
.
FILL_TYPE_GRAD
;
prot
[
'
FILL_TYPE_PATT
'
]
=
prot
.
FILL_TYPE_PATT
;
prot
[
'
FILL_TYPE_PATT
'
]
=
prot
.
FILL_TYPE_PATT
;
prot
[
'
FILL_TYPE_GRP
'
]
=
prot
.
FILL_TYPE_GRP
;
window
[
'
Asc
'
][
'
c_oAscFillGradType
'
]
=
window
[
'
Asc
'
].
c_oAscFillGradType
=
c_oAscFillGradType
;
window
[
'
Asc
'
][
'
c_oAscFillGradType
'
]
=
window
[
'
Asc
'
].
c_oAscFillGradType
=
c_oAscFillGradType
;
prot
=
c_oAscFillGradType
;
prot
=
c_oAscFillGradType
;
prot
[
'
GRAD_LINEAR
'
]
=
prot
.
GRAD_LINEAR
;
prot
[
'
GRAD_LINEAR
'
]
=
prot
.
GRAD_LINEAR
;
...
...
word/Editor/SerializeCommon.js
View file @
d6de2669
...
@@ -516,7 +516,7 @@ function CPPTXContentLoader()
...
@@ -516,7 +516,7 @@ function CPPTXContentLoader()
case
1
:
case
1
:
{
{
var
spPr
=
new
AscFormat
.
CSpPr
();
var
spPr
=
new
AscFormat
.
CSpPr
();
this
.
ReadSpPr
(
spPr
);
this
.
Read
er
.
ReadGr
SpPr
(
spPr
);
shape
.
setSpPr
(
spPr
);
shape
.
setSpPr
(
spPr
);
shape
.
spPr
.
setParent
(
shape
);
shape
.
spPr
.
setParent
(
shape
);
break
;
break
;
...
...
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