src/cm/media/js/client/f_printDialog.js
changeset 433 056d92bffb23
parent 341 053551f213fb
child 434 734c135fb553
equal deleted inserted replaced
432:aad07a378d44 433:056d92bffb23
     5 gFormats = [{'actions':['print'], 'extension':'html', 'label': gettext('print from the browser')},
     5 gFormats = [{'actions':['print'], 'extension':'html', 'label': gettext('print from the browser')},
     6             {'actions':['export'], 'extension':'html', 'label': gettext('download html file (.html)')},
     6             {'actions':['export'], 'extension':'html', 'label': gettext('download html file (.html)')},
     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)')},
       
    12             {'actions':['print', 'export'], 'extension':'docx', 'label': gettext('download microsoft word file (.docx)')}] ;
    11 
    13 
    12 
    14 
    13 gActions = {'print':{'dialogTitle':gettext('Print text'), 'chooseFormatLabel':gettext('How do you want to print?'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}, 
    15 gActions = {'print':{'dialogTitle':gettext('Print text'), 'chooseFormatLabel':gettext('How do you want to print?'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}, 
    14       'export':{'dialogTitle':gettext('Export text'), 'chooseFormatLabel':gettext('Choose file format'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}} ; 
    16       'export':{'dialogTitle':gettext('Export text'), 'chooseFormatLabel':gettext('Choose file format'), 'defaultMethod':'pdf', 'defaultWithColors':"no", 'defaultWhichComments':'all'}} ; 
    15 gCurrentAction = null ; 
    17 gCurrentAction = null ;