summaryrefslogtreecommitdiffstats
path: root/filters/generic_wrapper
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 16:56:40 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 16:56:40 -0500
commit910a61f9423d69871c2ef9ca8a0d7ace32474f93 (patch)
tree794bd468068d2616d05878f58b0786b07ceff8d9 /filters/generic_wrapper
parent420112343c04d209e40c6f03f492cdb6154f70fb (diff)
downloadkoffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.tar.gz
koffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.zip
Update XDG information in support of bug report 892.
Diffstat (limited to 'filters/generic_wrapper')
-rw-r--r--filters/generic_wrapper/README6
-rw-r--r--filters/generic_wrapper/generic_filter.cc8
-rw-r--r--filters/generic_wrapper/generic_filter.desktop8
3 files changed, 11 insertions, 11 deletions
diff --git a/filters/generic_wrapper/README b/filters/generic_wrapper/README
index 102f7a30..16a8a907 100644
--- a/filters/generic_wrapper/README
+++ b/filters/generic_wrapper/README
@@ -14,8 +14,8 @@ Name=My cool filter in Perl
Type=Service
ServiceTypes=KOfficeGenericFilter
Exec=my_filter.pl
-X-KDE-Wrapper-Export=<MIME type of the exported file>
-X-KDE-Wrapper-Import=<MIME type of the imported file>
+X-TDE-Wrapper-Export=<MIME type of the exported file>
+X-TDE-Wrapper-Import=<MIME type of the imported file>
- write a suitable Makefile.am
@@ -31,7 +31,7 @@ filters/kpresenter/magicpoint.
The only shortcoming at the moment is that you have to add these MIME
types to filters/generic_wrapper/generic_filter.desktop file (in the
-fields X-KDE-Export resp. X-KDE-Import).
+fields X-TDE-Export resp. X-TDE-Import).
---
That's it, have fun :-)
diff --git a/filters/generic_wrapper/generic_filter.cc b/filters/generic_wrapper/generic_filter.cc
index 16b617a6..c36715e2 100644
--- a/filters/generic_wrapper/generic_filter.cc
+++ b/filters/generic_wrapper/generic_filter.cc
@@ -55,10 +55,10 @@ KoFilter::ConversionStatus GenericFilter::convert( const TQCString &from, const
for (it=offers.begin(); it!=offers.end(); ++it)
{
kdDebug() << "Got a filter script, exec: " << (*it)->exec() <<
- ", imports: " << (*it)->property("X-KDE-Wrapper-Import").toString() <<
- ", exports: " << (*it)->property("X-KDE-Wrapper-Export").toString() << endl;
- if ((*it)->property("X-KDE-Wrapper-Import").toCString()==from
- && (*it)->property("X-KDE-Wrapper-Export").toCString()==to)
+ ", imports: " << (*it)->property("X-TDE-Wrapper-Import").toString() <<
+ ", exports: " << (*it)->property("X-TDE-Wrapper-Export").toString() << endl;
+ if ((*it)->property("X-TDE-Wrapper-Import").toCString()==from
+ && (*it)->property("X-TDE-Wrapper-Export").toCString()==to)
{
m_exec=(*it)->exec();
m_from=from;
diff --git a/filters/generic_wrapper/generic_filter.desktop b/filters/generic_wrapper/generic_filter.desktop
index 1a7c6961..a22b6fa9 100644
--- a/filters/generic_wrapper/generic_filter.desktop
+++ b/filters/generic_wrapper/generic_filter.desktop
@@ -50,9 +50,9 @@ Name[uz]=KOffice umumiy filteri
Name[uz@cyrillic]=KOffice умумий филтери
Name[zh_CN]=KOffice 通用过滤器
Name[zh_TW]=通用 KOffice 過濾器
-X-KDE-Export=application/x-kpresenter
-X-KDE-Import=application/x-magicpoint
-X-KDE-Weight=1
+X-TDE-Export=application/x-kpresenter
+X-TDE-Import=application/x-magicpoint
+X-TDE-Weight=1
Type=Service
ServiceTypes=KOfficeFilter
-X-KDE-Library=libgenerickofilter
+X-TDE-Library=libgenerickofilter