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
10aac610
Commit
10aac610
authored
Jul 06, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docx2Doct - ole without image replacement
parent
b5489282
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
+15
-4
ASCOfficePPTXFile/PPTXFormat/Logic/SpPr.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/SpPr.cpp
+1
-0
No files found.
ASCOfficePPTXFile/ASCOfficeDrawingConverter.cpp
View file @
10aac610
...
...
@@ -83,7 +83,8 @@ static void GetColorWithEffect(const std::wstring& sColor, const int& R, const i
if
(
pos2
<
(
pos1
+
2
))
return
;
param
=
std
::
stod
(
sColor
.
substr
(
pos1
+
1
,
pos2
-
pos1
-
1
));
std
::
wstring
s
=
sColor
.
substr
(
pos1
+
1
,
pos2
-
pos1
-
1
);
param
=
_wtoi
(
s
.
c_str
());
bool
isEffect
=
false
;
if
(
0
==
sColor
.
find
(
L"darken"
))
...
...
@@ -1355,7 +1356,17 @@ rIns=\"91440\" bIns=\"45720\" numCol=\"1\" spcCol=\"0\" rtlCol=\"0\" fromWordArt
PPTX
::
Logic
::
Shape
*
pShape
=
dynamic_cast
<
PPTX
::
Logic
::
Shape
*>
(
pElem
->
GetElem
().
operator
->
());
if
(
NULL
!=
pShape
&&
pShape
->
spPr
.
Fill
.
Fill
.
IsInit
())
{
const
PPTX
::
Logic
::
BlipFill
&
oBlipFill
=
pShape
->
spPr
.
Fill
.
Fill
.
as
<
PPTX
::
Logic
::
BlipFill
>
();
bool
bImageOle
=
false
;
if
(
pShape
->
spPr
.
Fill
.
m_type
==
PPTX
::
Logic
::
UniFill
::
blipFill
)
bImageOle
=
true
;
PPTX
::
Logic
::
BlipFill
oBlipFillNew
;
if
(
!
bImageOle
)
oBlipFillNew
.
blip
=
new
PPTX
::
Logic
::
Blip
();
const
PPTX
::
Logic
::
BlipFill
&
oBlipFill
=
bImageOle
?
pShape
->
spPr
.
Fill
.
Fill
.
as
<
PPTX
::
Logic
::
BlipFill
>
()
:
oBlipFillNew
;
if
(
oBlipFill
.
blip
.
IsInit
())
{
if
(
pOle
->
m_sFilepathBin
.
IsInit
())
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/SpPr.cpp
View file @
10aac610
...
...
@@ -42,6 +42,7 @@ namespace PPTX
SpPr
::
SpPr
()
{
Fill
.
m_type
=
UniFill
::
notInit
;
}
...
...
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