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
0f7e154c
Commit
0f7e154c
authored
May 10, 2016
by
Ilya Kirillov
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавлен новый класс ParaFootnoteReference для представления ссылки на сноску.
parent
362142c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
word/Editor/ParagraphContent.js
word/Editor/ParagraphContent.js
+65
-0
No files found.
word/Editor/ParagraphContent.js
View file @
0f7e154c
...
...
@@ -68,6 +68,8 @@ var para_Math_Ampersand = 0x0035; // &
var
para_Field
=
0x0036
;
// Поле
var
para_Math_BreakOperator
=
0x0037
;
// break operator в формуле
var
para_Math_Content
=
0x0038
;
// math content
var
para_FootnoteReference
=
0x0039
;
// Ссылка на сноску
var
para_FootnoteRef
=
0x0040
;
// Номер сноски (должен быть только внутри сноски)
...
...
@@ -7439,6 +7441,68 @@ ParaPresentationNumbering.prototype =
}
};
/**
* Класс представляющий ссылку на сноску.
* @param {string} sId - Идентификатор сноски.
* @constructor
*/
function
ParaFootnoteReference
(
sId
)
{
this
.
FootnoteId
=
sId
;
}
ParaFootnoteReference
.
prototype
.
Type
=
para_FootnoteReference
;
ParaFootnoteReference
.
prototype
.
Get_Type
=
function
()
{
return
para_FootnoteReference
;
};
ParaFootnoteReference
.
prototype
.
Draw
=
function
(
X
,
Y
,
Context
)
{
};
ParaFootnoteReference
.
prototype
.
Measure
=
function
(
Context
)
{
};
ParaFootnoteReference
.
prototype
.
Get_Width
=
function
()
{
return
0
;
};
ParaFootnoteReference
.
prototype
.
Get_WidthVisible
=
function
()
{
return
0
;
};
ParaFootnoteReference
.
prototype
.
Set_WidthVisible
=
function
(
WidthVisible
)
{
return
0
;
//this.WidthVisible = WidthVisible;
};
ParaFootnoteReference
.
prototype
.
Is_RealContent
=
function
()
{
return
true
;
};
ParaFootnoteReference
.
prototype
.
Can_AddNumbering
=
function
()
{
return
true
;
};
ParaFootnoteReference
.
prototype
.
Copy
=
function
()
{
return
new
ParaFootnoteReference
(
sId
);
};
ParaFootnoteReference
.
prototype
.
Write_ToBinary
=
function
(
Writer
)
{
// Long : Type
// String : FootnoteId
Writer
.
WriteLong
(
this
.
Type
);
Writer
.
WriteString2
(
this
.
FootnoteId
);
};
ParaFootnoteReference
.
prototype
.
Read_FromBinary
=
function
(
Reader
)
{
// String : FootnoteId
this
.
FootnoteId
=
Reader
.
GetString2
();
};
function
ParagraphContent_Read_FromBinary
(
Reader
)
{
var
ElementType
=
Reader
.
GetLong
();
...
...
@@ -7466,6 +7530,7 @@ function ParagraphContent_Read_FromBinary(Reader)
case
para_Math_BreakOperator
:
Element
=
new
CMathText
();
break
;
case
para_Math_Ampersand
:
Element
=
new
CMathAmp
();
break
;
case
para_PresentationNumbering
:
Element
=
new
ParaPresentationNumbering
();
break
;
case
para_FootnoteReference
:
Element
=
new
ParaFootnoteReference
();
break
;
}
if
(
null
!=
Element
)
...
...
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