Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
cloudooo
Commits
6629837c
Commit
6629837c
authored
Feb 12, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In LibreOffice 3.6, ExportExtension is available in filter dict.
parent
5fb2c106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cloudooo/handler/ooo/mimemapper.py
cloudooo/handler/ooo/mimemapper.py
+3
-1
No files found.
cloudooo/handler/ooo/mimemapper.py
View file @
6629837c
...
...
@@ -168,7 +168,9 @@ class MimeMapper(object):
if
filter_type
not
in
self
.
_mimetype_by_filter_type
:
self
.
_mimetype_by_filter_type
[
filter_type
]
=
mimetype
# for export filters, one extension is enough.
for
ext
in
filter_extension_list
[:
1
]:
# In LibreOffice 3.6, ExportExtension is available.
export_extension
=
value
.
get
(
'ExportExtension'
,
filter_extension_list
[
0
])
for
ext
in
[
export_extension
,]:
# Add (extension, ui_name) tuple by document_type.
# e.g {'com.sun.star.text.TextDocument': [('txt', 'Text'),]}
local_extension_list
=
self
.
_extension_list_by_type
.
setdefault
(
document_service_str
,
[])
...
...
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