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
cbca0ef6
Commit
cbca0ef6
authored
Jun 24, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Сделан первоначальный вариант селекта мышкой внутри сносок.
parent
fd0f2169
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
336 additions
and
18 deletions
+336
-18
word/Editor/Document.js
word/Editor/Document.js
+34
-1
word/Editor/FootEndNote.js
word/Editor/FootEndNote.js
+8
-1
word/Editor/Footnotes.js
word/Editor/Footnotes.js
+294
-16
No files found.
word/Editor/Document.js
View file @
cbca0ef6
...
...
@@ -118,6 +118,8 @@ var keydownresult_PreventDefault = 0x0001;
var
keydownresult_PreventKeyPress
=
0x0002
;
var
keydownresult_PreventAll
=
0xFFFF
;
var
MEASUREMENT_MAX_MM_VALUE
=
1000
;
// Маскимальное значение в мм, используемое в документе (MS Word) - 55,87 см, или 558,7 мм.
function
CDocumentColumnProps
()
{
this
.
W
=
0
;
...
...
@@ -4821,8 +4823,10 @@ CDocument.prototype.Selection_SetStart = function(X, Y, MouseEvent)
}
var
bCheckHdrFtr
=
true
;
var
bFootnotes
=
false
;
if
(
docpostype_HdrFtr
===
this
.
CurPos
.
Type
)
var
nDocPosType
=
this
.
Get_DocPosType
();
if
(
docpostype_HdrFtr
===
nDocPosType
)
{
bCheckHdrFtr
=
false
;
this
.
Selection
.
Start
=
true
;
...
...
@@ -4836,6 +4840,10 @@ CDocument.prototype.Selection_SetStart = function(X, Y, MouseEvent)
this
.
DrawingDocument
.
FirePaint
();
this
.
DrawingDocument
.
EndTrackTable
(
null
,
true
);
}
else
{
bFootnotes
=
this
.
Footnotes
.
CheckHitInFootnote
(
X
,
Y
,
this
.
CurPage
);
}
var
PageMetrics
=
this
.
Get_PageContentStartPos
(
this
.
CurPage
,
this
.
Pages
[
this
.
CurPage
].
Pos
);
...
...
@@ -4857,6 +4865,17 @@ CDocument.prototype.Selection_SetStart = function(X, Y, MouseEvent)
this
.
DrawingDocument
.
FirePaint
();
this
.
DrawingDocument
.
EndTrackTable
(
null
,
true
);
}
else
if
(
true
!==
bFlowTable
&&
nInDrawing
<
0
&&
true
===
bFootnotes
)
{
if
(
docpostype_Footnotes
!==
this
.
Get_DocPosType
())
this
.
Selection_Remove
();
this
.
Selection
.
Start
=
true
;
this
.
Selection
.
Use
=
true
;
this
.
Set_DocPosType
(
docpostype_Footnotes
);
this
.
Footnotes
.
StartSelection
(
X
,
Y
,
this
.
CurPage
,
MouseEvent
);
}
else
if
(
nInDrawing
===
DRAWING_ARRAY_TYPE_BEFORE
||
nInDrawing
===
DRAWING_ARRAY_TYPE_INLINE
||
(
false
===
bTableBorder
&&
false
===
bInText
&&
nInDrawing
>=
0
))
{
if
(
docpostype_DrawingObjects
!=
this
.
CurPos
.
Type
)
...
...
@@ -5009,6 +5028,15 @@ CDocument.prototype.Selection_SetEnd = function(X, Y, MouseEvent)
}
return
;
}
else
if
(
docpostype_Footnotes
===
this
.
CurPos
.
Type
)
{
this
.
Footnotes
.
EndSelection
(
X
,
Y
,
this
.
CurPage
,
MouseEvent
);
if
(
AscCommon
.
g_mouse_event_type_up
==
MouseEvent
.
Type
)
this
.
Selection
.
Start
=
false
;
return
;
}
// Обрабатываем движение границы у таблиц
if
(
true
===
this
.
Selection_Is_TableBorderMove
())
...
...
@@ -6611,6 +6639,11 @@ CDocument.prototype.OnKeyDown = function(e)
// this.Paragraph_Add(new ParaContinuationSeparator());
// bRetValue = keydownresult_PreventAll;
// }
// else if (116 === e.KeyCode)
// {
// this.Goto_FootnotesOnPage(0);
// bRetValue = keydownresult_PreventAll;
// }
// TEST <--
else
if
(
e
.
KeyCode
==
121
&&
true
===
e
.
ShiftKey
)
// Shift + F10 - контекстное меню
{
...
...
word/Editor/FootEndNote.js
View file @
cbca0ef6
...
...
@@ -44,3 +44,10 @@ function CFootEndnote(DocumentController)
}
AscCommon
.
extendClass
(
CFootEndnote
,
CDocumentContent
);
CFootEndnote
.
prototype
.
GetRelaitivePageIndex
=
function
(
PageAbs
)
{
var
StartPageAbs
=
this
.
Get_StartPage_Absolute
();
var
PagesCount
=
this
.
Get_PagesCount
();
return
Math
.
max
(
0
,
Math
.
min
(
PagesCount
-
1
,
PageAbs
-
StartPageAbs
));
};
\ No newline at end of file
word/Editor/Footnotes.js
View file @
cbca0ef6
This diff is collapsed.
Click to expand it.
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