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
a3670c62
Commit
a3670c62
authored
Feb 18, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test variant of filling form mode.
parent
07b3fcec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
common/Private/Locks.js
common/Private/Locks.js
+1
-1
word/Editor/Document.js
word/Editor/Document.js
+18
-0
word/api.js
word/api.js
+4
-0
No files found.
common/Private/Locks.js
View file @
a3670c62
...
...
@@ -39,7 +39,7 @@ if(typeof CDocument !== "undefined")
{
CDocument
.
prototype
.
Document_Is_SelectionLocked
=
function
(
CheckType
,
AdditionalData
,
DontLockInFastMode
)
{
if
(
true
===
AscCommon
.
CollaborativeEditing
.
Get_GlobalLock
())
if
(
true
===
AscCommon
.
CollaborativeEditing
.
Get_GlobalLock
()
&&
(
false
===
this
.
IsFillingFormMode
()
||
false
===
this
.
IsInFormField
())
)
return
true
;
AscCommon
.
CollaborativeEditing
.
OnStart_CheckLock
();
...
...
word/Editor/Document.js
View file @
a3670c62
...
...
@@ -16028,6 +16028,24 @@ CDocument.prototype.GetAllFormTextFields = function()
{
return
this
.
FieldsManager
.
GetAllFieldsByType
(
fieldtype_FORMTEXT
);
};
CDocument
.
prototype
.
IsFillingFormMode
=
function
()
{
return
this
.
FillingFormMode
;
};
CDocument
.
prototype
.
SetFillingFormMode
=
function
(
isFillingForm
)
{
this
.
FillingFormMode
=
isFillingForm
;
};
CDocument
.
prototype
.
IsInFormField
=
function
()
{
var
oSelectedInfo
=
this
.
Get_SelectedElementsInfo
();
var
oField
=
oSelectedInfo
.
Get_Field
();
if
(
oSelectedInfo
.
Is_MixedSelection
()
||
!
oField
||
fieldtype_FORMTEXT
!==
oField
.
Get_FieldType
())
return
false
;
return
true
;
};
function
CDocumentSelectionState
()
...
...
word/api.js
View file @
a3670c62
...
...
@@ -7422,6 +7422,10 @@ background-repeat: no-repeat;\
{
this
.
asc_CloseFile
();
this
.
OpenDocument2
(
this
.
DocumentUrl
,
binaryFile
);
var
oLogicDocument
=
this
.
WordControl
.
m_oLogicDocument
;
if
(
oLogicDocument
)
oLogicDocument
.
SetFillingFormMode
(
true
);
};
window
[
"
asc_docs_api
"
].
prototype
[
"
pluginMethod_GetFields
"
]
=
function
()
{
...
...
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