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
79ead484
Commit
79ead484
authored
May 10, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #31878
parent
be65f18a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
26 deletions
+64
-26
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.sln
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.sln
+17
-0
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
+1
-8
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
...ficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
+1
-1
ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp
ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp
+17
-9
ASCOfficePPTFile/PptFormatTest/PptFormatTest.vcproj
ASCOfficePPTFile/PptFormatTest/PptFormatTest.vcproj
+28
-8
No files found.
ASCOfficeOdfFileW/OdfFileWTest/OdfFileWTest.sln
View file @
79ead484
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdfFormatWriterLib", "..\source\win32\OdfFormat.vcproj", "{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}"
ProjectSection(ProjectDependencies) = postProject
{C739151F-5384-41DF-A1A6-F089E2C1AD56} = {C739151F-5384-41DF-A1A6-F089E2C1AD56}
{609ED938-3CA8-4BED-B363-25096D4C4812} = {609ED938-3CA8-4BED-B363-25096D4C4812}
{9CAA294E-58C3-4CEB-ABA0-CB9786CA5540} = {9CAA294E-58C3-4CEB-ABA0-CB9786CA5540}
{94954A67-A853-43B1-A727-6EF2774C5A6A} = {94954A67-A853-43B1-A727-6EF2774C5A6A}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Oox2OdfConverter", "..\source\win32\Oox2OdfConverter.vcproj", "{BEE01B53-244A-44E6-8947-ED9342D9247E}"
ProjectSection(ProjectDependencies) = postProject
{21663823-DE45-479B-91D0-B4FEF4916EF0} = {21663823-DE45-479B-91D0-B4FEF4916EF0}
{A100103A-353E-45E8-A9B8-90B87CC5C0B0} = {A100103A-353E-45E8-A9B8-90B87CC5C0B0}
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD} = {E5A67556-44DA-4481-8F87-0A3AEDBD20DD}
{94954A67-A853-43B1-A727-6EF2774C5A6A} = {94954A67-A853-43B1-A727-6EF2774C5A6A}
{36636678-AE25-4BE6-9A34-2561D1BCF302} = {36636678-AE25-4BE6-9A34-2561D1BCF302}
EndProjectSection
...
...
@@ -89,6 +98,14 @@ Global
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Debug|Win32.ActiveCfg = Debug|Win32
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Debug|Win32.Build.0 = Debug|Win32
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Debug|x64.ActiveCfg = Debug|x64
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Debug|x64.Build.0 = Debug|x64
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Release|Win32.ActiveCfg = Release|Win32
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Release|Win32.Build.0 = Release|Win32
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Release|x64.ActiveCfg = Release|x64
{E5A67556-44DA-4481-8F87-0A3AEDBD20DD}.Release|x64.Build.0 = Release|x64
{BEE01B53-244A-44E6-8947-ED9342D9247E}.Debug|Win32.ActiveCfg = Debug|Win32
{BEE01B53-244A-44E6-8947-ED9342D9247E}.Debug|Win32.Build.0 = Debug|Win32
{BEE01B53-244A-44E6-8947-ED9342D9247E}.Debug|x64.ActiveCfg = Debug|x64
...
...
ASCOfficePPTFile/PPTFormatLib/PPTXWriter/ShapeWriter.cpp
View file @
79ead484
...
...
@@ -68,9 +68,6 @@ void CStylesWriter::ConvertStyleLevel(NSPresentationEditor::CTextStyleLevel& oLe
{
std
::
wstring
strProp
=
std
::
to_wstring
(
pPF
->
leftMargin
.
get
());
oWriter
.
WriteString
(
L" marL=
\"
"
+
strProp
+
L"
\"
"
);
if
(
pPF
->
indent
.
is_init
()
==
false
)
pPF
->
indent
=
(
LONG
)
0
;
}
if
(
pPF
->
indent
.
is_init
())
{
...
...
@@ -798,11 +795,7 @@ void NSPresentationEditor::CShapeWriter::WriteTextInfo()
if
(
pPF
->
leftMargin
.
is_init
())
{
std
::
wstring
strProp
=
std
::
to_wstring
(
pPF
->
leftMargin
.
get
()
);
m_oWriter
.
WriteString
(
L" marL=
\"
"
+
strProp
+
L"
\"
"
);
if
(
pPF
->
indent
.
is_init
()
==
false
)
pPF
->
indent
=
(
LONG
)
0
;
m_oWriter
.
WriteString
(
L" marL=
\"
"
+
strProp
+
L"
\"
"
);
}
if
(
pPF
->
indent
.
is_init
())
{
...
...
ASCOfficePPTFile/PPTFormatLib/Records/Drawing/ShapeContainer.h
View file @
79ead484
...
...
@@ -2198,7 +2198,7 @@ protected:
pTextSettings
->
m_oStyles
.
ApplyAfter
(
pThemeWrapper
->
m_pStyles
[
nIndexType
].
get
());
}
}
if
(
eTypeOwn
!=
NSOfficePPT
::
NoPresent
&&
eTypeOwn
!=
NSOfficePPT
::
Other
&&
eTypeOwn
!=
eTypePersist
&&
eTypeOwn
!=
eTypeMaster
)
if
(
eTypeOwn
!=
NSOfficePPT
::
NoPresent
/* && eTypeOwn != NSOfficePPT::Other*/
&&
eTypeOwn
!=
eTypePersist
&&
eTypeOwn
!=
eTypeMaster
)
{
int
nIndexType
=
(
int
)
eTypeOwn
;
...
...
ASCOfficePPTFile/PptFormatTest/PptFormatTest.cpp
View file @
79ead484
...
...
@@ -31,22 +31,30 @@
*/
// PptFormatTest.cpp : Defines the entry point for the console application.
//
#include "../
../
PPTFormatLib/PPTFormatLib.h"
#include "../../
../
OfficeUtils/src/OfficeUtils.h"
#include "../PPTFormatLib/PPTFormatLib.h"
#include "../../OfficeUtils/src/OfficeUtils.h"
#include "../../../Common/DocxFormat/Source/SystemUtility/FileSystem/Directory.h"
#include "../../DesktopEditor/common/Directory.h"
#include <tchar.h>
#if defined(_WIN64)
#pragma comment(lib, "../../build/bin/icu/win_64/icuuc.lib")
#elif defined (_WIN32)
#pragma comment(lib, "../../build/bin/icu/win_32/icuuc.lib")
#endif
int
_tmain
(
int
argc
,
_TCHAR
*
argv
[])
{
if
(
argc
<
2
)
return
1
;
std
::
wstring
sSrcPpt
=
argv
[
1
];
std
::
wstring
sDstPptx
=
argc
>
2
?
argv
[
2
]
:
sSrc
Doc
+
L"-my.pptx"
;
std
::
wstring
sDstPptx
=
argc
>
2
?
argv
[
2
]
:
sSrc
Ppt
+
L"-my.pptx"
;
std
::
wstring
outputDir
=
FileSystem
::
Directory
::
GetFolderPath
(
sDstPptx
);
std
::
wstring
dstTempPath
=
FileSystem
::
Directory
::
CreateDirectoryWithUniqueName
(
outputDir
);
std
::
wstring
outputDir
=
NS
Directory
::
GetFolderPath
(
sDstPptx
);
std
::
wstring
dstTempPath
=
NS
Directory
::
CreateDirectoryWithUniqueName
(
outputDir
);
std
::
wstring
tempPath
=
FileSystem
::
Directory
::
CreateDirectoryWithUniqueName
(
outputDir
);
std
::
wstring
tempPath
=
NS
Directory
::
CreateDirectoryWithUniqueName
(
outputDir
);
COfficePPTFile
pptFile
;
...
...
@@ -60,8 +68,8 @@ int _tmain(int argc, _TCHAR* argv[])
hRes
=
oCOfficeUtils
.
CompressFileOrDirectory
(
dstTempPath
.
c_str
(),
sDstPptx
,
-
1
);
}
FileSystem
::
Directory
::
DeleteDirectory
(
dstTempPath
);
FileSystem
::
Directory
::
DeleteDirectory
(
tempPath
);
NS
Directory
::
DeleteDirectory
(
dstTempPath
);
NS
Directory
::
DeleteDirectory
(
tempPath
);
return
hRes
;
}
...
...
ASCOfficePPTFile/PptFormatTest/PptFormatTest.vcproj
View file @
79ead484
...
...
@@ -45,7 +45,7 @@
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"..\..\Common\OfficeDrawing;"..\..\DesktopEditor\freetype-2.5.2\include";..\..\Common\OfficeDrawing\Shapes"
PreprocessorDefinitions=
"_DEBUG;_CONSOLE;USE_ATL_CSTRINGS;_USE_MATH_DEFINES;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;PPT_FORMAT;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;_PRESENTATION_WRITER_;_SVG_CONVERT_TO_IMAGE_"
PreprocessorDefinitions=
"_DEBUG;_CONSOLE;USE_ATL_CSTRINGS;_USE_MATH_DEFINES;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;PPT_FORMAT;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;_PRESENTATION_WRITER_;_SVG_CONVERT_TO_IMAGE_
;DONT_WRITE_EMBEDDED_FONTS
"
MinimalRebuild=
"false"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"3"
...
...
@@ -340,14 +340,34 @@
<References>
</References>
<Files>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\BinWriter\BinWriters.cpp"
>
</File>
<File
RelativePath=
"..\..\build\bin\icu\win_32\icuuc.lib"
<Filter
Name=
"common"
>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\BinWriter\BinWriters.cpp"
>
</File>
<File
RelativePath=
"..\..\Common\OfficeFileFormatChecker2.cpp"
>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\BinReader\Readers.cpp"
>
</File>
<File
RelativePath=
"..\..\UnicodeConverter\UnicodeConverter.cpp"
>
</File>
<File
RelativePath=
"..\..\DesktopEditor\xml\src\xmldom.cpp"
>
</File>
<File
RelativePath=
"..\..\DesktopEditor\xml\src\xmllight.cpp"
>
</File>
</Filter>
<File
RelativePath=
"PptFormatTest.cpp"
>
...
...
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