Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
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
onlyoffice_core
Commits
ba915264
Commit
ba915264
authored
Apr 12, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormat - исправление Интернет_Проект_Трудовой_договор.doc
parent
d534c9f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
...ceDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
+3
-2
ASCOfficeDocFile/DocDocxConverter/CommentsMapping.h
ASCOfficeDocFile/DocDocxConverter/CommentsMapping.h
+2
-1
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
+2
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
View file @
ba915264
...
...
@@ -50,8 +50,9 @@ namespace DocFileFormat
//date
//_revisionData->Dttm.Convert( new DateMapping( rPrChange ) );
//author
XMLTools
::
XMLAttribute
<
wchar_t
>
author
(
_T
(
"w:author"
),
static_cast
<
WideString
*>
(
this
->
_doc
->
RevisionAuthorTable
->
operator
[](
_revisionData
->
Isbt
)
)
->
c_str
()
);
WideString
*
author_str
=
static_cast
<
WideString
*>
(
this
->
_doc
->
RevisionAuthorTable
->
operator
[](
_revisionData
->
Isbt
));
XMLTools
::
XMLAttribute
<
wchar_t
>
author
(
_T
(
"w:author"
),
FormatUtils
::
XmlEncode
(
*
author_str
).
c_str
());
rPrChange
.
AppendAttribute
(
author
);
//convert revision stack
...
...
ASCOfficeDocFile/DocDocxConverter/CommentsMapping.h
View file @
ba915264
...
...
@@ -43,7 +43,8 @@ namespace DocFileFormat
m_pXmlWriter
->
WriteNodeBegin
(
_T
(
"w:comment"
),
TRUE
);
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:id"
),
FormatUtils
::
IntToWideString
(
index
).
c_str
()
);
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:author"
),
m_document
->
AnnotationOwners
->
at
(
atrdPre10
->
GetAuthorIndex
()
).
c_str
()
);
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:author"
),
FormatUtils
::
XmlEncode
(
m_document
->
AnnotationOwners
->
at
(
atrdPre10
->
GetAuthorIndex
()
)
).
c_str
());
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:initials"
),
atrdPre10
->
GetUserInitials
().
c_str
()
);
//!!!TODO!!!
...
...
ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp
View file @
ba915264
...
...
@@ -319,9 +319,10 @@ namespace DocFileFormat
}
else
if
(
rev
.
Type
==
Inserted
)
{
WideString
*
author
=
dynamic_cast
<
WideString
*>
(
m_document
->
RevisionAuthorTable
->
operator
[](
rev
.
Isbt
));
//if it's a inserted run
m_pXmlWriter
->
WriteNodeBegin
(
_T
(
"w:ins"
),
TRUE
);
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:author"
),
dynamic_cast
<
WideString
*>
(
m_document
->
RevisionAuthorTable
->
operator
[](
rev
.
Isbt
))
->
c_str
());
m_pXmlWriter
->
WriteAttribute
(
_T
(
"w:author"
),
FormatUtils
::
XmlEncode
(
*
author
).
c_str
());
m_pXmlWriter
->
WriteNodeEnd
(
_T
(
""
),
TRUE
,
FALSE
);
//rev.Dttm.Convert(new DateMapping(m_pXmlWriter));
}
...
...
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