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
c7ade749
Commit
c7ade749
authored
Jan 19, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
methods for mobile version
parent
fd900ba1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
0 deletions
+60
-0
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+40
-0
slide/api.js
slide/api.js
+17
-0
word/api.js
word/api.js
+3
-0
No files found.
slide/Editor/Format/Presentation.js
View file @
c7ade749
...
...
@@ -5330,6 +5330,46 @@ CPresentation.prototype =
this
.
Document_UpdateUndoRedoState
();
},
AddShapeOnCurrentPage
:
function
(
sPreset
)
{
if
(
!
this
.
Slides
[
this
.
CurPage
]){
return
;
}
var
oDrawingObjects
=
this
.
Slides
[
this
.
CurPage
].
graphicObjects
;
oDrawingObjects
.
changeCurrentState
(
new
AscFormat
.
StartAddNewShape
(
oDrawingObjects
,
sPreset
));
this
.
OnMouseDown
({},
this
.
Width
/
4
,
this
.
Height
/
4
,
this
.
CurPage
);
this
.
OnMouseUp
({},
this
.
Width
/
4
,
this
.
Height
/
4
,
this
.
CurPage
);
this
.
Document_UpdateInterfaceState
();
this
.
Document_UpdateRulersState
();
this
.
Document_UpdateSelectionState
();
},
Can_CopyCut
:
function
()
{
if
(
!
this
.
Slides
[
this
.
CurPage
]){
return
false
;
}
var
oDrawingObjects
=
this
.
Slides
[
this
.
CurPage
].
graphicObjects
;
var
oTargetContent
=
oDrawingObjects
.
getTargetDocContent
();
if
(
oTargetContent
)
{
if
(
true
===
oTargetContent
.
Is_SelectionUse
()
&&
true
!==
oTargetContent
.
Selection_IsEmpty
(
true
))
{
if
(
oTargetContent
.
Selection
.
StartPos
!==
oTargetContent
.
Selection
.
EndPos
||
type_Paragraph
===
oTargetContent
.
Content
[
oTargetContent
.
Selection
.
StartPos
].
Get_Type
())
return
true
;
else
return
oTargetContent
.
Content
[
oTargetContent
.
Selection
.
StartPos
].
Can_CopyCut
();
}
return
false
;
}
else
{
return
oDrawingObjects
.
selectedObjects
.
length
>
0
;
}
},
StartAddShape
:
function
(
preset
,
_is_apply
)
{
if
(
this
.
Slides
[
this
.
CurPage
])
...
...
slide/api.js
View file @
c7ade749
...
...
@@ -4162,6 +4162,20 @@ background-repeat: no-repeat;\
this
.
WordControl
.
OnScroll
();
};
asc_docs_api
.
prototype
.
AddShapeOnCurrentPage
=
function
(
sPreset
){
if
(
!
this
.
WordControl
.
m_oLogicDocument
){
return
;
}
this
.
WordControl
.
m_oLogicDocument
.
AddShapeOnCurrentPage
(
sPreset
);
}
asc_docs_api
.
prototype
.
can_CopyCut
=
function
(){
if
(
!
this
.
WordControl
.
m_oLogicDocument
){
return
false
;
}
return
this
.
WordControl
.
m_oLogicDocument
.
Can_CopyCut
();
}
/*----------------------------------------------------------------*/
/*functions for working with zoom & navigation*/
asc_docs_api
.
prototype
.
zoomIn
=
function
()
...
...
@@ -6910,6 +6924,9 @@ background-repeat: no-repeat;\
// mobile
asc_docs_api
.
prototype
[
"
asc_GetDefaultTableStyles
"
]
=
asc_docs_api
.
prototype
.
asc_GetDefaultTableStyles
;
asc_docs_api
.
prototype
[
"
asc_Remove
"
]
=
asc_docs_api
.
prototype
.
asc_Remove
;
asc_docs_api
.
prototype
[
"
AddShapeOnCurrentPage
"
]
=
asc_docs_api
.
prototype
.
AddShapeOnCurrentPage
;
asc_docs_api
.
prototype
[
"
can_CopyCut
"
]
=
asc_docs_api
.
prototype
.
can_CopyCut
;
window
[
'
Asc
'
][
'
asc_CCommentData
'
]
=
window
[
'
Asc
'
].
asc_CCommentData
=
asc_CCommentData
;
asc_CCommentData
.
prototype
[
'
asc_getText
'
]
=
asc_CCommentData
.
prototype
.
asc_getText
;
...
...
word/api.js
View file @
c7ade749
...
...
@@ -2509,6 +2509,9 @@ background-repeat: no-repeat;\
if
(
!
this
.
WordControl
.
m_oLogicDocument
)
return
;
this
.
WordControl
.
m_oDrawingDocument
.
StartTableStylesCheck
();
this
.
WordControl
.
m_oDrawingDocument
.
TableStyles
С
heckLook
=
new
Asc
.
CTablePropLook
();
this
.
WordControl
.
m_oDrawingDocument
.
TableStyles
С
heckLook
.
FirstCol
=
true
;
...
...
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