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
c2605bb5
Commit
c2605bb5
authored
Oct 26, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2t - vps
parent
ab2703c8
Changes
37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
113 additions
and
214 deletions
+113
-214
ASCOfficeDocFile/DocDocxConverter/OpenXmlPackage.cpp
ASCOfficeDocFile/DocDocxConverter/OpenXmlPackage.cpp
+5
-3
ASCOfficeDocFile/DocDocxConverter/TablePropertyExceptions.h
ASCOfficeDocFile/DocDocxConverter/TablePropertyExceptions.h
+3
-2
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
+1
-1
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
+1
-1
ASCOfficeDocxFile2/BinWriter/BinEquationWriter.h
ASCOfficeDocxFile2/BinWriter/BinEquationWriter.h
+5
-5
ASCOfficeOdfFile/include/cpdoccore/CPHash.h
ASCOfficeOdfFile/include/cpdoccore/CPHash.h
+0
-55
ASCOfficeOdfFile/linux/OdfFileReaderLib.pro
ASCOfficeOdfFile/linux/OdfFileReaderLib.pro
+0
-1
ASCOfficeOdfFile/src/docx/docx_conversion_context.h
ASCOfficeOdfFile/src/docx/docx_conversion_context.h
+3
-2
ASCOfficeOdfFile/src/docx/oox_chart_legend.cpp
ASCOfficeOdfFile/src/docx/oox_chart_legend.cpp
+1
-1
ASCOfficeOdfFile/src/docx/oox_chart_shape.cpp
ASCOfficeOdfFile/src/docx/oox_chart_shape.cpp
+1
-1
ASCOfficeOdfFile/src/docx/oox_data_labels.cpp
ASCOfficeOdfFile/src/docx/oox_data_labels.cpp
+1
-1
ASCOfficeOdfFile/src/docx/oox_layout.cpp
ASCOfficeOdfFile/src/docx/oox_layout.cpp
+1
-1
ASCOfficeOdfFile/src/docx/oox_plot_area.cpp
ASCOfficeOdfFile/src/docx/oox_plot_area.cpp
+1
-1
ASCOfficeOdfFile/src/docx/oox_title.cpp
ASCOfficeOdfFile/src/docx/oox_title.cpp
+1
-1
ASCOfficeOdfFile/src/docx/xlsx_border.cpp
ASCOfficeOdfFile/src/docx/xlsx_border.cpp
+1
-1
ASCOfficeOdfFile/src/odf/odf_content_xml.cpp
ASCOfficeOdfFile/src/odf/odf_content_xml.cpp
+0
-4
ASCOfficeOdfFile/src/odf/table_calculation_settings.cpp
ASCOfficeOdfFile/src/odf/table_calculation_settings.cpp
+3
-3
ASCOfficeOdfFile/src/odf/table_xlsx.cpp
ASCOfficeOdfFile/src/odf/table_xlsx.cpp
+0
-1
ASCOfficeOdfFile/win32/cpcommon.vcproj
ASCOfficeOdfFile/win32/cpcommon.vcproj
+0
-4
ASCOfficeOdfFileW/source/OdfFormat/odf_drawing_context.cpp
ASCOfficeOdfFileW/source/OdfFormat/odf_drawing_context.cpp
+0
-2
ASCOfficeOdfFileW/source/OdfFormat/office_elements_create.cpp
...fficeOdfFileW/source/OdfFormat/office_elements_create.cpp
+2
-5
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
+2
-2
ASCOfficeOdfFileW/source/Oox2OdfConverter/PptxConverter.cpp
ASCOfficeOdfFileW/source/Oox2OdfConverter/PptxConverter.cpp
+2
-1
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/Converter.cpp
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/Converter.cpp
+1
-1
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
+2
-2
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfo.h
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfo.h
+1
-1
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
...icePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
+3
-1
ASCOfficePPTFile/PPTFormatLib/Records/Animations/AnimationTypes.h
...ePPTFile/PPTFormatLib/Records/Animations/AnimationTypes.h
+63
-98
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/GroupShapeContainer.h
...PTFile/PPTFormatLib/Records/Drawing/GroupShapeContainer.h
+1
-1
ASCOfficePPTFile/PPTFormatLib/Records/ExOleObjAtom.h
ASCOfficePPTFile/PPTFormatLib/Records/ExOleObjAtom.h
+2
-2
ASCOfficePPTFile/PPTFormatLib/Records/VBAInfoAtom.h
ASCOfficePPTFile/PPTFormatLib/Records/VBAInfoAtom.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Geometry.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Geometry.cpp
+2
-0
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
+0
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Timing/AnimMotion.h
ASCOfficePPTXFile/PPTXFormat/Logic/Timing/AnimMotion.h
+1
-1
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
+1
-1
Common/OfficeFileFormatChecker2.cpp
Common/OfficeFileFormatChecker2.cpp
+0
-4
DesktopEditor/fontengine/fontconverter/FontFileType1.cpp
DesktopEditor/fontengine/fontconverter/FontFileType1.cpp
+1
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/OpenXmlPackage.cpp
View file @
c2605bb5
...
...
@@ -142,9 +142,11 @@ namespace DocFileFormat
}
HRESULT
OpenXmlPackage
::
SaveOLEObject
(
const
std
::
wstring
&
fileName
,
const
OleObjectFileStructure
&
oleObjectFileStructure
)
{
POLE
::
Storage
*
storageOut
=
new
POLE
::
Storage
(
fileName
.
c_str
());
if
(
storageOut
==
NULL
||
docFile
==
NULL
)
return
S_FALSE
;
if
(
docFile
==
NULL
)
return
S_FALSE
;
POLE
::
Storage
*
storageOut
=
new
POLE
::
Storage
(
fileName
.
c_str
());
if
(
storageOut
==
NULL
)
return
S_FALSE
;
if
(
storageOut
->
open
(
true
,
true
)
==
false
)
{
delete
storageOut
;
...
...
ASCOfficeDocFile/DocDocxConverter/TablePropertyExceptions.h
View file @
c2605bb5
...
...
@@ -62,8 +62,9 @@ namespace DocFileFormat
for
(
std
::
list
<
SinglePropertyModifier
>::
iterator
oSpmIter
=
papx
->
grpprl
->
begin
();
oSpmIter
!=
papx
->
grpprl
->
end
();
++
oSpmIter
)
{
if
(
oSpmIter
->
OpCode
==
sprmTDefTableShd
||
oSpmIter
->
OpCode
==
sprmTDefTableShd2nd
||
oSpmIter
->
OpCode
==
sprmTDefTableShd2nd
||
oSpmIter
->
OpCode
==
sprmTDefTableShd3rd
)
if
(
oSpmIter
->
OpCode
==
sprmTDefTableShd
||
oSpmIter
->
OpCode
==
sprmTDefTableShd2nd
||
oSpmIter
->
OpCode
==
sprmTDefTableShd3rd
)
{
m_bSkipShading97
=
TRUE
;
}
...
...
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
View file @
c2605bb5
...
...
@@ -744,7 +744,7 @@ namespace DocFileFormat
text
=
FormatUtils
::
XmlEncode
(
text
);
if
(
0
<
=
text
.
find
(
L"
\n
"
))
if
(
std
::
wstring
::
npos
!
=
text
.
find
(
L"
\n
"
))
{
m_textpath
.
AppendText
(
text
);
}
...
...
ASCOfficeDocFile/DocDocxConverter/WordprocessingDocument.cpp
View file @
c2605bb5
...
...
@@ -71,7 +71,7 @@ namespace ImageHelper
__BITMAPINFOHEADER
*
header
=
(
__BITMAPINFOHEADER
*
)
data
;
if
(
!
header
)
return
result
;
result
=
=
Global
::
msoblipDIB
;
result
=
Global
::
msoblipDIB
;
if
(
header
->
biWidth
>
100000
||
header
->
biHeight
>
100000
||
header
->
biSize
!=
40
)
{
...
...
ASCOfficeDocxFile2/BinWriter/BinEquationWriter.h
View file @
c2605bb5
...
...
@@ -557,11 +557,11 @@ namespace MathEquation
BYTE
horAlign
;
switch
(
eHorAlign
)
{
case
matrixhoralignLeft
:
horAlign
=
SimpleTypes
::
xalignLeft
;
case
matrixhoralignCenter
:
horAlign
=
SimpleTypes
::
xalignCenter
;
case
matrixhoralignRight
:
horAlign
=
SimpleTypes
::
xalignRight
;
case
matrixhoralignEqualSign
:
horAlign
=
SimpleTypes
::
xalignCenter
;
case
matrixhoralignCommaSign
:
horAlign
=
SimpleTypes
::
xalignCenter
;
case
matrixhoralignLeft
:
horAlign
=
SimpleTypes
::
xalignLeft
;
break
;
case
matrixhoralignCenter
:
horAlign
=
SimpleTypes
::
xalignCenter
;
break
;
case
matrixhoralignRight
:
horAlign
=
SimpleTypes
::
xalignRight
;
break
;
case
matrixhoralignEqualSign
:
horAlign
=
SimpleTypes
::
xalignCenter
;
break
;
case
matrixhoralignCommaSign
:
horAlign
=
SimpleTypes
::
xalignCenter
;
break
;
}
WriteItemVal
(
BinDocxRW
::
c_oSer_OMathBottomNodesType
::
McJc
,
horAlign
);
...
...
ASCOfficeOdfFile/include/cpdoccore/CPHash.h
deleted
100644 → 0
View file @
ab2703c8
/*
* (c) Copyright Ascensio System SIA 2010-2017
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../../include/cpdoccore/CPOptional.h"
namespace
boost
{
template
<
class
T
>
struct
hash
;
}
namespace
cpdoccore
{
template
<
class
T
>
std
::
size_t
hash_value
(
typename
optional
<
T
>::
Type
const
&
val
)
{
if
(
val
)
{
boost
::
hash
<
T
>
(
*
val
);
}
else
return
0
;
}
}
ASCOfficeOdfFile/linux/OdfFileReaderLib.pro
View file @
c2605bb5
...
...
@@ -555,7 +555,6 @@ HEADERS += \
..
/
src
/
docx
/
xlsx_xf
.
h
\
..
/
include
/
logging
.
h
\
..
/
include
/
cpdoccore
/
CPColorUtils
.
h
\
..
/
include
/
cpdoccore
/
CPHash
.
h
\
..
/
include
/
cpdoccore
/
CPNoncopyable
.
h
\
..
/
include
/
cpdoccore
/
CPOptional
.
h
\
..
/
include
/
cpdoccore
/
CPScopedPtr
.
h
\
...
...
ASCOfficeOdfFile/src/docx/docx_conversion_context.h
View file @
c2605bb5
...
...
@@ -224,8 +224,9 @@ public:
bool
&
get_use_image_replace
()
{
bool
res
=
false
;
if
(
frames_
.
size
()
>
0
)
return
frames_
.
back
().
use_image_replace
;
else
return
res
;
if
(
!
frames_
.
empty
())
return
frames_
.
back
().
use_image_replace
;
else
throw
;
}
std
::
wstring
&
get_text_stream_shape
()
...
...
ASCOfficeOdfFile/src/docx/oox_chart_legend.cpp
View file @
c2605bb5
...
...
@@ -32,7 +32,7 @@
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "oox_chart_legend.h"
...
...
ASCOfficeOdfFile/src/docx/oox_chart_shape.cpp
View file @
c2605bb5
...
...
@@ -30,7 +30,7 @@
*
*/
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "oox_chart_shape.h"
...
...
ASCOfficeOdfFile/src/docx/oox_data_labels.cpp
View file @
c2605bb5
...
...
@@ -31,7 +31,7 @@
*/
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "oox_data_labels.h"
...
...
ASCOfficeOdfFile/src/docx/oox_layout.cpp
View file @
c2605bb5
...
...
@@ -32,7 +32,7 @@
#include "oox_layout.h"
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "../odf/style_text_properties.h"
...
...
ASCOfficeOdfFile/src/docx/oox_plot_area.cpp
View file @
c2605bb5
...
...
@@ -33,7 +33,7 @@
#include "oox_plot_area.h"
#include <boost/foreach.hpp>
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "../odf/style_text_properties.h"
...
...
ASCOfficeOdfFile/src/docx/oox_title.cpp
View file @
c2605bb5
...
...
@@ -32,7 +32,7 @@
#include "oox_title.h"
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "../odf/style_text_properties.h"
...
...
ASCOfficeOdfFile/src/docx/xlsx_border.cpp
View file @
c2605bb5
...
...
@@ -32,7 +32,7 @@
#include "xlsx_border.h"
#include <boost/functional.hpp>
#include <cpdoccore/CP
Hash
.h>
#include <cpdoccore/CP
Optional
.h>
#include <cpdoccore/xml/simple_xml_writer.h>
#include "../odf/style_text_properties.h"
...
...
ASCOfficeOdfFile/src/odf/odf_content_xml.cpp
View file @
c2605bb5
...
...
@@ -87,10 +87,6 @@ void content_xml_t::add_child_element( xml::sax * Reader, const std::wstring & N
else
if
(
CP_CHECK_NAME
(
L"math"
,
L"math"
)
||
CP_CHECK_NAME
(
L""
,
L"math"
))
{
create_element_and_read
(
Reader
,
Ns
,
Name
,
xml_content_
,
getContext
(),
true
);
}
else
if
CP_CHECK_NAME
(
L"manifest"
,
L"manifest"
)
{
create_element_and_read
(
Reader
,
Ns
,
Name
,
xml_content_
,
getContext
(),
true
);
}
}
...
...
ASCOfficeOdfFile/src/odf/table_calculation_settings.cpp
View file @
c2605bb5
...
...
@@ -62,9 +62,9 @@ void table_calculation_settings::add_child_element( xml::sax * Reader, const std
{
CP_CREATE_ELEMENT
(
table_null_date_
);
}
else
if
CP_CHECK_NAME
(
L"table"
,
L"null-date
"
)
{
}
//else if CP_CHECK_NAME(L"table", L"iteration
")
//
{
//
}
else
CP_NOT_APPLICABLE_ELM
();
}
...
...
ASCOfficeOdfFile/src/odf/table_xlsx.cpp
View file @
c2605bb5
...
...
@@ -490,7 +490,6 @@ void table_table_column::xlsx_convert(oox::xlsx_conversion_context & Context)
size_t
style_
=
Context
.
get_style_manager
().
xfId
(
NULL
,
NULL
,
&
cellFormatProperties
,
NULL
,
L""
,
set_default
);
if
(
style_
>=
0
)
//if (set_default)
CP_XML_ATTR
(
L"style"
,
style_
);
}
...
...
ASCOfficeOdfFile/win32/cpcommon.vcproj
View file @
c2605bb5
...
...
@@ -1111,10 +1111,6 @@
RelativePath=
"..\include\cpdoccore\CPColorUtils.h"
>
</File>
<File
RelativePath=
"..\include\cpdoccore\CPHash.h"
>
</File>
<File
RelativePath=
"..\include\cpdoccore\CPNoncopyable.h"
>
...
...
ASCOfficeOdfFileW/source/OdfFormat/odf_drawing_context.cpp
View file @
c2605bb5
...
...
@@ -2463,8 +2463,6 @@ void odf_drawing_context::start_action(std::wstring value)
event_
->
attlist_
.
presentation_action_
=
L"last-page"
;
else
if
(
std
::
wstring
::
npos
!=
value
.
find
(
L"endshow"
))
event_
->
attlist_
.
presentation_action_
=
L"end"
;
else
if
(
std
::
wstring
::
npos
!=
value
.
find
(
L"endshow"
))
event_
->
attlist_
.
presentation_action_
=
L"end"
;
}
else
if
(
std
::
wstring
::
npos
!=
value
.
find
(
L"hlinksldjump"
))
{
...
...
ASCOfficeOdfFileW/source/OdfFormat/office_elements_create.cpp
View file @
c2605bb5
...
...
@@ -75,11 +75,8 @@ office_element_creator * office_element_creator::get()
{
if
(
!
instance_
)
{
if
(
!
instance_
)
{
office_element_creator
*
temp
=
new
office_element_creator
();
instance_
=
temp
;
}
office_element_creator
*
temp
=
new
office_element_creator
();
instance_
=
temp
;
}
return
instance_
;
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/DocxConverter.cpp
View file @
c2605bb5
...
...
@@ -2733,10 +2733,10 @@ void DocxConverter::convert(SimpleTypes::CHexColor<> *color,
std
::
wstring
strColor
=
L"#"
+
oRgbColor
->
ToString
().
substr
(
2
);
//.Right(6);
odf_color
=
odf_types
::
color
(
strColor
);
delete
oRgbColor
;
result
=
true
;
}
if
(
oRgbColor
)
delete
oRgbColor
;
}
if
(
theme_color
&&
result
==
false
)
{
...
...
ASCOfficeOdfFileW/source/Oox2OdfConverter/PptxConverter.cpp
View file @
c2605bb5
...
...
@@ -925,9 +925,10 @@ void PptxConverter::convert(PPTX::Logic::Table *oox_table)
}
void
PptxConverter
::
convert
(
PPTX
::
Logic
::
TableRow
*
oox_table_row
)
{
odp_context
->
slide_context
()
->
start_table_row
(
oox_table_row
->
Height
.
IsInit
());
if
(
!
oox_table_row
)
return
;
odp_context
->
slide_context
()
->
start_table_row
(
oox_table_row
->
Height
.
IsInit
());
if
(
oox_table_row
->
Height
.
IsInit
())
{
odf_writer
::
style_table_row_properties
*
table_row_properties
=
odp_context
->
styles_context
()
->
last_state
()
->
get_table_row_properties
();
...
...
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/Converter.cpp
View file @
c2605bb5
...
...
@@ -959,7 +959,7 @@ void NSPresentationEditor::CPPTXWriter::WriteSlide(int nIndexSlide)
void
NSPresentationEditor
::
CPPTXWriter
::
WriteTransition
(
CStringWriter
&
oWriter
,
CTransition
&
transition
)
{
if
(
!
transition
.
m_nEffectType
==
0xFF
)
return
;
if
(
transition
.
m_nEffectType
==
0xFF
)
return
;
std
::
wstring
type
;
...
...
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
View file @
c2605bb5
...
...
@@ -787,9 +787,9 @@ void NSPresentationEditor::CShapeWriter::WriteShapeInfo()
{
if
(
m_pShapeElement
->
m_lPlaceholderSizePreset
==
1
)
m_oWriter
.
WriteString
(
std
::
wstring
(
L" size=
\"
half
\"
"
));
if
(
m_pShapeElement
->
m_lPlaceholderSizePreset
==
2
)
else
if
(
m_pShapeElement
->
m_lPlaceholderSizePreset
==
2
)
m_oWriter
.
WriteString
(
std
::
wstring
(
L" size=
\"
quarter
\"
"
));
if
(
m_pShapeElement
->
m_lPlaceholderSizePreset
==
3
)
else
if
(
m_pShapeElement
->
m_lPlaceholderSizePreset
==
3
)
{
if
(
isBodyPlaceholder
(
m_pShapeElement
->
m_lPlaceholderType
))
m_oWriter
.
WriteString
(
std
::
wstring
(
L" size=
\"
half
\"
"
));
...
...
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfo.h
View file @
c2605bb5
...
...
@@ -100,7 +100,7 @@ public:
{
delete
pInfo
;
if
(
pInfo
->
m_b
Encrypt
)
if
(
m_oCurrentUser
.
m_bIs
Encrypt
)
return
false
;
else
continue
;
...
...
ASCOfficePPTFile/PPTFormatLib/Reader/PPTDocumentInfoOneUser.cpp
View file @
c2605bb5
...
...
@@ -2432,12 +2432,14 @@ void CPPTUserInfo::AddAudioTransition (DWORD dwSlideID, CTransition* pTransition
if
(
NULL
==
pTransition
)
return
;
CAudioElement
*
pAudio
=
new
CAudioElement
();
CAudioElement
*
pAudio
=
new
CAudioElement
();
if
(
pAudio
)
{
pAudio
->
m_strAudioFileName
=
strFilePath
;
}
// ??? недоделка ???
pAudio
->
Release
();
}
void
CPPTUserInfo
::
CreateDefaultStyle
(
NSPresentationEditor
::
CTextStyles
&
pStyle
,
NSPresentationEditor
::
CTheme
*
pTheme
)
...
...
ASCOfficePPTFile/PPTFormatLib/Records/Animations/AnimationTypes.h
View file @
c2605bb5
This diff is collapsed.
Click to expand it.
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/GroupShapeContainer.h
View file @
c2605bb5
...
...
@@ -144,7 +144,7 @@ public:
LONG
lWidthClient
=
m_rcGroupClientAnchor
.
right
-
m_rcGroupClientAnchor
.
left
;
LONG
lHeightClient
=
m_rcGroupClientAnchor
.
bottom
-
m_rcGroupClientAnchor
.
top
;
bool
bIsRecalc
=
((
lWidthClient
>
0
)
&&
(
lHeightClient
>
0
)
&&
(
lWidth
Client
>
0
)
&&
(
lHeightGroup
>
0
));
bool
bIsRecalc
=
((
lWidthClient
>
0
)
&&
(
lHeightClient
>
0
)
&&
(
lWidth
Group
>
0
)
&&
(
lHeightGroup
>
0
));
if
(
bIsRecalc
)
{
...
...
ASCOfficePPTFile/PPTFormatLib/Records/ExOleObjAtom.h
View file @
c2605bb5
...
...
@@ -98,12 +98,12 @@ public:
BYTE
*
pDataUncompress
=
new
BYTE
[
decompressedSize
+
64
];
if
(
NSZLib
::
Decompress
(
pData
,
compressedSize
,
pDataUncompress
,
decompressedSize
))
{
RELEASEOBJECT
(
pData
)
;
delete
[]
pData
;
pData
=
pDataUncompress
;
}
else
{
RELEASEOBJECT
(
pData
)
;
delete
[]
pData
;
}
}
//if (pDecryptor)
...
...
ASCOfficePPTFile/PPTFormatLib/Records/VBAInfoAtom.h
View file @
c2605bb5
...
...
@@ -99,7 +99,7 @@ public:
BYTE
*
pDataUncompress
=
new
BYTE
[
decompressedSize
];
NSZLib
::
Decompress
(
pData
,
compressedSize
,
pDataUncompress
,
decompressedSize
);
RELEASEOBJECT
(
pData
)
;
delete
[]
pData
;
pData
=
pDataUncompress
;
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Geometry.cpp
View file @
c2605bb5
...
...
@@ -130,6 +130,8 @@ namespace PPTX
std
::
to_wstring
((
int
)(
dkoefX
*
txRect
.
right
))
+
L","
+
std
::
to_wstring
((
int
)(
dkoefY
*
txRect
.
bottom
));
}
if
(
lpShapeElement
)
delete
lpShapeElement
;
}
}
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/GraphicFrame.cpp
View file @
c2605bb5
...
...
@@ -259,7 +259,6 @@ namespace PPTX
else
{
olePic
.
Init
();
//старый вариант описания объекта через spid в VmlDrawing
olePic
->
spPr
.
xfrm
;
Logic
::
PrstGeom
*
geom
=
new
Logic
::
PrstGeom
();
geom
->
prst
=
L"rect"
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Timing/AnimMotion.h
View file @
c2605bb5
...
...
@@ -105,7 +105,7 @@ namespace PPTX
oValue
.
m_strValue
+=
XmlUtils
::
CreateNode
(
_T
(
"p:by"
),
oAttr1
);
}
if
(
from
Y
.
IsInit
()
||
fromY
.
IsInit
())
if
(
from
X
.
IsInit
()
||
fromY
.
IsInit
())
{
XmlUtils
::
CAttribute
oAttr1
;
oAttr1
.
Write
(
_T
(
"x"
),
fromX
);
...
...
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
View file @
c2605bb5
...
...
@@ -1663,7 +1663,7 @@ void XlsConverter::convert_geometry_text(std::vector<ODRAW::OfficeArtFOPTEPtr> &
if
(
bools
->
fUsegFItalic
&&
bools
->
fItalic
)
xlsx_context
->
get_drawing_context
().
set_wordart_italic
(
true
);
if
(
bools
->
fUsegFVertical
&&
bools
->
fVertical
)
xlsx_context
->
get_drawing_context
().
set_wordart_vertical
(
true
);
if
(
bools
->
fUsegFUnderline
&&
bools
->
fUnderline
)
xlsx_context
->
get_drawing_context
().
set_wordart_underline
(
true
);
if
(
bools
->
fUsegStrikethrough
&&
bools
->
fStrikethrough
)
xlsx_context
->
get_drawing_context
().
set_wordart_strike
(
true
);
if
(
bools
->
fUseg
F
Strikethrough
&&
bools
->
fStrikethrough
)
xlsx_context
->
get_drawing_context
().
set_wordart_strike
(
true
);
//if (bools->fUsegFShrinkFit && bools->fShrinkFit)
}
...
...
Common/OfficeFileFormatChecker2.cpp
View file @
c2605bb5
...
...
@@ -417,10 +417,6 @@ bool COfficeFileFormatChecker::isOOXFormatFile(const std::wstring & fileName)
{
nFileType
=
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPSM
;
}
else
if
(
std
::
string
::
npos
!=
strContentTypes
.
find
(
ppsmFormatLine
))
{
nFileType
=
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPSM
;
}
else
if
(
std
::
string
::
npos
!=
strContentTypes
.
find
(
ppsxFormatLine
))
{
nFileType
=
AVS_OFFICESTUDIO_FILE_PRESENTATION_PPSX
;
...
...
DesktopEditor/fontengine/fontconverter/FontFileType1.cpp
View file @
c2605bb5
...
...
@@ -507,7 +507,7 @@ namespace NSFontConverter
}
}
delete
sData
;
delete
[]
sData
;
}
nIndex
+=
nLength
+
3
;
...
...
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