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
2bea4900
Commit
2bea4900
authored
Oct 31, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
worked version
parent
e16598f1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
14 deletions
+26
-14
build/build-mobile.bat
build/build-mobile.bat
+4
-4
cell/native/native.js
cell/native/native.js
+1
-0
common/Drawings/TextDrawer.js
common/Drawings/TextDrawer.js
+3
-2
common/Native/Wrappers/DrawingDocument.js
common/Native/Wrappers/DrawingDocument.js
+5
-0
common/Native/Wrappers/TextMeasurerWrapper.js
common/Native/Wrappers/TextMeasurerWrapper.js
+1
-0
common/Native/Wrappers/api.js
common/Native/Wrappers/api.js
+1
-0
common/Native/native.js
common/Native/native.js
+11
-8
No files found.
build/build-mobile.bat
View file @
2bea4900
...
...
@@ -4,10 +4,10 @@ call npm install
rem call grunt --level=WHITESPACE_ONLY --mobile=true --formatting=PRETTY_PRINT
call
grunt
-
-level
=
ADVANCED
-
-mobile
=
true
copy
/b
..\word\sdk
-all-min
.js
+
..\word\sdk
-all
.js ..\..\core\build\jsnative\word\script.bin
copy
/b
..\cell\sdk
-all-min
.js
+
..\cell\sdk
-all
.js ..\..\core\build\jsnative\cell\script.bin
copy
/b
..\slide\sdk
-all-min
.js
+
..\slide\sdk
-all
.js ..\..\core\build\jsnative\slide\script.bin
copy
/b
/y
..\word\sdk
-all-min
.js
+
..\word\sdk
-all
.js ..\..\core\build\jsnative\word\script.bin
copy
/b
/y
..\cell\sdk
-all-min
.js
+
..\cell\sdk
-all
.js ..\..\core\build\jsnative\cell\script.bin
copy
/b
/y
..\slide\sdk
-all-min
.js
+
..\slide\sdk
-all
.js ..\..\core\build\jsnative\slide\script.bin
xcopy
/s
..\..\core\build\jsnative ..\..\core
-ext
\resources_native\jsnative\
xcopy
/s
/y
..\..\core\build\jsnative ..\..\core
-ext
\resources_native\jsnative\
pause
\ No newline at end of file
cell/native/native.js
View file @
2bea4900
...
...
@@ -2648,6 +2648,7 @@ function asc_WriteColorSchemes(schemas, s) {
}
}
}
AscCommon
.
asc_WriteColorSchemes
=
asc_WriteColorSchemes
;
function
asc_WriteAddFormatTableOptions
(
c
,
s
)
{
if
(
!
c
)
return
;
...
...
common/Drawings/TextDrawer.js
View file @
2bea4900
...
...
@@ -1585,14 +1585,15 @@ CTextDrawer.prototype =
{
this
.
Get_PathToDraw
(
false
,
true
,
x
,
y
);
}
g_oTextMeasurer
.
SetFontInternal
(
this
.
m_oFont
.
Name
,
this
.
m_oFont
.
FontSize
,
Math
.
max
(
this
.
m_oFont
.
Style
,
0
));
AscCommon
.
g_oTextMeasurer
.
SetFontInternal
(
this
.
m_oFont
.
Name
,
this
.
m_oFont
.
FontSize
,
Math
.
max
(
this
.
m_oFont
.
Style
,
0
));
if
(
null
!=
this
.
LastFontOriginInfo
.
Replace
)
{
code
=
g_fontApplication
.
GetReplaceGlyph
(
code
,
this
.
LastFontOriginInfo
.
Replace
);
}
g_oTextMeasurer
.
m_oManager
.
LoadStringPathCode
(
code
,
false
,
x
,
y
,
this
);
if
(
AscCommon
.
g_oTextMeasurer
.
m_oManager
)
AscCommon
.
g_oTextMeasurer
.
m_oManager
.
LoadStringPathCode
(
code
,
false
,
x
,
y
,
this
);
},
tg
:
function
(
gid
,
x
,
y
)
{
...
...
common/Native/Wrappers/DrawingDocument.js
View file @
2bea4900
...
...
@@ -1149,6 +1149,11 @@ CDrawingDocument.prototype =
this
.
Native
[
"
DD_Set_RulerState_HdrFtr
"
](
bHeader
,
Y0
,
Y1
);
},
Set_RulerState_Columns
:
function
(
markup
)
{
// TODO:
},
Update_ParaInd
:
function
(
Ind
)
{
var
FirstLine
=
0
,
...
...
common/Native/Wrappers/TextMeasurerWrapper.js
View file @
2bea4900
...
...
@@ -423,6 +423,7 @@ window["CreateTextMeasurerWrapper"] = function()
window
[
"
CreateMainTextMeasurerWrapper
"
]
=
function
()
{
g_oTextMeasurer
=
new
CTextMeasurerWrapper
();
AscCommon
.
g_oTextMeasurer
=
g_oTextMeasurer
;
g_oTextMeasurer
.
Init
();
window
[
'
AscCommon
'
].
g_oTextMeasurer
=
g_oTextMeasurer
;
};
common/Native/Wrappers/api.js
View file @
2bea4900
...
...
@@ -4351,6 +4351,7 @@ function asc_WriteColorSchemes(schemas, s) {
}
}
}
AscCommon
.
asc_WriteColorSchemes
=
asc_WriteColorSchemes
;
///////////////////////////////////////////////////////////////////////
...
...
common/Native/native.js
View file @
2bea4900
...
...
@@ -292,14 +292,17 @@ document.createComment = function() { return undefined; };
document
.
documentElement
=
_null_object
;
document
.
body
=
_null_object
;
var
native
;
if
(
typeof
NativeEngine
===
"
undefined
"
)
var
native
=
(
typeof
native
===
undefined
)
?
undefined
:
native
;
if
(
!
native
)
{
native
=
CreateNativeEngine
();
}
else
{
native
=
NativeEngine
;
if
(
typeof
NativeEngine
===
"
undefined
"
)
{
native
=
CreateNativeEngine
();
}
else
{
native
=
NativeEngine
;
}
}
window
.
native
=
native
;
...
...
@@ -379,7 +382,7 @@ function NativeOpenFile2(_params)
if
(
schemes
)
{
var
st
=
global_memory_stream_menu
;
st
[
"
ClearNoAttack
"
]();
asc_WriteColorSchemes
(
schemes
,
st
);
AscCommon
.
asc_WriteColorSchemes
(
schemes
,
st
);
window
[
"
native
"
][
"
OnCallMenuEvent
"
](
2404
,
st
);
// ASC_MENU_EVENT_TYPE_COLOR_SCHEMES
}
}
...
...
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