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
3b555c8f
Commit
3b555c8f
authored
Dec 09, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 33638
parent
54ada507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
cell/model/WorkbookElems.js
cell/model/WorkbookElems.js
+22
-21
No files found.
cell/model/WorkbookElems.js
View file @
3b555c8f
...
...
@@ -59,19 +59,6 @@ var c_oAscNumFormatType = Asc.c_oAscNumFormatType;
var
g_oColorManager
=
null
;
var
g_oDefaultFormat
=
{
XfId
:
null
,
Font
:
null
,
Fill
:
null
,
Num
:
null
,
Border
:
null
,
Align
:
null
,
FillAbs
:
null
,
NumAbs
:
null
,
BorderAbs
:
null
,
AlignAbs
:
null
};
var
g_nHSLMaxValue
=
255
;
var
g_nColorTextDefault
=
1
;
var
g_nColorHyperlink
=
10
;
...
...
@@ -447,6 +434,20 @@ ColorManager.prototype =
};
g_oColorManager
=
new
ColorManager
();
var
g_oDefaultFormat
=
{
XfId
:
null
,
Font
:
null
,
Fill
:
null
,
Num
:
null
,
Border
:
null
,
Align
:
null
,
FillAbs
:
null
,
NumAbs
:
null
,
BorderAbs
:
null
,
AlignAbs
:
null
,
ColorAuto
:
new
RgbColor
(
0
)
};
/** @constructor */
function
Fragment
(
val
)
{
this
.
text
=
null
;
...
...
@@ -649,7 +650,7 @@ var g_oFontProperties = {
return
this
.
fn
=
val
;
};
Font
.
prototype
.
getScheme
=
function
()
{
return
this
.
scheme
||
g_oDefaultFormat
.
Font
.
schem
e
;
return
this
.
scheme
||
Asc
.
EFontScheme
.
fontschemeNon
e
;
};
Font
.
prototype
.
setScheme
=
function
(
val
)
{
return
(
null
!=
val
&&
Asc
.
EFontScheme
.
fontschemeNone
!=
val
)
?
this
.
scheme
=
val
:
this
.
scheme
=
null
;
...
...
@@ -661,37 +662,37 @@ var g_oFontProperties = {
return
this
.
fs
=
val
;
};
Font
.
prototype
.
getBold
=
function
()
{
return
null
!=
this
.
b
?
this
.
b
:
(
g_oDefaultFormat
.
Font
.
b
||
false
)
;
return
!!
this
.
b
;
};
Font
.
prototype
.
setBold
=
function
(
val
)
{
return
val
?
this
.
b
=
true
:
this
.
b
=
null
;
};
Font
.
prototype
.
getItalic
=
function
()
{
return
null
!=
this
.
i
?
this
.
i
:
(
g_oDefaultFormat
.
Font
.
i
||
false
)
;
return
!!
this
.
i
;
};
Font
.
prototype
.
setItalic
=
function
(
val
)
{
return
val
?
this
.
i
=
true
:
this
.
i
=
null
;
};
Font
.
prototype
.
getUnderline
=
function
()
{
return
null
!=
this
.
u
?
this
.
u
:
(
g_oDefaultFormat
.
Font
.
u
||
Asc
.
EUnderline
.
underlineNone
)
;
return
this
.
u
||
Asc
.
EUnderline
.
underlineNone
;
};
Font
.
prototype
.
setUnderline
=
function
(
val
)
{
return
(
null
!=
val
&&
Asc
.
EUnderline
.
underlineNone
!=
val
)
?
this
.
u
=
val
:
this
.
u
=
null
;
};
Font
.
prototype
.
getStrikeout
=
function
()
{
return
null
!=
this
.
s
?
this
.
s
:
(
g_oDefaultFormat
.
Font
.
s
||
false
)
;
return
!!
this
.
s
;
};
Font
.
prototype
.
setStrikeout
=
function
(
val
)
{
return
val
?
this
.
s
=
true
:
this
.
s
=
null
;
};
Font
.
prototype
.
getColor
=
function
()
{
return
this
.
c
||
g_oDefaultFormat
.
Font
.
c
;
return
this
.
c
||
g_oDefaultFormat
.
ColorAuto
;
};
Font
.
prototype
.
setColor
=
function
(
val
)
{
return
this
.
c
=
val
;
};
Font
.
prototype
.
getVerticalAlign
=
function
()
{
return
null
!=
this
.
va
?
this
.
va
:
(
g_oDefaultFormat
.
Font
.
va
||
AscCommon
.
vertalign_Baseline
)
;
return
this
.
va
||
AscCommon
.
vertalign_Baseline
;
};
Font
.
prototype
.
setVerticalAlign
=
function
(
val
)
{
return
(
null
!=
val
&&
AscCommon
.
vertalign_Baseline
!=
val
)
?
this
.
va
=
val
:
this
.
va
=
null
;
...
...
@@ -1974,7 +1975,7 @@ StyleManager.prototype =
if
(
null
!=
xfs
&&
null
!=
xfs
.
font
)
oRes
.
oldVal
=
xfs
.
font
.
c
;
else
oRes
.
oldVal
=
g_oDefaultFormat
.
Font
.
c
;
oRes
.
oldVal
=
null
;
var
isSetNull
=
(
null
==
val
);
if
(
!
isSetNull
||
(
null
!=
xfs
&&
null
!=
xfs
.
font
))
{
if
(
isSetNull
)
{
...
...
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