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
1b921a09
Commit
1b921a09
authored
Sep 23, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default styles for footnotes.
parent
34d547b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
18 deletions
+78
-18
word/Editor/Styles.js
word/Editor/Styles.js
+78
-18
No files found.
word/Editor/Styles.js
View file @
1b921a09
...
...
@@ -3920,6 +3920,47 @@ CStyle.prototype =
}
}
};
CStyle
.
prototype
.
CreateFootnoteText
=
function
()
{
var
oParaPr
=
{
Spacing
:
{
After
:
0
,
Line
:
1
,
LineRule
:
linerule_Auto
}
};
var
oTextPr
=
{
FontSize
:
10
};
this
.
Set_UiPriority
(
99
);
this
.
Set_SemiHidden
(
true
);
this
.
Set_UnhideWhenUsed
(
true
);
this
.
Set_TextPr
(
oTextPr
);
this
.
Set_ParaPr
(
oParaPr
);
};
CStyle
.
prototype
.
CreateFootnoteTextChar
=
function
()
{
var
oTextPr
=
{
FontSize
:
10
};
this
.
Set_UiPriority
(
99
);
this
.
Set_SemiHidden
(
true
);
this
.
Set_TextPr
(
oTextPr
);
};
CStyle
.
prototype
.
CreateFootnoteReference
=
function
()
{
var
oTextPr
=
{
VertAlign
:
vertalign_SuperScript
};
this
.
Set_UiPriority
(
99
);
this
.
Set_SemiHidden
(
true
);
this
.
Set_UnhideWhenUsed
(
true
);
this
.
Set_TextPr
(
oTextPr
);
};
function
CStyles
(
bCreateDefault
)
{
...
...
@@ -3928,13 +3969,13 @@ function CStyles(bCreateDefault)
this
.
Id
=
AscCommon
.
g_oIdCounter
.
Get_NewId
();
this
.
Lock
=
new
AscCommon
.
CLock
();
this
.
Default
=
{
this
.
Default
=
{
ParaPr
:
new
CParaPr
(),
TextPr
:
new
CTextPr
(),
TablePr
:
new
CTablePr
(),
TableRowPr
:
new
CTableRowPr
(),
TableCellPr
:
new
CTableCellPr
(),
Paragraph
:
null
,
Character
:
null
,
Numbering
:
null
,
...
...
@@ -3944,7 +3985,10 @@ function CStyles(bCreateDefault)
ParaList
:
null
,
Header
:
null
,
Footer
:
null
,
Hyperlink
:
null
Hyperlink
:
null
,
FootnoteText
:
null
,
FootnoteTextChar
:
null
,
FootnoteReference
:
null
};
// Заполняем значения по умолчанию
...
...
@@ -4170,6 +4214,22 @@ function CStyles(bCreateDefault)
Style_Hyperlink
.
Create_Character_Hyperlink
();
this
.
Default
.
Hyperlink
=
this
.
Add
(
Style_Hyperlink
);
// Создаем стили для сносок
var
StyleFootnoteText
=
new
CStyle
(
"
footnote text
"
,
this
.
Default
.
Paragraph
,
null
,
styletype_Paragraph
);
StyleFootnoteText
.
CreateFootnoteText
();
this
.
Default
.
FootnoteText
=
StyleFootnoteText
;
var
StyleFootnoteTextChar
=
new
CStyle
(
"
Footnote Text Char
"
,
this
.
Default
.
Character
,
null
,
styletype_Character
);
StyleFootnoteTextChar
.
CreateFootnoteTextChar
();
this
.
Default
.
FootnoteTextChar
=
StyleFootnoteTextChar
;
StyleFootnoteTextChar
.
Set_Link
(
StyleFootnoteText
.
GetId
());
StyleFootnoteText
.
Set_Link
(
StyleFootnoteTextChar
.
GetId
());
var
StyleFootnoteReference
=
new
CStyle
(
"
footnote reference
"
,
this
.
Default
.
Character
,
null
,
styletype_Character
);
StyleFootnoteReference
.
CreateFootnoteReference
();
this
.
Default
.
FootnoteReference
=
StyleFootnoteReference
;
// Добавляем данный класс в таблицу Id (обязательно в конце конструктора)
g_oTableId
.
Add
(
this
,
this
.
Id
);
}
...
...
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