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
d22fb105
Commit
d22fb105
authored
Aug 15, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OoxFormat - vbaProject, ...
parent
89aba918
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
51 additions
and
42 deletions
+51
-42
ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj
ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj
+1
-1
ASCOfficeOdfFile/win32/cpodf.vcproj
ASCOfficeOdfFile/win32/cpodf.vcproj
+1
-1
ASCOfficeOdfFile/win32/cpxml.vcproj
ASCOfficeOdfFile/win32/cpxml.vcproj
+1
-1
ASCOfficeOdfFileW/source/win32/OdfFormat.vcproj
ASCOfficeOdfFileW/source/win32/OdfFormat.vcproj
+1
-1
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
+2
-2
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.h
...fficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/FileFactory.cpp
ASCOfficePPTXFile/PPTXFormat/FileFactory.cpp
+4
-6
ASCOfficePPTXFile/PPTXFormat/FileFactory.h
ASCOfficePPTXFile/PPTXFormat/FileFactory.h
+5
-0
ASCOfficePPTXFile/PPTXFormat/LegacyDiagramText.h
ASCOfficePPTXFile/PPTXFormat/LegacyDiagramText.h
+0
-1
ASCOfficePPTXFile/PPTXLib/PPTXFormat.vcproj
ASCOfficePPTXFile/PPTXLib/PPTXFormat.vcproj
+2
-2
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.cpp
...fficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.cpp
+3
-3
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.h
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.h
+1
-1
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
...ficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
+5
-5
ASCOfficeTxtFile/TxtXmlFormatLib/Win32/TxtXmlFormatLib.vcproj
...fficeTxtFile/TxtXmlFormatLib/Win32/TxtXmlFormatLib.vcproj
+2
-2
Common/DocxFormat/Projects/DocxFormat2005.vcproj
Common/DocxFormat/Projects/DocxFormat2005.vcproj
+2
-2
Common/DocxFormat/Source/DocxFormat/File.h
Common/DocxFormat/Source/DocxFormat/File.h
+0
-1
X2tConverter/test/win32Test/X2tTest.vcproj
X2tConverter/test/win32Test/X2tTest.vcproj
+1
-1
XlsxSerializerCom/Common/BinReaderWriterDefines.h
XlsxSerializerCom/Common/BinReaderWriterDefines.h
+4
-0
XlsxSerializerCom/Reader/BinaryWriter.h
XlsxSerializerCom/Reader/BinaryWriter.h
+8
-6
XlsxSerializerCom/Writer/BinaryReader.h
XlsxSerializerCom/Writer/BinaryReader.h
+7
-5
No files found.
ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj
View file @
d22fb105
...
...
@@ -107,7 +107,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
C:\_WORK\trunk\ServerComponents\Common\DocxFormat\Source\XML\libxml2\XML\include
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"_DEBUG;_LIB;USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficeOdfFile/win32/cpodf.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"../include;"../../DesktopEditor/freetype-2.5.2/include""
AdditionalIncludeDirectories=
"../include;"../../DesktopEditor/freetype-2.5.2/include"
;../../DesktopEditor/xml/libxml2/include
"
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE;USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficeOdfFile/win32/cpxml.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
""
AdditionalIncludeDirectories=
"
../../DesktopEditor/xml/libxml2/include;../../DesktopEditor/xml/build/vs2005
"
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE;USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficeOdfFileW/source/win32/OdfFormat.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"../../../ASCOfficeOdfFile/include;../../../ASCOfficeOdfFile/src/odf/datatypes;
"../../../DesktopEditor/freetype-2.5.2/include"
"
AdditionalIncludeDirectories=
"../../../ASCOfficeOdfFile/include;../../../ASCOfficeOdfFile/src/odf/datatypes;
../../../DesktopEditor/xml/libxml2/include
"
PreprocessorDefinitions=
"_DEBUG;_LIB;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
View file @
d22fb105
...
...
@@ -55,7 +55,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
"../../../DesktopEditor/freetype-2.5.2/include"
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"_DEBUG;_LIB;_USE_MATH_DEFINES;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;AVS_USE_CONVERT_PPTX_TOCUSTOM_VML;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
@@ -134,7 +134,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
"../../../DesktopEditor/freetype-2.5.2/include"
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"_DEBUG;_LIB;_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_"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/BaseShape.h
View file @
d22fb105
...
...
@@ -31,7 +31,7 @@
*/
#pragma once
#include "Path.h"
#include "../../../Common/DocxFormat/Source/Common/SimpleTypes_Base.h"
#include "../../../
../../
Common/DocxFormat/Source/Common/SimpleTypes_Base.h"
namespace
NSPresentationEditor
{
...
...
ASCOfficePPTXFile/PPTXFormat/FileFactory.cpp
View file @
d22fb105
...
...
@@ -31,10 +31,7 @@
*/
#include "FileFactory.h"
#include "../../Common/DocxFormat/Source/DocxFormat/File.h"
#include "../../Common/DocxFormat/Source/DocxFormat/Rels.h"
#include "../../Common/DocxFormat/Source/DocxFormat/FileTypes.h"
#include "FileMap.h"
#include "FileTypes.h"
#include "App.h"
...
...
@@ -54,6 +51,8 @@
#include "NotesMaster.h"
#include "LegacyDiagramText.h"
#include "../../Common/DocxFormat/Source/DocxFormat/Rels.h"
#include "../../Common/DocxFormat/Source/DocxFormat/FileTypes.h"
#include "../../Common/DocxFormat/Source/XlsxFormat/Chart/Chart.h"
#include "../../Common/DocxFormat/Source/DocxFormat/VmlDrawing.h"
#include "../../Common/DocxFormat/Source/DocxFormat/Diagram/DiagramData.h"
...
...
@@ -69,8 +68,7 @@
#include "../../Common/DocxFormat/Source/DocxFormat/External/ExternalAudio.h"
#include "../../Common/DocxFormat/Source/DocxFormat/External/ExternalVideo.h"
#include "../../Common/DocxFormat/Source/DocxFormat/UnknowTypeFile.h"
#include "FileMap.h"
//
namespace
PPTX
...
...
ASCOfficePPTXFile/PPTXFormat/FileFactory.h
View file @
d22fb105
...
...
@@ -30,6 +30,10 @@
*
*/
#pragma once
#ifndef PPTX_FILEFACTORY_PPTX_INCLUDE_H_
#define PPTX_FILEFACTORY_PPTX_INCLUDE_H_
#include "../../Common/DocxFormat/Source/DocxFormat/File.h"
namespace
OOX
{
namespace
Rels
{
class
CRelationShip
;}}
...
...
@@ -44,3 +48,4 @@ namespace PPTX
static
const
smart_ptr
<
OOX
::
File
>
CreateFilePPTX
(
const
OOX
::
CPath
&
path
,
OOX
::
Rels
::
CRelationShip
&
relation
,
FileMap
&
map
);
};
}
// namespace PPTX
#endif // PPTX_FILEFACTORY_PPTX_INCLUDE_H_
ASCOfficePPTXFile/PPTXFormat/LegacyDiagramText.h
View file @
d22fb105
...
...
@@ -32,7 +32,6 @@
#pragma once
#include "../../../../Common/DocxFormat/Source/DocxFormat/File.h"
#include "../../../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "../../../../Common/DocxFormat/Source/Base/Types_32.h"
#include "Logic/TextParagraphPr.h"
...
...
ASCOfficePPTXFile/PPTXLib/PPTXFormat.vcproj
View file @
d22fb105
...
...
@@ -44,7 +44,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
..\..\Common\ASCDocxFormat\Source\Utility;..\..\Common\ASCDocxFormat\Source\XML;..\..\Common\ASCDocxFormat\Source\;.\;..\..\Common\DocxFormat\Source\XML\libxml2\XML\include;"../../DesktopEditor/freetype-2.5.2/include"
"
AdditionalIncludeDirectories=
"
"../../DesktopEditor/freetype-2.5.2/include";../../DesktopEditor/xml/build/vs2005
"
PreprocessorDefinitions=
"WIN32;_DEBUG;_LIB;_USE_MATH_DEFINES;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;AVS_USE_CONVERT_PPTX_TOCUSTOM_VML;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
@@ -112,7 +112,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
..\..\Common\DocxFormat\Source\XML\libxml2\XML\include;
"..\..\DesktopEditor\freetype-2.5.2\include""
AdditionalIncludeDirectories=
""..\..\DesktopEditor\freetype-2.5.2\include""
PreprocessorDefinitions=
"_DEBUG;_LIB;_USE_MATH_DEFINES;NODOCX;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;_AVS_PPT_SHAPE_INCLUDE_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;BUILD_CONFIG_FULL_VERSION;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.cpp
View file @
d22fb105
...
...
@@ -33,9 +33,9 @@
#include "OOXMathReader.h"
#include "OOXParagraphReader.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/Math/OMath.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/Math/oMathContent.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/Math/oMathBottomNodes.h"
#include "../../../
../
Common/DocxFormat/Source/DocxFormat/Math/OMath.h"
#include "../../../
../
Common/DocxFormat/Source/DocxFormat/Math/oMathContent.h"
#include "../../../
../
Common/DocxFormat/Source/DocxFormat/Math/oMathBottomNodes.h"
bool
OOXMathReader
::
ParseElement
(
ReaderParameter
oParam
,
OOX
::
WritingElement
*
ooxMath
,
RtfMathPtr
&
rtfMath
)
{
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXMathReader.h
View file @
d22fb105
...
...
@@ -35,7 +35,7 @@
#include "../RtfMath.h"
#include "../../../Common/DocxFormat/Source/DocxFormat/WritingElement.h"
#include "../../../
../
Common/DocxFormat/Source/DocxFormat/WritingElement.h"
class
OOXMathReader
{
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXShapeReader.cpp
View file @
d22fb105
...
...
@@ -32,12 +32,12 @@
#include "OOXShapeReader.h"
#include "OOXTextItemReader.h"
#include "../../../ASCOfficePPTXFile/Editor/Drawing/Shapes/Shape.h"
#include "../../../ASCOfficePPTXFile/PPTXFormat/Logic/SpTree.h"
#include "../../../ASCOfficePPTXFile/PPTXFormat/Logic/Shape.h"
#include "../../../ASCOfficePPTXFile/PPTXFormat/Logic/Colors/SchemeClr.h"
#include "../../../
../
ASCOfficePPTXFile/Editor/Drawing/Shapes/Shape.h"
#include "../../../
../
ASCOfficePPTXFile/PPTXFormat/Logic/SpTree.h"
#include "../../../
../
ASCOfficePPTXFile/PPTXFormat/Logic/Shape.h"
#include "../../../
../
ASCOfficePPTXFile/PPTXFormat/Logic/Colors/SchemeClr.h"
#include "../../../ASCOfficeOdfFile/src/odf/svg_parser.h"
#include "../../../
../
ASCOfficeOdfFile/src/odf/svg_parser.h"
#include <boost/algorithm/string.hpp>
#ifndef RGB
...
...
ASCOfficeTxtFile/TxtXmlFormatLib/Win32/TxtXmlFormatLib.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
D:\WORK\AVS\Sources\TeamlabOffice\branches\Docx2DoctConverter\ServerComponents\Common\DocxFormat\Source\DocxFormat;"D:\WORK\AVS\Sources\TeamlabOffice\branches\Docx2DoctConverter\ServerComponents\DesktopEditor\freetype-2.5.2\include"
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"WIN32;_DEBUG;_LIB;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
@@ -107,7 +107,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
D:\WORK\AVS\Sources\TeamlabOffice\branches\Docx2DoctConverter\ServerComponents\Common\DocxFormat\Source\DocxFormat;"D:\WORK\AVS\Sources\TeamlabOffice\branches\Docx2DoctConverter\ServerComponents\DesktopEditor\freetype-2.5.2\include"
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"WIN32;_DEBUG;_LIB;USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
Common/DocxFormat/Projects/DocxFormat2005.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
.\..\Source\XML\libxml2\XML\include;.\..\Source\Utility;.\..\Source\XML;.\..\Source\Common;..\..\..\..\..\Redist;..\..\..\..\..\..\ASCOfficeOdtFile\Source\OfficeSvmFile;.\..\Source\Base;.\..\Source\SystemUtility
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
@@ -111,7 +111,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
"
.\..\Source\XML\libxml2\XML\include
"
AdditionalIncludeDirectories=
""
PreprocessorDefinitions=
"USE_LITE_READER;_USE_XMLLITE_READER_;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
Common/DocxFormat/Source/DocxFormat/File.h
View file @
d22fb105
...
...
@@ -34,7 +34,6 @@
#define OOX_FILE_INCLUDE_H_
#include "../XML/XmlSimple.h"
#include "../SystemUtility/SystemUtility.h"
#include "FileType.h"
#include "ContentTypes.h"
...
...
X2tConverter/test/win32Test/X2tTest.vcproj
View file @
d22fb105
...
...
@@ -43,7 +43,7 @@
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
AdditionalIncludeDirectories=
""../../../DesktopEditor/agg-2.4/include";
"C:\__Work\core\DesktopEditor\agg-2.4\include"
"
AdditionalIncludeDirectories=
""../../../DesktopEditor/agg-2.4/include";
../../../DesktopEditor/xml/build/vs2005;../../../DesktopEditor/xml/libxml2/include
"
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;PPTX_DEF;PPT_DEF;ENABLE_PPT_TO_PPTX_CONVERT;AVS_USE_CONVERT_PPTX_TOCUSTOM_VML;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
...
...
XlsxSerializerCom/Common/BinReaderWriterDefines.h
View file @
d22fb105
...
...
@@ -194,6 +194,10 @@ namespace BinXlsxRW
DdeLink
=
11
,
VbaProject
=
12
};}
namespace
c_oSerWorkbookVbaProjectTypes
{
enum
c_oSerWorkbookVbaProjectTypes
{
Name
=
0
};}
namespace
c_oSerWorkbookPrTypes
{
enum
c_oSerWorkbookPrTypes
{
Date1904
=
0
,
...
...
XlsxSerializerCom/Reader/BinaryWriter.h
View file @
d22fb105
...
...
@@ -1523,11 +1523,13 @@ namespace BinXlsxRW
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
smart_ptr
<
OOX
::
File
>
v
baProject
=
workbook
.
Get
(
OOX
::
FileTypes
::
VbaProject
);
if
(
v
baProject
.
IsInit
())
smart_ptr
<
OOX
::
File
>
fileV
baProject
=
workbook
.
Get
(
OOX
::
FileTypes
::
VbaProject
);
if
(
fileV
baProject
.
IsInit
())
{
nCurPos
=
m_oBcw
.
WriteItemStart
(
c_oSerWorkbookTypes
::
VbaProject
);
WriteVbaProject
(
vbaProject
.
smart_dynamic_cast
<
OOX
::
VbaProject
>
());
smart_ptr
<
OOX
::
VbaProject
>
vbaProject
=
fileVbaProject
.
smart_dynamic_cast
<
OOX
::
VbaProject
>
();
WriteVbaProject
(
vbaProject
);
m_oBcw
.
WriteItemWithLengthEnd
(
nCurPos
);
}
};
...
...
@@ -1974,9 +1976,9 @@ namespace BinXlsxRW
{
std
::
wstring
file_name
=
fileVbaProject
->
filename
().
GetFilename
();
m_oBcw
.
m_oStream
.
WriteBYTE
(
NSBinPptxRW
::
g_nodeAttributeStart
);
m_oBcw
.
m_oStream
.
WriteString
1
(
0
,
file_name
);
m_oBcw
.
m_oStream
.
WriteBYTE
(
NSBinPptxRW
::
g_nodeAttributeEnd
);
m_oBcw
.
m_oStream
.
WriteBYTE
(
c_oSerWorkbookVbaProjectTypes
::
Name
);
m_oBcw
.
m_oStream
.
WriteString
W
(
file_name
);
//... todooo write parsing vba project
//copy file bin
...
...
XlsxSerializerCom/Writer/BinaryReader.h
View file @
d22fb105
...
...
@@ -2102,18 +2102,20 @@ namespace BinXlsxRW {
int
ReadVbaProject
(
BYTE
type
,
long
length
,
void
*
poResult
)
{
int
res
=
c_oSerConstants
::
ReadOk
;
if
(
c_oSerWorkbook
Types
::
VbaProject
==
type
)
if
(
c_oSerWorkbook
VbaProjectTypes
::
Name
==
type
)
{
std
::
wstring
file_name
=
m_oBufferedStream
.
GetString
3
(
length
);
std
::
wstring
file_name
=
m_oBufferedStream
.
GetString
4
(
length
);
OOX
::
CPath
inputPath
=
m_oBufferedStream
.
m_strFolder
+
FILE_SEPARATOR_STR
+
_T
(
"media"
)
+
FILE_SEPARATOR_STR
+
file_name
;
OOX
::
CPath
outputPath
=
m_sDestinationDir
+
FILE_SEPARATOR_STR
+
_T
(
"xl"
)
+
FILE_SEPARATOR_STR
+
_T
(
"vbaProject.bin"
);
NSFile
::
CFileBinary
::
Copy
(
inputPath
.
GetPath
(),
outputPath
.
GetPath
());
smart_ptr
<
OOX
::
VbaProject
>
oFile
;
oFile
->
set_filename
(
outputPath
);
const
OOX
::
RId
oRId
=
m_oWorkbook
.
Add
(
oFile
.
smart_dynamic_cast
<
OOX
::
File
>
());
smart_ptr
<
OOX
::
VbaProject
>
oFileVbaProject
(
new
OOX
::
VbaProject
());
oFileVbaProject
->
set_filename
(
outputPath
.
GetPath
());
smart_ptr
<
OOX
::
File
>
oFile
=
oFileVbaProject
.
smart_dynamic_cast
<
OOX
::
File
>
();
const
OOX
::
RId
oRId
=
m_oWorkbook
.
Add
(
oFile
);
return
res
;
...
...
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