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
80de99e6
Commit
80de99e6
authored
Jun 10, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавлена функция получения максимальной позиции курсора при составном вводе.
parent
3ba0579b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
word/Editor/Document.js
word/Editor/Document.js
+32
-1
No files found.
word/Editor/Document.js
View file @
80de99e6
...
@@ -37,6 +37,7 @@ var Y_Bottom_Field = Page_Height - Y_Bottom_Margin;
...
@@ -37,6 +37,7 @@ var Y_Bottom_Field = Page_Height - Y_Bottom_Margin;
var
docpostype_Content
=
0x00
;
var
docpostype_Content
=
0x00
;
var
docpostype_HdrFtr
=
0x02
;
var
docpostype_HdrFtr
=
0x02
;
var
docpostype_DrawingObjects
=
0x03
;
var
docpostype_DrawingObjects
=
0x03
;
var
docpostype_Footnotes
=
0x04
;
var
selectionflag_Common
=
0x000
;
var
selectionflag_Common
=
0x000
;
var
selectionflag_Numbering
=
0x001
;
var
selectionflag_Numbering
=
0x001
;
...
@@ -1319,7 +1320,10 @@ function CDocument(DrawingDocument, isMainLogicDocument)
...
@@ -1319,7 +1320,10 @@ function CDocument(DrawingDocument, isMainLogicDocument)
Type
:
docpostype_Content
Type
:
docpostype_Content
};
};
this
.
Selection
=
// HdrFtr, Footnotes, Drawings, CDocument
this
.
Controller
=
null
;
this
.
Selection
=
{
{
Start
:
false
,
Start
:
false
,
Use
:
false
,
Use
:
false
,
...
@@ -16976,6 +16980,33 @@ CDocument.prototype.End_CompositeInput = function()
...
@@ -16976,6 +16980,33 @@ CDocument.prototype.End_CompositeInput = function()
this
.
DrawingDocument
.
ClearCachePages
();
this
.
DrawingDocument
.
ClearCachePages
();
this
.
DrawingDocument
.
FirePaint
();
this
.
DrawingDocument
.
FirePaint
();
};
};
CDocument
.
prototype
.
Get_MaxCursorPosInCompositeText
=
function
()
{
if
(
null
===
this
.
CompositeInput
)
return
0
;
return
this
.
CompositeInput
.
Length
;
};
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы со сносками
//----------------------------------------------------------------------------------------------------------------------
/**
* Переходим к редактированию сносок на заданной странице. Если сносок на заданной странице нет, тогда ничего не делаем.
* @param {number} nPageIndex
* @returns {boolean}
*/
CDocument
.
prototype
.
Goto_FootnotesOnPage
=
function
(
nPageIndex
)
{
if
(
!
this
.
Footnotes
.
Is_EmptyPage
(
nPageIndex
))
return
false
;
this
.
CurPos
.
Type
=
docpostype_Footnotes
;
this
.
Controller
=
this
.
Footnotes
;
return
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