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
2726e144
Commit
2726e144
authored
Jul 05, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/hotfix/v4.4.2' into develop
parents
8c2637b8
75e32a15
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
18 deletions
+36
-18
ASCOfficeOdfFile/src/docx/xlsx_output_xml.cpp
ASCOfficeOdfFile/src/docx/xlsx_output_xml.cpp
+2
-2
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
...icePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
+26
-13
ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp
ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp
+7
-2
X2tConverter/build/Qt/X2tConverter.pri
X2tConverter/build/Qt/X2tConverter.pri
+1
-1
No files found.
ASCOfficeOdfFile/src/docx/xlsx_output_xml.cpp
View file @
2726e144
...
@@ -190,13 +190,13 @@ void xlsx_xml_worksheet::write_to(std::wostream & strm)
...
@@ -190,13 +190,13 @@ void xlsx_xml_worksheet::write_to(std::wostream & strm)
}
}
}
}
CP_XML_STREAM
()
<<
impl_
->
drawing_
.
str
();
if
(
!
impl_
->
page_props_
.
str
().
empty
())
if
(
!
impl_
->
page_props_
.
str
().
empty
())
{
{
CP_XML_STREAM
()
<<
impl_
->
page_props_
.
str
();
CP_XML_STREAM
()
<<
impl_
->
page_props_
.
str
();
}
//props выше legacyDrawing !!
}
//props выше legacyDrawing !!
CP_XML_STREAM
()
<<
impl_
->
drawing_
.
str
();
if
(
impl_
->
commentsId_
.
length
()
>
0
)
if
(
impl_
->
commentsId_
.
length
()
>
0
)
{
{
CP_XML_NODE
(
L"legacyDrawing"
)
CP_XML_NODE
(
L"legacyDrawing"
)
...
...
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
View file @
2726e144
...
@@ -603,10 +603,12 @@ void CPPTUserInfo::LoadNotes(DWORD dwNoteID, CSlide* pNotes)
...
@@ -603,10 +603,12 @@ void CPPTUserInfo::LoadNotes(DWORD dwNoteID, CSlide* pNotes)
int
indexUser
=
pRecordSlide
->
m_IndexUser
;
int
indexUser
=
pRecordSlide
->
m_IndexUser
;
if
(
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
.
empty
())
pNotesWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
0
]
->
m_arOffsetPictures
;
else
pNotesWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
pNotesWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
pNotesWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
//грузим placeholder
pNotesWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
pNotesWrapper
->
m_arTextPlaceHolders
=
pRecordSlide
->
m_oPersist
.
m_arTextAttrs
;
pNotesWrapper
->
m_arTextPlaceHolders
=
pRecordSlide
->
m_oPersist
.
m_arTextAttrs
;
std
::
vector
<
CRecordNotesAtom
*>
oArrayNotesAtoms
;
std
::
vector
<
CRecordNotesAtom
*>
oArrayNotesAtoms
;
...
@@ -627,6 +629,9 @@ void CPPTUserInfo::LoadNotes(DWORD dwNoteID, CSlide* pNotes)
...
@@ -627,6 +629,9 @@ void CPPTUserInfo::LoadNotes(DWORD dwNoteID, CSlide* pNotes)
//????? у заметок нет слайда !!!
//????? у заметок нет слайда !!!
}
}
//-----------------------------------------------------
//-----------------------------------------------------
size_t
index
=
pPairSlide
->
second
->
m_Index
;
if
(
index
>=
m_arSlides
.
size
())
return
;
CSlide
*
pSlide
=
m_arSlides
[
pPairSlide
->
second
->
m_Index
];
CSlide
*
pSlide
=
m_arSlides
[
pPairSlide
->
second
->
m_Index
];
pNotes
->
m_lSlideID
=
pPairSlide
->
second
->
m_Index
;
pNotes
->
m_lSlideID
=
pPairSlide
->
second
->
m_Index
;
...
@@ -798,10 +803,12 @@ void CPPTUserInfo::LoadSlide(DWORD dwSlideID, CSlide* pSlide)
...
@@ -798,10 +803,12 @@ void CPPTUserInfo::LoadSlide(DWORD dwSlideID, CSlide* pSlide)
int
indexUser
=
pRecordSlide
->
m_IndexUser
;
int
indexUser
=
pRecordSlide
->
m_IndexUser
;
if
(
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
.
empty
())
pSlideWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
0
]
->
m_arOffsetPictures
;
else
pSlideWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
pSlideWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
pSlideWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
// вот, грузим placeholder
pSlideWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
pSlideWrapper
->
m_arTextPlaceHolders
=
pRecordSlide
->
m_oPersist
.
m_arTextAttrs
;
pSlideWrapper
->
m_arTextPlaceHolders
=
pRecordSlide
->
m_oPersist
.
m_arTextAttrs
;
// записываем шрифты
// записываем шрифты
...
@@ -1402,7 +1409,11 @@ void CPPTUserInfo::LoadMainMaster(DWORD dwMasterID, const LONG& lOriginWidth, co
...
@@ -1402,7 +1409,11 @@ void CPPTUserInfo::LoadMainMaster(DWORD dwMasterID, const LONG& lOriginWidth, co
indexUser
=
pPairMaster1
->
second
->
m_IndexUser
;
indexUser
=
pPairMaster1
->
second
->
m_IndexUser
;
pMasterWrapper
->
m_arTextPlaceHolders
=
pPairMaster1
->
second
->
m_oPersist
.
m_arTextAttrs
;
pMasterWrapper
->
m_arTextPlaceHolders
=
pPairMaster1
->
second
->
m_oPersist
.
m_arTextAttrs
;
}
}
if
(
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
.
empty
()
==
false
)
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
indexUser
]
->
m_arOffsetPictures
;
else
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
0
]
->
m_arOffsetPictures
;
pMasterWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
pMasterWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
// читаем настройки текстовых стилей -----------------------------------------------
// читаем настройки текстовых стилей -----------------------------------------------
...
@@ -1784,11 +1795,13 @@ void CPPTUserInfo::LoadNoMainMaster(DWORD dwMasterID, const LONG& lOriginWidth,
...
@@ -1784,11 +1795,13 @@ void CPPTUserInfo::LoadNoMainMaster(DWORD dwMasterID, const LONG& lOriginWidth,
CSlideInfo
*
pMasterWrapper
=
&
m_arMasterWrapper
[
m_arMasterWrapper
.
size
()
-
1
];
CSlideInfo
*
pMasterWrapper
=
&
m_arMasterWrapper
[
m_arMasterWrapper
.
size
()
-
1
];
// вот, грузим placeholder
pMasterWrapper
->
m_arTextPlaceHolders
=
pCurMaster
->
m_oPersist
.
m_arTextAttrs
;
pMasterWrapper
->
m_arTextPlaceHolders
=
pCurMaster
->
m_oPersist
.
m_arTextAttrs
;
pMasterWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
if
(
m_pDocumentInfo
->
m_arUsers
[
pCurMaster
->
m_IndexUser
]
->
m_arOffsetPictures
.
empty
()
==
false
)
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
pCurMaster
->
m_IndexUser
]
->
m_arOffsetPictures
;
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
pCurMaster
->
m_IndexUser
]
->
m_arOffsetPictures
;
pMasterWrapper
->
m_mapFilePictures
=
&
m_pDocumentInfo
->
m_mapStoreImageFile
;
else
pMasterWrapper
->
m_parEmptyPictures
=
&
m_pDocumentInfo
->
m_arUsers
[
0
]
->
m_arOffsetPictures
;
std
::
map
<
DWORD
,
LONG
>::
iterator
pPairTheme
=
m_mapMasterToTheme
.
find
(
dwID
);
std
::
map
<
DWORD
,
LONG
>::
iterator
pPairTheme
=
m_mapMasterToTheme
.
find
(
dwID
);
...
...
ASCOfficePPTFile/PPTFormatLib/Reader/PPTFileReader.cpp
View file @
2726e144
...
@@ -232,10 +232,12 @@ void CPPTFileReader::ReadPictures()
...
@@ -232,10 +232,12 @@ void CPPTFileReader::ReadPictures()
while
(
true
)
while
(
true
)
{
{
if
(
pStream
->
isEOF
())
//if (pStream->isEOF()) случаются неверно записанные стримы
break
;
//
break;
int
pos
=
pStream
->
getStreamPointer
();
int
pos
=
pStream
->
getStreamPointer
();
if
(
pos
>=
pStream
->
getStreamSize
())
break
;
SRecordHeader
oHeader
;
SRecordHeader
oHeader
;
if
(
pDecryptor
)
if
(
pDecryptor
)
...
@@ -256,6 +258,9 @@ void CPPTFileReader::ReadPictures()
...
@@ -256,6 +258,9 @@ void CPPTFileReader::ReadPictures()
else
else
oHeader
.
ReadFromStream
(
pStream
->
stream_
);
oHeader
.
ReadFromStream
(
pStream
->
stream_
);
if
(
oHeader
.
RecType
==
0
&&
oHeader
.
RecLen
==
0
)
break
;
// окончание стрима забито нулями (выравнивание)
CRecordOfficeArtBlip
art_blip
;
CRecordOfficeArtBlip
art_blip
;
art_blip
.
m_strTmpDirectory
=
m_strTmpDirectory
;
art_blip
.
m_strTmpDirectory
=
m_strTmpDirectory
;
art_blip
.
m_oDocumentInfo
=
&
m_oDocumentInfo
;
art_blip
.
m_oDocumentInfo
=
&
m_oDocumentInfo
;
...
...
X2tConverter/build/Qt/X2tConverter.pri
View file @
2726e144
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
QT -= core
QT -= core
QT -= gui
QT -= gui
VERSION = 2.4.46
7
.0
VERSION = 2.4.46
8
.0
DEFINES += INTVER=$$VERSION
DEFINES += INTVER=$$VERSION
TARGET = x2t
TARGET = x2t
...
...
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