7 {'actions':['print', 'export'], 'extension':'markdown', 'label': gettext('download markdown file (.mkd)')}, |
7 {'actions':['print', 'export'], 'extension':'markdown', 'label': gettext('download markdown file (.mkd)')}, |
8 {'actions':['print', 'export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')}, |
8 {'actions':['print', 'export'], 'extension':'pdf', 'label': gettext('download portable object format file (.pdf)')}, |
9 {'actions':['print', 'export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')}, |
9 {'actions':['print', 'export'], 'extension':'latex', 'label': gettext('download latex file (.tex)')}, |
10 {'actions':['print', 'export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')}, |
10 {'actions':['print', 'export'], 'extension':'odt', 'label': gettext('download open document file (.odt)')}, |
11 {'actions':['print', 'export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')}, |
11 {'actions':['print', 'export'], 'extension':'doc', 'label': gettext('download microsoft word file (.doc)')}, |
12 {'actions':['print', 'export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')}, |
12 {'actions':['print', 'export'], 'extension':'docx', 'label': gettext('download microsoft word 2007 file (.docx)')}]; |
13 {'actions':['print', 'export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')}] ; |
|
14 |
13 |
|
14 var pandoc_version_ary = sv_pandoc_version.split('.'); |
|
15 if (parseInt(pandoc_version_ary[0]) > 1 || (parseInt(pandoc_version_ary[0]) == 1 && parseInt(pandoc_version_ary[1]) > 8)) { |
|
16 gFormats.push({'actions':['print', 'export'], 'extension':'epub', 'label': gettext('download ebook (.epub)')}); |
|
17 } |
15 |
18 |
16 gActions = {'print':{'dialogTitle':gettext('Print text'), 'chooseFormatLabel':gettext('How do you want to print?'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}, |
19 gActions = {'print':{'dialogTitle':gettext('Print text'), 'chooseFormatLabel':gettext('How do you want to print?'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}, |
17 'export':{'dialogTitle':gettext('Export text'), 'chooseFormatLabel':gettext('Choose file format'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}} ; |
20 'export':{'dialogTitle':gettext('Export text'), 'chooseFormatLabel':gettext('Choose file format'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}} ; |
18 gCurrentAction = null ; |
21 gCurrentAction = null ; |
19 |
22 |