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
4f5db28d
Commit
4f5db28d
authored
Jun 28, 2017
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 21042
parent
8f562edf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
common/Drawings/Format/ChartSpace.js
common/Drawings/Format/ChartSpace.js
+2
-0
word/Editor/Hyperlink.js
word/Editor/Hyperlink.js
+4
-0
word/Editor/Paragraph.js
word/Editor/Paragraph.js
+4
-0
word/Editor/Run.js
word/Editor/Run.js
+12
-2
No files found.
common/Drawings/Format/ChartSpace.js
View file @
4f5db28d
...
...
@@ -364,6 +364,7 @@ function checkFiniteNumber(num)
}
var
G_O_VISITED_HLINK_COLOR
=
CreateUniFillSolidFillWidthTintOrShade
(
CreateUnifillSolidFillSchemeColorByIndex
(
10
),
0
);
var
G_O_HLINK_COLOR
=
CreateUniFillSolidFillWidthTintOrShade
(
CreateUnifillSolidFillSchemeColorByIndex
(
11
),
0
);
var
G_O_NO_ACTIVE_COMMENT_BRUSH
=
AscFormat
.
CreateUniFillByUniColor
(
AscFormat
.
CreateUniColorRGB
(
248
,
231
,
195
));
var
G_O_ACTIVE_COMMENT_BRUSH
=
AscFormat
.
CreateUniFillByUniColor
(
AscFormat
.
CreateUniColorRGB
(
240
,
200
,
120
));
/*function addPointToMap(map, worksheet, row, col, pt)
...
...
@@ -13385,6 +13386,7 @@ function checkBlipFillRasterImages(sp)
window
[
'
AscFormat
'
].
CreateUnifillSolidFillSchemeColorByIndex
=
CreateUnifillSolidFillSchemeColorByIndex
;
window
[
'
AscFormat
'
].
CreateUniFillSchemeColorWidthTint
=
CreateUniFillSchemeColorWidthTint
;
window
[
'
AscFormat
'
].
G_O_VISITED_HLINK_COLOR
=
G_O_VISITED_HLINK_COLOR
;
window
[
'
AscFormat
'
].
G_O_HLINK_COLOR
=
G_O_HLINK_COLOR
;
window
[
'
AscFormat
'
].
G_O_NO_ACTIVE_COMMENT_BRUSH
=
G_O_NO_ACTIVE_COMMENT_BRUSH
;
window
[
'
AscFormat
'
].
G_O_ACTIVE_COMMENT_BRUSH
=
G_O_ACTIVE_COMMENT_BRUSH
;
window
[
'
AscFormat
'
].
CChartSpace
=
CChartSpace
;
...
...
word/Editor/Hyperlink.js
View file @
4f5db28d
...
...
@@ -197,15 +197,19 @@ ParaHyperlink.prototype.CopyContent = function(Selected)
ParaHyperlink
.
prototype
.
Draw_Elements
=
function
(
PDSE
)
{
PDSE
.
VisitedHyperlink
=
this
.
Visited
;
PDSE
.
Hyperlink
=
true
;
CParagraphContentWithParagraphLikeContent
.
prototype
.
Draw_Elements
.
apply
(
this
,
arguments
);
PDSE
.
VisitedHyperlink
=
false
;
PDSE
.
Hyperlink
=
false
;
};
ParaHyperlink
.
prototype
.
Draw_Lines
=
function
(
PDSL
)
{
PDSL
.
VisitedHyperlink
=
this
.
Visited
;
PDSL
.
Hyperlink
=
true
;
CParagraphContentWithParagraphLikeContent
.
prototype
.
Draw_Lines
.
apply
(
this
,
arguments
);
PDSL
.
VisitedHyperlink
=
false
;
PDSL
.
Hyperlink
=
false
;
};
//-----------------------------------------------------------------------------------
// Работаем со значениями
...
...
word/Editor/Paragraph.js
View file @
4f5db28d
...
...
@@ -12890,6 +12890,7 @@ function CParagraphDrawStateElements()
this
.
CurPos
=
new
CParagraphContentPos
();
this
.
VisitedHyperlink
=
false
;
this
.
Hyperlink
=
false
;
this
.
Page
=
0
;
this
.
Line
=
0
;
...
...
@@ -12914,6 +12915,7 @@ CParagraphDrawStateElements.prototype =
this
.
ColorMap
=
ColorMap
;
this
.
VisitedHyperlink
=
false
;
this
.
Hyperlink
=
false
;
this
.
CurPos
=
new
CParagraphContentPos
();
},
...
...
@@ -12945,6 +12947,7 @@ function CParagraphDrawStateLines()
this
.
CurPos
=
new
CParagraphContentPos
();
this
.
VisitedHyperlink
=
false
;
this
.
Hyperlink
=
false
;
this
.
Strikeout
=
new
CParaDrawingRangeLines
();
this
.
DStrikeout
=
new
CParaDrawingRangeLines
();
...
...
@@ -12974,6 +12977,7 @@ CParagraphDrawStateLines.prototype =
this
.
BgColor
=
BgColor
;
this
.
VisitedHyperlink
=
false
;
this
.
Hyperlink
=
false
;
this
.
CurPos
=
new
CParagraphContentPos
();
...
...
word/Editor/Run.js
View file @
4f5db28d
...
...
@@ -4616,6 +4616,7 @@ ParaRun.prototype.Draw_Elements = function(PDSE)
var
RGBA
;
var
ReviewType
=
this
.
Get_ReviewType
();
var
ReviewColor
=
null
;
var
bPresentation
=
this
.
Paragraph
&&
!
this
.
Paragraph
.
bFromDocument
;
if
(
reviewtype_Add
===
ReviewType
||
reviewtype_Remove
===
ReviewType
)
{
ReviewColor
=
this
.
Get_ReviewColor
();
...
...
@@ -4626,17 +4627,26 @@ ParaRun.prototype.Draw_Elements = function(PDSE)
CurTextPr
.
Unifill
.
check
(
PDSE
.
Theme
,
PDSE
.
ColorMap
);
RGBA
=
CurTextPr
.
Unifill
.
getRGBAColor
();
if
(
true
===
PDSE
.
VisitedHyperlink
&&
(
undefined
===
this
.
Pr
.
Color
&&
undefined
===
this
.
Pr
.
Unifill
)
)
if
(
true
===
PDSE
.
VisitedHyperlink
&&
(
undefined
===
this
.
Pr
.
Color
&&
undefined
===
this
.
Pr
.
Unifill
||
bPresentation
)
)
{
AscFormat
.
G_O_VISITED_HLINK_COLOR
.
check
(
PDSE
.
Theme
,
PDSE
.
ColorMap
);
RGBA
=
AscFormat
.
G_O_VISITED_HLINK_COLOR
.
getRGBAColor
();
pGraphics
.
b_color1
(
RGBA
.
R
,
RGBA
.
G
,
RGBA
.
B
,
RGBA
.
A
);
}
else
{
if
(
bPresentation
&&
PDSE
.
Hyperlink
)
{
AscFormat
.
G_O_HLINK_COLOR
.
check
(
PDSE
.
Theme
,
PDSE
.
ColorMap
);
RGBA
=
AscFormat
.
G_O_HLINK_COLOR
.
getRGBAColor
();
pGraphics
.
b_color1
(
RGBA
.
R
,
RGBA
.
G
,
RGBA
.
B
,
RGBA
.
A
);
}
else
{
pGraphics
.
b_color1
(
RGBA
.
R
,
RGBA
.
G
,
RGBA
.
B
,
RGBA
.
A
);
}
}
}
else
{
if
(
true
===
PDSE
.
VisitedHyperlink
&&
(
undefined
===
this
.
Pr
.
Color
&&
undefined
===
this
.
Pr
.
Unifill
)
)
...
...
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