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
e0a55e1f
Commit
e0a55e1f
authored
Apr 07, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented creating a font map for footnotes.
parent
261c4600
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
word/Editor/Document.js
word/Editor/Document.js
+0
-8
word/Editor/ParagraphContent.js
word/Editor/ParagraphContent.js
+5
-0
word/Editor/Run.js
word/Editor/Run.js
+4
-2
No files found.
word/Editor/Document.js
View file @
e0a55e1f
...
@@ -8082,20 +8082,12 @@ CDocument.prototype.Document_CreateFontMap = function()
...
@@ -8082,20 +8082,12 @@ CDocument.prototype.Document_CreateFontMap = function()
var
FontMap
=
{};
var
FontMap
=
{};
this
.
SectionsInfo
.
Document_CreateFontMap
(
FontMap
);
this
.
SectionsInfo
.
Document_CreateFontMap
(
FontMap
);
var
CurPage
=
0
;
this
.
DrawingObjects
.
documentCreateFontMap
(
CurPage
,
FontMap
);
var
Count
=
this
.
Content
.
length
;
var
Count
=
this
.
Content
.
length
;
for
(
var
Index
=
0
;
Index
<
Count
;
Index
++
)
for
(
var
Index
=
0
;
Index
<
Count
;
Index
++
)
{
{
var
Element
=
this
.
Content
[
Index
];
var
Element
=
this
.
Content
[
Index
];
Element
.
Document_CreateFontMap
(
FontMap
);
Element
.
Document_CreateFontMap
(
FontMap
);
if
(
Element
.
Pages
.
length
>
1
)
{
for
(
var
TempIndex
=
1
;
TempIndex
<
Element
.
Pages
.
length
-
1
;
TempIndex
++
)
this
.
DrawingObjects
.
documentCreateFontMap
(
++
CurPage
,
FontMap
);
}
}
}
AscFormat
.
checkThemeFonts
(
FontMap
,
this
.
theme
.
themeElements
.
fontScheme
);
AscFormat
.
checkThemeFonts
(
FontMap
,
this
.
theme
.
themeElements
.
fontScheme
);
return
FontMap
;
return
FontMap
;
...
...
word/Editor/ParagraphContent.js
View file @
e0a55e1f
...
@@ -1732,6 +1732,11 @@ ParaFootnoteReference.prototype.GetCustomText = function()
...
@@ -1732,6 +1732,11 @@ ParaFootnoteReference.prototype.GetCustomText = function()
{
{
return
this
.
CustomMark
;
return
this
.
CustomMark
;
};
};
ParaFootnoteReference
.
prototype
.
CreateDocumentFontMap
=
function
(
FontMap
)
{
if
(
this
.
Footnote
)
this
.
Footnote
.
Document_CreateFontMap
(
FontMap
);
};
/**
/**
* Класс представляющий номер сноски внутри сноски.
* Класс представляющий номер сноски внутри сноски.
...
...
word/Editor/Run.js
View file @
e0a55e1f
...
@@ -2035,8 +2035,10 @@ ParaRun.prototype.Create_FontMap = function(Map)
...
@@ -2035,8 +2035,10 @@ ParaRun.prototype.Create_FontMap = function(Map)
{
{
var
Item
=
this
.
Content
[
Index
];
var
Item
=
this
.
Content
[
Index
];
if
(
para_Drawing
===
Item
.
Type
)
if
(
para_Drawing
===
Item
.
Type
)
Item
.
documentCreateFontMap
(
Map
);
Item
.
documentCreateFontMap
(
Map
);
else
if
(
para_FootnoteReference
===
Item
.
Type
)
Item
.
CreateDocumentFontMap
(
Map
);
}
}
if
(
this
.
Type
===
para_Math_Run
)
if
(
this
.
Type
===
para_Math_Run
)
...
...
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