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
1d55b122
Commit
1d55b122
authored
Dec 23, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ac959e32
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
399 additions
and
610 deletions
+399
-610
ASCOfficePPTXFile/Editor/imagemanager.h
ASCOfficePPTXFile/Editor/imagemanager.h
+6
-8
Common/DocxFormat/Source/SystemUtility/File.h
Common/DocxFormat/Source/SystemUtility/File.h
+393
-602
No files found.
ASCOfficePPTXFile/Editor/imagemanager.h
View file @
1d55b122
...
...
@@ -65,9 +65,7 @@ namespace NSShapeImageGen
static
bool
_CopyFile
(
std
::
wstring
strExists
,
std
::
wstring
strNew
,
LPVOID
lpFunc
,
LPVOID
lpData
)
{
//::DeleteFile(strNew);
//return ::CopyFileEx(strExists, strNew, lpFunc, lpData, false, 0);
return
CDirectory
::
CopyFile
(
strExists
,
strNew
,
lpFunc
,
lpData
);
return
CDirectory
::
CopyFile
(
strExists
,
strNew
);
}
enum
ImageType
...
...
@@ -369,7 +367,7 @@ namespace NSShapeImageGen
oInfo
.
m_eType
=
itJPG
;
OOX
::
CPath
pathSaveItem
=
m_strDstMedia
+
FILE_SEPARATOR_STR
+
oInfo
.
GetPath2
();
CDirectory
::
CopyFile
(
strFileSrc
,
pathSaveItem
.
GetPath
()
,
NULL
,
NULL
);
CDirectory
::
CopyFile
(
strFileSrc
,
pathSaveItem
.
GetPath
());
return
true
;
}
...
...
@@ -382,7 +380,7 @@ namespace NSShapeImageGen
oInfo
.
m_eType
=
itPNG
;
OOX
::
CPath
pathSaveItem
=
m_strDstMedia
+
FILE_SEPARATOR_STR
+
oInfo
.
GetPath2
();
CDirectory
::
CopyFile
(
strFileSrc
,
pathSaveItem
.
GetPath
()
,
NULL
,
NULL
);
CDirectory
::
CopyFile
(
strFileSrc
,
pathSaveItem
.
GetPath
());
return
true
;
}
...
...
@@ -408,7 +406,7 @@ namespace NSShapeImageGen
strSaveItem
=
m_strDstMedia
+
FILE_SEPARATOR_STR
+
strSaveItem
+
pathOriginal
.
GetExtention
();
CDirectory
::
CopyFile
(
strFileSrc
,
strSaveItem
,
NULL
,
NULL
);
CDirectory
::
CopyFile
(
strFileSrc
,
strSaveItem
);
}
}
void
SaveImage
(
CBgraFrame
&
oBgraFrame
,
CImageInfo
&
oInfo
,
LONG
__width
,
LONG
__height
)
...
...
@@ -524,14 +522,14 @@ namespace NSShapeImageGen
if
(
bOle
)
{
std
::
wstring
sCopyOlePath
=
strSaveItemWE
+
L".bin"
;
CDirectory
::
CopyFile
(
strOleFile
,
sCopyOlePath
,
NULL
,
NULL
);
CDirectory
::
CopyFile
(
strOleFile
,
sCopyOlePath
);
}
if
(
bVector
)
{
//copy source vector image
OOX
::
CPath
pathSaveItem
=
strSaveDir
+
oInfo
.
GetPath2
();
CDirectory
::
CopyFile
(
strFileName
,
pathSaveItem
.
GetPath
(),
NULL
,
NULL
);
CDirectory
::
CopyFile
(
strFileName
,
pathSaveItem
.
GetPath
()
);
::
MetaFile
::
CMetaFile
oMetafile
(
m_pFontManager
->
m_pApplication
);
if
(
oMetafile
.
LoadFromFile
(
strFileName
.
c_str
()))
...
...
Common/DocxFormat/Source/SystemUtility/File.h
View file @
1d55b122
This diff is collapsed.
Click to expand it.
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