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
92fb4ac4
Commit
92fb4ac4
authored
Aug 24, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
decfeec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
+11
-6
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
View file @
92fb4ac4
...
...
@@ -909,19 +909,24 @@ namespace PPTX
ext
.
link
=
OOX
::
RId
(
blipFill
.
blip
->
mediaRid
);
nvPicPr
.
nvPr
.
extLst
.
push_back
(
ext
);
std
::
wstring
strMediaRelsPath
;
if
(
pReader
->
m_nDocumentType
==
XMLWRITER_DOC_TYPE_DOCX
)
strMediaRelsPath
=
L"media/"
;
else
strMediaRelsPath
=
L"../media/"
;
smart_ptr
<
OOX
::
Media
>
mediaFile
=
blipFill
.
additionalFile
.
smart_dynamic_cast
<
OOX
::
Media
>
();
strMediaRelsPath
+=
mediaFile
->
filename
().
GetFilename
();
int
nRId
=
-
1
;
if
(
blipFill
.
additionalFile
.
is
<
OOX
::
Audio
>
())
{
nvPicPr
.
nvPr
.
media
.
Media
=
new
PPTX
::
Logic
::
MediaFile
(
L"audioFile"
);
nRId
=
pReader
->
m_pRels
->
WriteRels
(
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio"
,
L"NULL"
,
L"External"
);
nRId
=
pReader
->
m_pRels
->
WriteRels
(
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio"
,
strMediaRelsPath
,
L""
);
}
if
(
blipFill
.
additionalFile
.
is
<
OOX
::
Video
>
())
{
nvPicPr
.
nvPr
.
media
.
Media
=
new
PPTX
::
Logic
::
MediaFile
(
L"videoFile"
);
nRId
=
pReader
->
m_pRels
->
WriteRels
(
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"
,
L"NULL"
,
L"External"
);
nRId
=
pReader
->
m_pRels
->
WriteRels
(
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"
,
strMediaRelsPath
,
L""
);
}
if
(
nvPicPr
.
nvPr
.
media
.
Media
.
IsInit
()
&&
nRId
>
0
)
...
...
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