Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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