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
f907a90b
Commit
f907a90b
authored
Aug 09, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f65a27cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
ASCOfficePPTXFile/PPTXFormat/Logic/Fills/Blip.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Fills/Blip.cpp
+5
-0
ASCOfficePPTXFile/PPTXFormat/Logic/Hyperlink.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Hyperlink.cpp
+2
-0
ASCOfficePPTXFile/PPTXFormat/NotesSlide.h
ASCOfficePPTXFile/PPTXFormat/NotesSlide.h
+26
-0
No files found.
ASCOfficePPTXFile/PPTXFormat/Logic/Fills/Blip.cpp
View file @
f907a90b
...
@@ -118,6 +118,8 @@ namespace PPTX
...
@@ -118,6 +118,8 @@ namespace PPTX
return
parentFileAs
<
SlideMaster
>
().
GetMediaFullPathNameFromRId
(
*
embed
);
return
parentFileAs
<
SlideMaster
>
().
GetMediaFullPathNameFromRId
(
*
embed
);
else
if
(
parentFileIs
<
Theme
>
())
else
if
(
parentFileIs
<
Theme
>
())
return
parentFileAs
<
Theme
>
().
GetMediaFullPathNameFromRId
(
*
embed
);
return
parentFileAs
<
Theme
>
().
GetMediaFullPathNameFromRId
(
*
embed
);
else
if
(
parentFileIs
<
NotesSlide
>
())
return
parentFileAs
<
NotesSlide
>
().
GetMediaFullPathNameFromRId
(
*
embed
);
return
_T
(
""
);
return
_T
(
""
);
}
}
else
if
(
link
.
IsInit
())
else
if
(
link
.
IsInit
())
...
@@ -137,6 +139,8 @@ namespace PPTX
...
@@ -137,6 +139,8 @@ namespace PPTX
return
parentFileAs
<
SlideMaster
>
().
GetMediaFullPathNameFromRId
(
*
link
);
return
parentFileAs
<
SlideMaster
>
().
GetMediaFullPathNameFromRId
(
*
link
);
else
if
(
parentFileIs
<
Theme
>
())
else
if
(
parentFileIs
<
Theme
>
())
return
parentFileAs
<
Theme
>
().
GetMediaFullPathNameFromRId
(
*
link
);
return
parentFileAs
<
Theme
>
().
GetMediaFullPathNameFromRId
(
*
link
);
else
if
(
parentFileIs
<
NotesSlide
>
())
return
parentFileAs
<
NotesSlide
>
().
GetMediaFullPathNameFromRId
(
*
link
);
return
_T
(
""
);
return
_T
(
""
);
}
}
return
_T
(
""
);
return
_T
(
""
);
...
@@ -150,6 +154,7 @@ namespace PPTX
...
@@ -150,6 +154,7 @@ namespace PPTX
else
if
(
parentFileIs
<
SlideLayout
>
())
pOleObject
=
parentFileAs
<
SlideLayout
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
SlideLayout
>
())
pOleObject
=
parentFileAs
<
SlideLayout
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
SlideMaster
>
())
pOleObject
=
parentFileAs
<
SlideMaster
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
SlideMaster
>
())
pOleObject
=
parentFileAs
<
SlideMaster
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
Theme
>
())
pOleObject
=
parentFileAs
<
Theme
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
Theme
>
())
pOleObject
=
parentFileAs
<
Theme
>
().
GetOleObject
(
oRId
);
else
if
(
parentFileIs
<
NotesSlide
>
())
pOleObject
=
parentFileAs
<
NotesSlide
>
().
GetOleObject
(
oRId
);
if
(
pOleObject
.
IsInit
())
if
(
pOleObject
.
IsInit
())
return
pOleObject
->
filename
().
m_strFilename
;
return
pOleObject
->
filename
().
m_strFilename
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Hyperlink.cpp
View file @
f907a90b
...
@@ -64,6 +64,8 @@ namespace PPTX
...
@@ -64,6 +64,8 @@ namespace PPTX
sLink
=
parentFileAs
<
SlideMaster
>
().
GetFullHyperlinkNameFromRId
(
rid
);
sLink
=
parentFileAs
<
SlideMaster
>
().
GetFullHyperlinkNameFromRId
(
rid
);
else
if
(
parentFileIs
<
Theme
>
())
else
if
(
parentFileIs
<
Theme
>
())
sLink
=
parentFileAs
<
Theme
>
().
GetFullHyperlinkNameFromRId
(
rid
);
sLink
=
parentFileAs
<
Theme
>
().
GetFullHyperlinkNameFromRId
(
rid
);
else
if
(
parentFileIs
<
NotesSlide
>
())
sLink
=
parentFileAs
<
NotesSlide
>
().
GetFullHyperlinkNameFromRId
(
rid
);
}
}
XmlUtils
::
replace_all
(
sLink
,
L"
\\
"
,
L"/"
);
XmlUtils
::
replace_all
(
sLink
,
L"
\\
"
,
L"/"
);
...
...
ASCOfficePPTXFile/PPTXFormat/NotesSlide.h
View file @
f907a90b
...
@@ -88,7 +88,33 @@ namespace PPTX
...
@@ -88,7 +88,33 @@ namespace PPTX
{
{
return
type
().
DefaultFileName
();
return
type
().
DefaultFileName
();
}
}
virtual
std
::
wstring
GetMediaFullPathNameFromRId
(
const
OOX
::
RId
&
rid
)
const
{
smart_ptr
<
OOX
::
Image
>
p
=
GetImage
(
rid
);
if
(
!
p
.
is_init
())
return
_T
(
""
);
return
p
->
filename
().
m_strFilename
;
}
virtual
std
::
wstring
GetFullHyperlinkNameFromRId
(
const
OOX
::
RId
&
rid
)
const
{
smart_ptr
<
OOX
::
HyperLink
>
p
=
GetHyperlink
(
rid
);
if
(
!
p
.
is_init
())
return
_T
(
""
);
return
p
->
Uri
().
m_strFilename
;
}
virtual
std
::
wstring
GetLinkFromRId
(
const
OOX
::
RId
&
rid
)
const
{
//return relsTable.Links.GetTargetById(rid);
smart_ptr
<
OOX
::
External
>
pExt
=
Find
(
rid
).
smart_dynamic_cast
<
OOX
::
External
>
();
if
(
pExt
.
IsInit
())
return
pExt
->
Uri
().
m_strFilename
;
smart_ptr
<
OOX
::
Media
>
pMedia
=
Find
(
rid
).
smart_dynamic_cast
<
OOX
::
Media
>
();
if
(
pMedia
.
IsInit
())
return
pMedia
->
filename
().
m_strFilename
;
return
_T
(
""
);
}
virtual
void
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
virtual
void
toPPTY
(
NSBinPptxRW
::
CBinaryFileWriter
*
pWriter
)
const
{
{
pWriter
->
StartRecord
(
NSBinPptxRW
::
NSMainTables
::
NotesSlides
);
pWriter
->
StartRecord
(
NSBinPptxRW
::
NSMainTables
::
NotesSlides
);
...
...
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