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
fd587008
Commit
fd587008
authored
Jun 02, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5ba62cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
12 deletions
+31
-12
XlsxSerializerCom/Reader/BinaryWriter.h
XlsxSerializerCom/Reader/BinaryWriter.h
+31
-12
No files found.
XlsxSerializerCom/Reader/BinaryWriter.h
View file @
fd587008
...
...
@@ -2686,10 +2686,11 @@ namespace BinXlsxRW
if
(
olePic
->
oleObject
->
m_OleObjectFile
.
IsInit
())
{
//if (olePic->oleObject->m_OleObjectFile->isMsPackage() == false)
olePic
->
blipFill
.
blip
->
oleFilepathBin
=
olePic
->
oleObject
->
m_OleObjectFile
->
filename
().
GetPath
();
}
}
OOX
::
Image
*
pImageFileCache
=
NULL
;
std
::
wstring
sIdImageFileCache
;
if
((
NULL
!=
pShapeElem
)
&&
(
OOX
::
et_v_shapetype
!=
pShapeElem
->
getType
()))
{
OOX
::
Vml
::
CShape
*
pShape
=
static_cast
<
OOX
::
Vml
::
CShape
*>
(
pShapeElem
);
...
...
@@ -2704,26 +2705,44 @@ namespace BinXlsxRW
if
(
OOX
::
et_v_imagedata
==
pChildElemShape
->
getType
())
{
OOX
::
Vml
::
CImageData
*
pImageData
=
static_cast
<
OOX
::
Vml
::
CImageData
*>
(
pChildElemShape
);
if
(
pImageData
->
m_oRelId
.
IsInit
())
if
(
pImageData
->
m_oRelId
.
IsInit
())
sIdImageFileCache
=
pImageData
->
m_oRelId
->
GetValue
();
else
if
(
pImageData
->
m_rId
.
IsInit
())
sIdImageFileCache
=
pImageData
->
m_rId
->
GetValue
();
if
(
!
sIdImageFileCache
.
empty
())
{
olePic
->
blipFill
.
blip
->
embed
=
new
OOX
::
RId
(
pImageData
->
m_oRelId
->
GetValue
());
//ищем физический файл ( rId относительно vml_drawing)
smart_ptr
<
OOX
::
File
>
pFile
=
pVmlDrawing
->
Find
(
olePic
->
blipFill
.
blip
->
embed
.
get
());
//ищем физический файл ( rId относительно vml_drawing)
smart_ptr
<
OOX
::
File
>
pFile
=
pVmlDrawing
->
Find
(
sIdImageFileCache
);
if
(
pFile
.
IsInit
()
&&
(
OOX
::
FileTypes
::
Image
==
pFile
->
type
()))
{
OOX
::
Image
*
pImageFile
=
static_cast
<
OOX
::
Image
*>
(
pFile
.
operator
->
());
OOX
::
CPath
pathImage
=
pImageFile
->
filename
();
olePic
->
oleObject
->
m_OleObjectFile
->
set_filename_cache
(
pathImage
);
olePic
->
blipFill
.
blip
->
oleFilepathImage
=
pImageFile
->
filename
().
GetPath
();
pImageFileCache
=
static_cast
<
OOX
::
Image
*>
(
pFile
.
operator
->
());
break
;
}
}
}
}
}
}
if
(
pImageFileCache
==
NULL
&&
pOleObject
->
m_oObjectPr
.
IsInit
()
&&
pOleObject
->
m_oObjectPr
->
m_oRid
.
IsInit
())
{
sIdImageFileCache
=
pOleObject
->
m_oObjectPr
->
m_oRid
->
GetValue
();
smart_ptr
<
OOX
::
File
>
pFile
=
oWorksheet
.
Find
(
sIdImageFileCache
);
if
(
pFile
.
IsInit
()
&&
(
OOX
::
FileTypes
::
Image
==
pFile
->
type
()))
{
pImageFileCache
=
static_cast
<
OOX
::
Image
*>
(
pFile
.
operator
->
());
}
}
if
(
pImageFileCache
)
{
OOX
::
CPath
pathImage
=
pImageFileCache
->
filename
();
olePic
->
oleObject
->
m_OleObjectFile
->
set_filename_cache
(
pathImage
);
olePic
->
blipFill
.
blip
->
embed
=
new
OOX
::
RId
(
sIdImageFileCache
);
//ваще то тут не важно что - приоритет у того что ниже..
olePic
->
blipFill
.
blip
->
oleFilepathImage
=
pathImage
.
GetPath
();
}
pCellAnchor
->
m_oElement
=
new
PPTX
::
Logic
::
SpTreeElem
();
pCellAnchor
->
m_oElement
->
InitElem
(
olePic
);
...
...
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