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
ab6b6ada
Commit
ab6b6ada
authored
Apr 06, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write/read from binary a new classes.
parent
5096379d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
9 deletions
+31
-9
common/HistoryCommon.js
common/HistoryCommon.js
+1
-0
common/TableId.js
common/TableId.js
+1
-0
word/Editor/Document.js
word/Editor/Document.js
+0
-4
word/Editor/DocumentContent.js
word/Editor/DocumentContent.js
+0
-4
word/Editor/DocumentContentBase.js
word/Editor/DocumentContentBase.js
+10
-1
word/Editor/DocumentContentElementBase.js
word/Editor/DocumentContentElementBase.js
+7
-0
word/Editor/StructuredDocumentTags/BlockLevel.js
word/Editor/StructuredDocumentTags/BlockLevel.js
+12
-0
No files found.
common/HistoryCommon.js
View file @
ab6b6ada
...
@@ -1102,6 +1102,7 @@
...
@@ -1102,6 +1102,7 @@
window
[
'
AscDFH
'
].
historyitem_type_Footnotes
=
56
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_Footnotes
=
56
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_FootEndNote
=
57
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_FootEndNote
=
57
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_Presentation
=
58
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_Presentation
=
58
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_BlockLevelSdt
=
59
<<
16
;
window
[
'
AscDFH
'
].
historyitem_type_CommonShape
=
1000
<<
16
;
// Этот класс добавлен для элементов, у которых нет конкретного класса
window
[
'
AscDFH
'
].
historyitem_type_CommonShape
=
1000
<<
16
;
// Этот класс добавлен для элементов, у которых нет конкретного класса
...
...
common/TableId.js
View file @
ab6b6ada
...
@@ -260,6 +260,7 @@
...
@@ -260,6 +260,7 @@
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_rad
]
=
AscCommonWord
.
CRadical
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_rad
]
=
AscCommonWord
.
CRadical
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_deg_subsup
]
=
AscCommonWord
.
CDegreeSubSup
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_deg_subsup
]
=
AscCommonWord
.
CDegreeSubSup
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_deg
]
=
AscCommonWord
.
CDegree
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_deg
]
=
AscCommonWord
.
CDegree
;
this
.
m_oFactoryClass
[
AscDFH
.
historyitem_type_BlockLevelSdt
]
=
AscCommonWord
.
CBlockLevelSdt
;
if
(
window
[
'
AscCommonSlide
'
])
if
(
window
[
'
AscCommonSlide
'
])
{
{
...
...
word/Editor/Document.js
View file @
ab6b6ada
...
@@ -1544,10 +1544,6 @@ CDocument.prototype.constructor = CDocument;
...
@@ -1544,10 +1544,6 @@ CDocument.prototype.constructor = CDocument;
CDocument
.
prototype
.
Init
=
function
()
CDocument
.
prototype
.
Init
=
function
()
{
{
};
CDocument
.
prototype
.
Get_Id
=
function
()
{
return
this
.
Id
;
};
};
CDocument
.
prototype
.
On_EndLoad
=
function
()
CDocument
.
prototype
.
On_EndLoad
=
function
()
{
{
...
...
word/Editor/DocumentContent.js
View file @
ab6b6ada
...
@@ -154,10 +154,6 @@ function CDocumentContent(Parent, DrawingDocument, X, Y, XLimit, YLimit, Split,
...
@@ -154,10 +154,6 @@ function CDocumentContent(Parent, DrawingDocument, X, Y, XLimit, YLimit, Split,
CDocumentContent
.
prototype
=
Object
.
create
(
CDocumentContentBase
.
prototype
);
CDocumentContent
.
prototype
=
Object
.
create
(
CDocumentContentBase
.
prototype
);
CDocumentContent
.
prototype
.
constructor
=
CDocumentContent
;
CDocumentContent
.
prototype
.
constructor
=
CDocumentContent
;
CDocumentContent
.
prototype
.
Get_Id
=
function
()
{
return
this
.
Id
;
};
CDocumentContent
.
prototype
.
Save_StartState
=
function
()
CDocumentContent
.
prototype
.
Save_StartState
=
function
()
{
{
this
.
StartState
=
new
CDocumentContentStartState
(
this
);
this
.
StartState
=
new
CDocumentContentStartState
(
this
);
...
...
word/Editor/DocumentContentBase.js
View file @
ab6b6ada
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
*/
*/
function
CDocumentContentBase
()
function
CDocumentContentBase
()
{
{
this
.
Id
=
null
;
this
.
StartPage
=
0
;
// Номер стартовой страницы в родительском классе
this
.
StartPage
=
0
;
// Номер стартовой страницы в родительском классе
this
.
CurPage
=
0
;
// Номер текущей страницы
this
.
CurPage
=
0
;
// Номер текущей страницы
...
@@ -45,7 +47,14 @@ function CDocumentContentBase()
...
@@ -45,7 +47,14 @@ function CDocumentContentBase()
this
.
ReindexStartPos
=
0
;
this
.
ReindexStartPos
=
0
;
}
}
CDocumentContentBase
.
prototype
.
Get_Id
=
function
()
{
return
this
.
GetId
();
};
CDocumentContentBase
.
prototype
.
GetId
=
function
()
{
return
this
.
Id
;
};
/**
/**
* Получаем тип активной части документа.
* Получаем тип активной части документа.
* @returns {(docpostype_Content | docpostype_HdrFtr | docpostype_DrawingObjects | docpostype_Footnotes)}
* @returns {(docpostype_Content | docpostype_HdrFtr | docpostype_DrawingObjects | docpostype_Footnotes)}
...
...
word/Editor/DocumentContentElementBase.js
View file @
ab6b6ada
...
@@ -135,6 +135,13 @@ CDocumentContentElementBase.prototype.Is_EmptyPage = function(CurPage)
...
@@ -135,6 +135,13 @@ CDocumentContentElementBase.prototype.Is_EmptyPage = function(CurPage)
CDocumentContentElementBase
.
prototype
.
Reset_RecalculateCache
=
function
()
CDocumentContentElementBase
.
prototype
.
Reset_RecalculateCache
=
function
()
{
{
};
};
CDocumentContentElementBase
.
prototype
.
Write_ToBinary2
=
function
(
Writer
)
{
Writer
.
WriteLong
(
AscDFH
.
historyitem_type_Unknown
);
};
CDocumentContentElementBase
.
prototype
.
Read_FromBinary2
=
function
(
Reader
)
{
};
//--------------------------------------------------------export--------------------------------------------------------
//--------------------------------------------------------export--------------------------------------------------------
window
[
'
AscCommonWord
'
]
=
window
[
'
AscCommonWord
'
]
||
{};
window
[
'
AscCommonWord
'
]
=
window
[
'
AscCommonWord
'
]
||
{};
...
...
word/Editor/StructuredDocumentTags/BlockLevel.js
View file @
ab6b6ada
...
@@ -99,6 +99,18 @@ CBlockLevelSdt.prototype.Reset_RecalculateCache = function()
...
@@ -99,6 +99,18 @@ CBlockLevelSdt.prototype.Reset_RecalculateCache = function()
{
{
this
.
Content
.
Reset_RecalculateCache
();
this
.
Content
.
Reset_RecalculateCache
();
};
};
CBlockLevelSdt
.
prototype
.
Write_ToBinary2
=
function
(
Writer
)
{
Writer
.
WriteLong
(
AscDFH
.
historyitem_type_BlockLevelSdt
);
// String : Content id
Writer
.
WriteString
(
this
.
Content
.
GetId
());
};
CBlockLevelSdt
.
prototype
.
Read_FromBinary2
=
function
(
Reader
)
{
// String : Content id
this
.
Content
=
this
.
LogicDocument
.
Get_TableId
().
Get_ById
(
Reader
.
GetString2
());
};
//--------------------------------------------------------export--------------------------------------------------------
//--------------------------------------------------------export--------------------------------------------------------
window
[
'
AscCommonWord
'
]
=
window
[
'
AscCommonWord
'
]
||
{};
window
[
'
AscCommonWord
'
]
=
window
[
'
AscCommonWord
'
]
||
{};
...
...
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