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
de7511f2
Commit
de7511f2
authored
Feb 03, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9a68a75f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
...ceDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
+2
-1
ASCOfficeRtfFile/RtfFormatLib/source/RtfChar.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfChar.cpp
+5
-5
ASCOfficeRtfFile/RtfFormatLib/source/RtfField.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfField.cpp
+1
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/CharacterPropertiesMapping.cpp
View file @
de7511f2
...
...
@@ -232,7 +232,8 @@ namespace DocFileFormat
case
sprmOldCIss
:
case
sprmCIss
:
appendValueElement
(
parent
,
L"vertAlign"
,
FormatUtils
::
MapValueToWideString
(
iter
->
Arguments
[
0
],
&
SuperscriptIndex
[
0
][
0
],
3
,
12
),
true
);
if
(
iter
->
argumentsSize
>
0
&&
iter
->
Arguments
[
0
]
<
3
)
//Metaevan.doc
appendValueElement
(
parent
,
L"vertAlign"
,
FormatUtils
::
MapValueToWideString
(
iter
->
Arguments
[
0
],
&
SuperscriptIndex
[
0
][
0
],
3
,
12
),
true
);
break
;
case
sprmCRgLid0_80
:
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfChar.cpp
View file @
de7511f2
...
...
@@ -125,20 +125,20 @@ std::wstring RtfChar::renderTextToXML( std::wstring sParam, bool bDelete )
if
(
bDelete
==
false
)
{
sResult
+=
L"<w:t xml:space=
\"
preserve
\"
>"
;
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
);
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
,
true
);
sResult
+=
L"</w:t>"
;
}
else
{
sResult
+=
L"<w:delText>"
;
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
);
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
,
true
);
sResult
+=
L"</w:delText>"
;
}
}
else
if
(
L"Math"
==
sParam
&&
!
m_sChars
.
empty
())
{
sResult
+=
L"<m:t>"
;
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
);
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_sChars
,
true
);
sResult
+=
L"</m:t>"
;
}
return
sResult
;
...
...
@@ -210,7 +210,7 @@ std::wstring RtfChar::renderRtfText( std::wstring& sText, void* poDocument, int
while
(
sTextBack
.
length
()
<
sText
.
length
())
sTextBack
+=
L"-"
;
for
(
in
t
i
=
0
;
i
<
sText
.
length
()
;
i
++
)
for
(
size_
t
i
=
0
;
i
<
sText
.
length
()
;
i
++
)
{
bool
bWriteUnicode
=
true
;
...
...
@@ -222,7 +222,7 @@ std::wstring RtfChar::renderRtfText( std::wstring& sText, void* poDocument, int
// -> sTempAnsiChars
std
::
string
sTempAnsiChars
=
RtfUtility
::
convert_string
(
unicodeStr
.
begin
()
+
i
,
unicodeStr
.
begin
()
+
i
+
1
,
nCodePage
);
for
(
in
t
k
=
0
;
k
<
sTempAnsiChars
.
length
();
k
++
)
for
(
size_
t
k
=
0
;
k
<
sTempAnsiChars
.
length
();
k
++
)
{
unsigned
char
nCharCode
=
sTempAnsiChars
[
k
];
bWriteUnicode
=
false
;
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfField.cpp
View file @
de7511f2
...
...
@@ -237,7 +237,7 @@ std::wstring RtfField::RenderToOOX(RenderParameter oRenderParameter)
if
(
m_pInsert
->
m_pTextItems
)
{
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_pInsert
->
m_pTextItems
->
RenderToOOX
(
oNewParametr
)
);
sResult
+=
XmlUtils
::
EncodeXmlString
(
m_pInsert
->
m_pTextItems
->
RenderToOOX
(
oNewParametr
)
,
true
);
}
sResult
+=
L"</w:instrText></w:r>"
;
...
...
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