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
158b0c73
Commit
158b0c73
authored
Jul 04, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented setting paragraph properties in footnotes.
parent
8d910a6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
111 deletions
+44
-111
word/Editor/Footnotes.js
word/Editor/Footnotes.js
+44
-111
No files found.
word/Editor/Footnotes.js
View file @
158b0c73
...
...
@@ -1558,50 +1558,34 @@ CFootnotesController.prototype.MoveCursorToCell = function(bNext)
};
CFootnotesController
.
prototype
.
SetParagraphAlign
=
function
(
Align
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphAlign
(
Align
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphAlign
(
Align
);
}
};
CFootnotesController
.
prototype
.
SetParagraphSpacing
=
function
(
Spacing
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphSpacing
(
Spacing
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphSpacing
(
Spacing
);
}
};
CFootnotesController
.
prototype
.
SetParagraphTabs
=
function
(
Tabs
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphTabs
(
Tabs
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphTabs
(
Tabs
);
}
};
CFootnotesController
.
prototype
.
SetParagraphIndent
=
function
(
Ind
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphIndent
(
Ind
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphIndent
(
Ind
);
}
};
CFootnotesController
.
prototype
.
SetParagraphNumbering
=
function
(
NumInfo
)
...
...
@@ -1618,127 +1602,86 @@ CFootnotesController.prototype.SetParagraphNumbering = function(NumInfo)
};
CFootnotesController
.
prototype
.
SetParagraphShd
=
function
(
Shd
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphShd
(
Shd
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphShd
(
Shd
);
}
};
CFootnotesController
.
prototype
.
SetParagraphStyle
=
function
(
Name
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphStyle
(
Name
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphStyle
(
Name
);
}
};
CFootnotesController
.
prototype
.
SetParagraphContextualSpacing
=
function
(
Value
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphContextualSpacing
(
Value
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphContextualSpacing
(
Value
);
}
};
CFootnotesController
.
prototype
.
SetParagraphPageBreakBefore
=
function
(
Value
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphPageBreakBefore
(
Value
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphPageBreakBefore
(
Value
);
}
};
CFootnotesController
.
prototype
.
SetParagraphKeepLines
=
function
(
Value
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphKeepLines
(
Value
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphKeepLines
(
Value
);
}
};
CFootnotesController
.
prototype
.
SetParagraphKeepNext
=
function
(
Value
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphKeepNext
(
Value
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphKeepNext
(
Value
);
}
};
CFootnotesController
.
prototype
.
SetParagraphWidowControl
=
function
(
Value
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphWidowControl
(
Value
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphWidowControl
(
Value
);
}
};
CFootnotesController
.
prototype
.
SetParagraphBorders
=
function
(
Borders
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Set_ParagraphBorders
(
Borders
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Set_ParagraphBorders
(
Borders
);
}
};
CFootnotesController
.
prototype
.
SetParagraphFramePr
=
function
(
FramePr
,
bDelete
)
{
//
TODO: Реализовать, скорее всего ничего тут не надо делать
//
Не позволяем делать рамки внутри сносок
};
CFootnotesController
.
prototype
.
IncreaseOrDecreaseParagraphFontSize
=
function
(
bIncrease
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Paragraph_IncDecFontSize
(
bIncrease
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Paragraph_IncDecFontSize
(
bIncrease
);
}
};
CFootnotesController
.
prototype
.
IncreaseOrDecreaseParagraphIndent
=
function
(
bIncrease
)
{
// TODO: Доделать селект и курсор
if
(
true
===
this
.
Selection
.
Use
)
{
}
else
for
(
var
sId
in
this
.
Selection
.
Footnotes
)
{
if
(
null
!==
this
.
CurFootnote
)
this
.
Cur
Footnote
.
Paragraph_IncDecIndent
(
bIncrease
);
var
oFootnote
=
this
.
Selection
.
Footnotes
[
sId
];
o
Footnote
.
Paragraph_IncDecIndent
(
bIncrease
);
}
};
CFootnotesController
.
prototype
.
SetImageProps
=
function
(
Props
)
...
...
@@ -2182,14 +2125,4 @@ CFootEndnotePage.prototype.Reset = function()
this
.
SeparatorRecalculateObject
=
null
;
this
.
ContinuationSeparatorRecalculateObject
=
null
;
this
.
ContinuationNoticeRecalculateObject
=
null
;
};
function
TestMoveCursor
(
X
,
Y
,
PageAbs
,
AddToSelect
)
{
editor
.
WordControl
.
m_oLogicDocument
.
Footnotes
.
MoveCursorToXY
(
X
,
Y
,
PageAbs
,
AddToSelect
);
editor
.
WordControl
.
m_oLogicDocument
.
Document_UpdateSelectionState
();
}
\ No newline at end of file
};
\ No newline at end of file
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