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
d3d31804
Commit
d3d31804
authored
Sep 13, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fa9c096f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
37 deletions
+39
-37
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
+39
-37
No files found.
Common/DocxFormat/Source/DocxFormat/ContentTypes.h
View file @
d3d31804
...
...
@@ -49,43 +49,45 @@ namespace OOX
public:
CExtensionTable
()
{
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"bmp"
),
_T
(
"image/bmp"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"gif"
),
_T
(
"image/gif"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"png"
),
_T
(
"image/png"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"tif"
),
_T
(
"image/tiff"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"tiff"
),
_T
(
"image/tiff"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"jpeg"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"jpg"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"jpe"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"jfif"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"rels"
),
_T
(
"application/vnd.openxmlformats-package.relationships+xml"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"bin"
),
_T
(
"application/vnd.openxmlformats-officedocument.oleObject"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"xml"
),
_T
(
"application/xml"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"emf"
),
_T
(
"image/x-emf"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"emz"
),
_T
(
"image/x-emz"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"wmf"
),
_T
(
"image/x-wmf"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"svm"
),
_T
(
"image/svm"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"wav"
),
_T
(
"audio/wav"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"wma"
),
_T
(
"audio/x-wma"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"m4a"
),
_T
(
"audio/unknown"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"mp3"
),
_T
(
"audio/mpeg"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"mp4"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"mov"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"avi"
),
_T
(
"video/avi"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"wmv"
),
_T
(
"video/x-wmv"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"xls"
),
_T
(
"application/vnd.ms-excel"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"xlsm"
),
_T
(
"application/vnd.ms-excel.sheet.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"xlsb"
),
_T
(
"application/vnd.ms-excel.sheet.binary.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"xlsx"
),
_T
(
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"ppt"
),
_T
(
"application/vnd.ms-powerpoint"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"pptm"
),
_T
(
"application/vnd.ms-powerpoint.presentation.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"pptx"
),
_T
(
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"sldm"
),
_T
(
"application/vnd.ms-powerpoint.slide.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"sldx"
),
_T
(
"application/vnd.openxmlformats-officedocument.presentationml.slide"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"doc"
),
_T
(
"application/msword"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"docm"
),
_T
(
"aapplication/vnd.ms-word.document.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"docx"
),
_T
(
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
)));
m_mTable
.
insert
(
std
::
pair
<
std
::
wstring
,
std
::
wstring
>
(
_T
(
"vml"
),
_T
(
"application/vnd.openxmlformats-officedocument.vmlDrawing"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"bmp"
),
_T
(
"image/bmp"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"gif"
),
_T
(
"image/gif"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"png"
),
_T
(
"image/png"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"tif"
),
_T
(
"image/tiff"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"tiff"
),
_T
(
"image/tiff"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"jpeg"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"jpg"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"jpe"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"jfif"
),
_T
(
"image/jpeg"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"rels"
),
_T
(
"application/vnd.openxmlformats-package.relationships+xml"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"bin"
),
_T
(
"application/vnd.openxmlformats-officedocument.oleObject"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"xml"
),
_T
(
"application/xml"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"emf"
),
_T
(
"image/x-emf"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"emz"
),
_T
(
"image/x-emz"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"wmf"
),
_T
(
"image/x-wmf"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"svm"
),
_T
(
"image/svm"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"wav"
),
_T
(
"audio/wav"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"wma"
),
_T
(
"audio/x-wma"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"m4a"
),
_T
(
"audio/unknown"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"mp3"
),
_T
(
"audio/mpeg"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"mp4"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"mov"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"m4v"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"mkv"
),
_T
(
"video/unknown"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"avi"
),
_T
(
"video/avi"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"wmv"
),
_T
(
"video/x-wmv"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"xls"
),
_T
(
"application/vnd.ms-excel"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"xlsm"
),
_T
(
"application/vnd.ms-excel.sheet.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"xlsb"
),
_T
(
"application/vnd.ms-excel.sheet.binary.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"xlsx"
),
_T
(
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"ppt"
),
_T
(
"application/vnd.ms-powerpoint"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"pptm"
),
_T
(
"application/vnd.ms-powerpoint.presentation.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"pptx"
),
_T
(
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"sldm"
),
_T
(
"application/vnd.ms-powerpoint.slide.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"sldx"
),
_T
(
"application/vnd.openxmlformats-officedocument.presentationml.slide"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"doc"
),
_T
(
"application/msword"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"docm"
),
_T
(
"aapplication/vnd.ms-word.document.macroEnabled.12"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"docx"
),
_T
(
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
)));
m_mTable
.
insert
(
std
::
make_pair
(
_T
(
"vml"
),
_T
(
"application/vnd.openxmlformats-officedocument.vmlDrawing"
)));
}
const
std
::
wstring
operator
[]
(
const
std
::
wstring
&
sExtension
)
const
{
...
...
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