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
1b91ee57
Commit
1b91ee57
authored
Oct 16, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2t binary - fix convert ole without vml drawing
parent
337c92e5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
+1
-1
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
...XlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
+0
-1
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_output_xml.cpp
...fficeXlsFile2/source/XlsXlsxConverter/xlsx_output_xml.cpp
+1
-0
Common/DocxFormat/Source/XlsxFormat/Drawing/CellAnchor.h
Common/DocxFormat/Source/XlsxFormat/Drawing/CellAnchor.h
+3
-1
XlsxSerializerCom/Reader/BinaryWriter.h
XlsxSerializerCom/Reader/BinaryWriter.h
+9
-0
No files found.
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
View file @
1b91ee57
...
...
@@ -1991,7 +1991,7 @@ void XlsConverter::convert(XLS::Obj * obj)
storageOle
->
close
();
delete
storageOle
;
}
std
::
wstring
objectId
=
L"obId"
+
std
::
to_wstring
(
id
);
std
::
wstring
objectId
=
L"ob
j
Id"
+
std
::
to_wstring
(
id
);
xlsx_context
->
current_sheet
().
sheet_rels
().
add
(
oox
::
relationship
(
objectId
,
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
,
L"../embeddings/"
+
file_name
));
...
...
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
View file @
1b91ee57
...
...
@@ -537,7 +537,6 @@ void xlsx_drawing_context::end_drawing(_drawing_state_ptr & drawing_state)
}
if
(
drawing_state
->
type
==
external_items
::
typeOleObject
)
{
drawing_state
->
hidden
=
true
;
serialize_shape
(
drawing_state
);
}
if
(
drawing_state
->
type
==
external_items
::
typeChart
)
...
...
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_output_xml.cpp
View file @
1b91ee57
...
...
@@ -189,6 +189,7 @@ void xlsx_xml_worksheet::write_to(std::wostream & strm)
CP_XML_ATTR
(
L"xmlns:r"
,
L"http://schemas.openxmlformats.org/officeDocument/2006/relationships"
);
CP_XML_ATTR
(
L"xmlns:mc"
,
L"http://schemas.openxmlformats.org/markup-compatibility/2006"
);
CP_XML_ATTR
(
L"xmlns:xdr"
,
L"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
);
CP_XML_ATTR
(
L"xmlns:x14"
,
L"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
);
CP_XML_ATTR
(
L"mc:Ignorable"
,
L"x14ac"
);
CP_XML_ATTR
(
L"xmlns:x14ac"
,
L"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
);
...
...
Common/DocxFormat/Source/XlsxFormat/Drawing/CellAnchor.h
View file @
1b91ee57
...
...
@@ -154,6 +154,7 @@ namespace OOX
smart_ptr
<
PPTX
::
Logic
::
Shape
>
shape
=
m_oElement
->
GetElem
().
smart_dynamic_cast
<
PPTX
::
Logic
::
Shape
>
();
if
(
shape
.
IsInit
())
{
m_nId
=
shape
->
nvSpPr
.
cNvPr
.
id
;
if
(
shape
->
nvSpPr
.
cNvPr
.
oleSpid
.
IsInit
())
{
//ссылка на объект
...
...
@@ -162,7 +163,7 @@ namespace OOX
}
}
smart_ptr
<
PPTX
::
Logic
::
GraphicFrame
>
frame
=
m_oElement
->
GetElem
().
smart_dynamic_cast
<
PPTX
::
Logic
::
GraphicFrame
>
();
if
((
frame
.
IsInit
())
&&
(
frame
->
oleSpid
.
IsInit
()))
if
((
frame
.
IsInit
())
&&
(
frame
->
oleSpid
.
IsInit
()))
{
//ссылка на объект или шейп в vmlDrawing
m_sSpId
=
frame
->
oleSpid
.
get
();
...
...
@@ -221,6 +222,7 @@ namespace OOX
//для удобства
nullable
<
std
::
wstring
>
m_sSpId
;
nullable
<
int
>
m_nId
;
};
}
//Spreadsheet
}
// namespace OOX
...
...
XlsxSerializerCom/Reader/BinaryWriter.h
View file @
1b91ee57
...
...
@@ -2956,6 +2956,15 @@ namespace BinXlsxRW
if
(
!
pCellAnchor
->
m_bShapeOle
&&
pCellAnchor
->
isValid
())
{
if
(
oWorksheet
.
m_oOleObjects
.
IsInit
()
&&
pCellAnchor
->
m_nId
.
IsInit
())
{
std
::
map
<
int
,
COleObject
*>::
const_iterator
pFind
=
oWorksheet
.
m_oOleObjects
->
m_mapOleObjects
.
find
(
pCellAnchor
->
m_nId
.
get
());
if
(
pFind
!=
oWorksheet
.
m_oOleObjects
->
m_mapOleObjects
.
end
())
{
pCellAnchor
->
m_bShapeOle
=
true
;
continue
;
}
}
int
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerWorksheetsTypes
::
Drawing
);
WriteDrawing
(
oWorksheet
,
pDrawing
,
pCellAnchor
,
pVmlDrawing
);
m_oBcw
.
WriteItemEnd
(
nCurPos
);
...
...
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