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
e223ffd0
Commit
e223ffd0
authored
Aug 25, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release/v5.0.0' into develop
parents
b140f4b5
2d570818
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
+11
-6
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/CNvGraphicFramePr.h
View file @
e223ffd0
...
...
@@ -121,7 +121,7 @@ namespace PPTX
oAttr
.
Write
(
_T
(
"noSelect"
),
noSelect
);
std
::
wstring
namespaceLocks
=
L"a"
;
if
(
m_namespace
==
L"wp"
)
namespaceLocks
=
L"wp"
;
//
if (m_namespace == L"wp") namespaceLocks = L"wp";
return
XmlUtils
::
CreateNode
(
m_namespace
+
L":cNvGraphicFramePr"
,
oAttr
.
m_strValue
.
empty
()
?
L""
:
XmlUtils
::
CreateNode
(
namespaceLocks
+
L":graphicFrameLocks"
,
oAttr
));
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
View file @
e223ffd0
...
...
@@ -900,23 +900,28 @@ namespace PPTX
}
if
(
!
blipFill
.
blip
->
mediaRid
.
empty
())
{
PPTX
::
Logic
::
Ext
ext
;
PPTX
::
Logic
::
Ext
ext
;
ext
.
link
=
OOX
::
RId
(
blipFill
.
blip
->
mediaRid
);
nvPicPr
.
nvPr
.
extLst
.
push_back
(
ext
);
int
nRId
=
-
1
;
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