mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-20 12:52:26 +12:00
Adds OPML format to pandoc exporter
This commit is contained in:
parent
ab9c95cc6d
commit
bae8c2f570
|
@ -10,7 +10,7 @@ from manuskript.exporter.basic import basicExporter, basicFormat
|
|||
from manuskript.exporter.pandoc.HTML import HTML
|
||||
from manuskript.exporter.pandoc.PDF import PDF
|
||||
from manuskript.exporter.pandoc.outputFormats import ePub, OpenDocument, DocX
|
||||
from manuskript.exporter.pandoc.plainText import reST, markdown, latex
|
||||
from manuskript.exporter.pandoc.plainText import reST, markdown, latex, OPML
|
||||
from manuskript.functions import mainWindow
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ class pandocExporter(basicExporter):
|
|||
DocX(self),
|
||||
PDF(self),
|
||||
reST(self),
|
||||
|
||||
OPML(self),
|
||||
]
|
||||
|
||||
def version(self):
|
||||
|
|
|
@ -36,3 +36,16 @@ class latex(abstractPlainText):
|
|||
icon = "text-x-tex"
|
||||
exportFilter = "Tex files (*.tex);; Any files (*)"
|
||||
|
||||
|
||||
class OPML(abstractPlainText):
|
||||
name = "OPML"
|
||||
description = qApp.translate("Export", """The purpose of this format is to provide a way to exchange information
|
||||
between outliners and Internet services that can be browsed or controlled
|
||||
through an outliner.""")
|
||||
|
||||
exportVarName = "lastPandocOPML"
|
||||
toFormat = "opml"
|
||||
icon = "text-x-opml+xml"
|
||||
exportFilter = "OPML files (*.opml);; Any files (*)"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue