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
c6ed59a7
Commit
c6ed59a7
authored
Jan 24, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EmfFile - fix emf from users file xlsx
parent
1d331571
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
753 additions
and
9 deletions
+753
-9
DesktopEditor/raster/Metafile/Emf/EmfFile.cpp
DesktopEditor/raster/Metafile/Emf/EmfFile.cpp
+7
-7
DesktopEditor/raster/Metafile/MetaFileTest/MetaFileTest.sln
DesktopEditor/raster/Metafile/MetaFileTest/MetaFileTest.sln
+561
-0
DesktopEditor/raster/Metafile/MetaFileTest/MetaFileTest.vcproj
...opEditor/raster/Metafile/MetaFileTest/MetaFileTest.vcproj
+183
-0
DesktopEditor/raster/Metafile/TestMain.cpp
DesktopEditor/raster/Metafile/TestMain.cpp
+2
-2
No files found.
DesktopEditor/raster/Metafile/Emf/EmfFile.cpp
View file @
c6ed59a7
...
@@ -970,15 +970,15 @@ namespace MetaFile
...
@@ -970,15 +970,15 @@ namespace MetaFile
return
SetError
();
return
SetError
();
m_oStream
>>
pPen
->
PenStyle
;
m_oStream
>>
pPen
->
PenStyle
;
m_oStream
>>
pPen
->
Width
;
unsigned
int
widthY
=
0
;
m_oStream
>>
widthY
;
if
(
widthY
&&
!
pPen
->
Width
)
unsigned
int
widthX
,
widthY
;
pPen
->
Width
=
widthY
;
m_oStream
>>
widthX
>>
widthY
;
if
(
!
pPen
->
Width
)
if
(
!
widthX
)
pPen
->
Width
=
1
;
{
//emf from Bonetti Martínez. cálculo estructural de pilotes y pilas.xlsx
widthX
=
1
/
m_pDC
->
GetPixelWidth
();
}
pPen
->
Width
=
widthX
;
m_oStream
>>
pPen
->
Color
;
m_oStream
>>
pPen
->
Color
;
m_oPlayer
.
RegisterObject
(
ulPenIndex
,
(
CEmfObjectBase
*
)
pPen
);
m_oPlayer
.
RegisterObject
(
ulPenIndex
,
(
CEmfObjectBase
*
)
pPen
);
...
...
DesktopEditor/raster/Metafile/MetaFileTest/MetaFileTest.sln
0 → 100644
View file @
c6ed59a7
This diff is collapsed.
Click to expand it.
DesktopEditor/raster/Metafile/MetaFileTest/MetaFileTest.vcproj
0 → 100644
View file @
c6ed59a7
<?xml version="1.0" encoding="windows-1251"?>
<VisualStudioProject
ProjectType=
"Visual C++"
Version=
"8,00"
Name=
"MetaFileTest"
ProjectGUID=
"{E31E1A7F-08BF-49BC-BCE8-12006C22685C}"
RootNamespace=
"MetaFileTest"
Keyword=
"Win32Proj"
>
<Platforms>
<Platform
Name=
"Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name=
"Debug|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"1"
>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
Optimization=
"0"
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE"
MinimalRebuild=
"true"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"3"
UsePrecompiledHeader=
"0"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"4"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
LinkIncremental=
"2"
GenerateDebugInformation=
"true"
SubSystem=
"1"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name=
"Release|Win32"
OutputDirectory=
"$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory=
"$(ConfigurationName)"
ConfigurationType=
"1"
CharacterSet=
"1"
WholeProgramOptimization=
"1"
>
<Tool
Name=
"VCPreBuildEventTool"
/>
<Tool
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCXMLDataGeneratorTool"
/>
<Tool
Name=
"VCWebServiceProxyGeneratorTool"
/>
<Tool
Name=
"VCMIDLTool"
/>
<Tool
Name=
"VCCLCompilerTool"
PreprocessorDefinitions=
"WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary=
"2"
UsePrecompiledHeader=
"0"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
DebugInformationFormat=
"3"
/>
<Tool
Name=
"VCManagedResourceCompilerTool"
/>
<Tool
Name=
"VCResourceCompilerTool"
/>
<Tool
Name=
"VCPreLinkEventTool"
/>
<Tool
Name=
"VCLinkerTool"
LinkIncremental=
"1"
GenerateDebugInformation=
"true"
SubSystem=
"1"
OptimizeReferences=
"2"
EnableCOMDATFolding=
"2"
TargetMachine=
"1"
/>
<Tool
Name=
"VCALinkTool"
/>
<Tool
Name=
"VCManifestTool"
/>
<Tool
Name=
"VCXDCMakeTool"
/>
<Tool
Name=
"VCBscMakeTool"
/>
<Tool
Name=
"VCFxCopTool"
/>
<Tool
Name=
"VCAppVerifierTool"
/>
<Tool
Name=
"VCWebDeploymentTool"
/>
<Tool
Name=
"VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<File
RelativePath=
"..\TestMain.cpp"
>
</File>
<File
RelativePath=
"..\..\..\..\build\lib\win_32\UnicodeConverter.lib"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
DesktopEditor/raster/Metafile/TestMain.cpp
View file @
c6ed59a7
...
@@ -109,9 +109,9 @@ void main()
...
@@ -109,9 +109,9 @@ void main()
oFonts
.
Initialize
();
oFonts
.
Initialize
();
CMetaFile
oMetaFile
(
&
oFonts
);
CMetaFile
oMetaFile
(
&
oFonts
);
ConvertFolder
(
oMetaFile
,
L"D://test//_svm//1//"
,
c_lMetaSvm
);
//
ConvertFolder(oMetaFile, L"D://test//_svm//1//", c_lMetaSvm);
//ConvertFolder(oMetaFile, L"D://Test Files//Wmf//Test//", c_lMetaWmf);
//ConvertFolder(oMetaFile, L"D://Test Files//Wmf//Test//", c_lMetaWmf);
//ConvertFolder(oMetaFile, L"D://Test Files//Emf//Temp//
", c_lMetaEmf);
ConvertFolder
(
oMetaFile
,
L"D://test//_emf
"
,
c_lMetaEmf
);
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
//_CrtDumpMemoryLeaks();
//_CrtDumpMemoryLeaks();
...
...
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