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
c1f41d0e
Commit
c1f41d0e
authored
Aug 03, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocFormatReader - fix font name for wordArt...
parent
1a120b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
+14
-9
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.h
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.h
+1
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
View file @
c1f41d0e
...
@@ -769,6 +769,14 @@ namespace DocFileFormat
...
@@ -769,6 +769,14 @@ namespace DocFileFormat
case
gtextFont
:
case
gtextFont
:
{
{
std
::
wstring
font
=
NSStringExt
::
CConverter
::
GetUnicodeFromUTF16
((
unsigned
short
*
)
iter
->
opComplex
,
(
iter
->
op
)
/
2
);
std
::
wstring
font
=
NSStringExt
::
CConverter
::
GetUnicodeFromUTF16
((
unsigned
short
*
)
iter
->
opComplex
,
(
iter
->
op
)
/
2
);
int
i
=
font
.
size
();
while
(
i
>
0
)
{
if
(
font
[
i
-
1
]
!=
0
)
break
;
i
--
;
}
if
(
i
<
font
.
size
())
font
.
erase
(
font
.
begin
()
+
i
,
font
.
end
());
font
=
std
::
wstring
(
_T
(
"
\"
"
))
+
font
+
std
::
wstring
(
_T
(
"
\"
"
));
font
=
std
::
wstring
(
_T
(
"
\"
"
))
+
font
+
std
::
wstring
(
_T
(
"
\"
"
));
appendStyleProperty
(
&
m_textPathStyle
,
L"font-family"
,
font
);
appendStyleProperty
(
&
m_textPathStyle
,
L"font-family"
,
font
);
}
break
;
}
break
;
...
@@ -1541,7 +1549,7 @@ namespace DocFileFormat
...
@@ -1541,7 +1549,7 @@ namespace DocFileFormat
}
}
}
}
void
VMLShapeMapping
::
AppendOptionsToStyle
(
std
::
wstring
*
oStyle
,
const
std
::
list
<
OptionEntry
>&
options
)
const
void
VMLShapeMapping
::
AppendOptionsToStyle
(
std
::
wstring
*
oStyle
,
const
std
::
list
<
OptionEntry
>&
options
,
int
zIndex
)
const
{
{
bool
bRelH
=
false
;
bool
bRelH
=
false
;
bool
bRelV
=
false
;
bool
bRelV
=
false
;
...
@@ -1585,6 +1593,10 @@ namespace DocFileFormat
...
@@ -1585,6 +1593,10 @@ namespace DocFileFormat
//The shape is behind the text, so the z-index must be negative.
//The shape is behind the text, so the z-index must be negative.
appendStyleProperty
(
oStyle
,
_T
(
"z-index"
),
_T
(
"-1"
)
);
appendStyleProperty
(
oStyle
,
_T
(
"z-index"
),
_T
(
"-1"
)
);
}
}
else
if
(
!
m_isInlineShape
)
{
appendStyleProperty
(
oStyle
,
_T
(
"z-index"
),
FormatUtils
::
IntToWideString
(
zIndex
+
0x7ffff
));
}
if
(
groupShapeBooleans
.
fHidden
&&
groupShapeBooleans
.
fUsefHidden
)
if
(
groupShapeBooleans
.
fHidden
&&
groupShapeBooleans
.
fUsefHidden
)
{
{
...
@@ -1674,8 +1686,6 @@ namespace DocFileFormat
...
@@ -1674,8 +1686,6 @@ namespace DocFileFormat
if
((
dAngle
>=
45.0
&&
dAngle
<=
135.0
)
||
(
dAngle
>=
225.0
&&
dAngle
<=
315.0
)
||
(
dAngle
<=
-
45.0
&&
dAngle
>=
-
135.0
)
||
(
dAngle
<=
-
225.0
&&
dAngle
>=
-
315.0
))
if
((
dAngle
>=
45.0
&&
dAngle
<=
135.0
)
||
(
dAngle
>=
225.0
&&
dAngle
<=
315.0
)
||
(
dAngle
<=
-
45.0
&&
dAngle
>=
-
135.0
)
||
(
dAngle
<=
-
225.0
&&
dAngle
>=
-
315.0
))
twistDimensions
=
true
;
twistDimensions
=
true
;
//ATLTRACE (L"angle : %f\n", dAngle);
}
}
}
}
...
@@ -1734,13 +1744,8 @@ namespace DocFileFormat
...
@@ -1734,13 +1744,8 @@ namespace DocFileFormat
appendStyleProperty
(
&
style
,
_T
(
"flip"
),
_T
(
"y"
)
);
appendStyleProperty
(
&
style
,
_T
(
"flip"
),
_T
(
"y"
)
);
}
}
AppendOptionsToStyle
(
&
style
,
options
);
AppendOptionsToStyle
(
&
style
,
options
,
zIndex
);
if
(
!
m_isInlineShape
)
{
appendStyleProperty
(
&
style
,
_T
(
"z-index"
),
FormatUtils
::
IntToWideString
(
zIndex
+
0x7ffff
));
}
return
style
;
return
style
;
}
}
...
...
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.h
View file @
c1f41d0e
...
@@ -97,7 +97,7 @@ namespace DocFileFormat
...
@@ -97,7 +97,7 @@ namespace DocFileFormat
std
::
wstring
getTextboxAnchor
(
unsigned
int
anchor
)
const
;
std
::
wstring
getTextboxAnchor
(
unsigned
int
anchor
)
const
;
void
AppendOptionsToStyle
(
std
::
wstring
*
style
,
const
std
::
list
<
OptionEntry
>&
options
)
const
;
void
AppendOptionsToStyle
(
std
::
wstring
*
style
,
const
std
::
list
<
OptionEntry
>&
options
,
int
zIndex
)
const
;
std
::
wstring
buildStyle
(
const
Shape
*
shape
,
const
ChildAnchor
*
anchor
,
const
std
::
list
<
OptionEntry
>&
options
,
int
zIndex
)
const
;
std
::
wstring
buildStyle
(
const
Shape
*
shape
,
const
ChildAnchor
*
anchor
,
const
std
::
list
<
OptionEntry
>&
options
,
int
zIndex
)
const
;
std
::
wstring
getLineStyle
(
unsigned
int
p
)
const
;
std
::
wstring
getLineStyle
(
unsigned
int
p
)
const
;
...
...
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