tdf#140781 Add PDF + XSLT import API names for CLI

* amended python script
* regenerated convert Help page

Change-Id: I4891491d87b4b21c2d103b9df2adb03a21aff790
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124787
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
Olivier Hallot
2021-11-06 05:50:57 -03:00
parent 5ee4d72936
commit 982f985d2a
2 changed files with 249 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if not os.path.exists(registry_dir):
print(f"{registry_dir} does not exist. Make sure you have built the core repo before running this script")
sys.exit(1)
modules = ["writer.xcd","calc.xcd","impress.xcd","draw.xcd","math.xcd","base.xcd","graphicfilter.xcd"]
modules = ["writer.xcd","calc.xcd","impress.xcd","draw.xcd","math.xcd","base.xcd","graphicfilter.xcd","pdfimport.xcd","xsltfilter.xcd"]
def gen_id(apiname):
'''This function accepts module name and an API Name of the filter, and then generate

View File

@ -1750,5 +1750,253 @@
</tablerow>
</table>
</section>
<section id="filterspdfimport">
<bookmark xml-lang="en-US" branch="index" id="bm_000pdfimport">
<bookmark_value>command line document conversion; filters for PDFIMPORT</bookmark_value>
</bookmark>
<h2 id="hd_000pdfimport">Filters for PDFIMPORT</h2>
<table id="filternames_tbl_pdfimport">
<tablerow>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_111pdfimport">
<embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>
</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_apiname_pdfimport">
<embedvar href="text/shared/guide/convertfilters.xhp#apiname" markup="ignore"/>
</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_222pdfimport">
<embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>
</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_draw_pdf_import">PDF - Portable Document Format (Draw)</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_draw_pdf_import" localize="false">&quot;draw_pdf_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_draw_pdf_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_impress_pdf_import">PDF - Portable Document Format (Impress)</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_impress_pdf_import" localize="false">&quot;impress_pdf_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_impress_pdf_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_writer_pdf_import">PDF - Portable Document Format (Writer)</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_writer_pdf_import" localize="false">&quot;writer_pdf_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_writer_pdf_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_writer_pdf_addstream_import">PDF - Portable Document Format</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_writer_pdf_addstream_import" localize="false">&quot;writer_pdf_addstream_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_writer_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_impress_pdf_addstream_import">PDF - Portable Document Format</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_impress_pdf_addstream_import" localize="false">&quot;impress_pdf_addstream_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_impress_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_draw_pdf_addstream_import">PDF - Portable Document Format</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_draw_pdf_addstream_import" localize="false">&quot;draw_pdf_addstream_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_draw_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_calc_pdf_addstream_import">PDF - Portable Document Format</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_calc_pdf_addstream_import" localize="false">&quot;calc_pdf_addstream_import&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_calc_pdf_addstream_import" localize="false">application/pdf (pdf)</paragraph>
</tablecell>
</tablerow>
</table>
</section>
<section id="filtersxsltfilter">
<bookmark xml-lang="en-US" branch="index" id="bm_000xsltfilter">
<bookmark_value>command line document conversion; filters for XSLTFILTER</bookmark_value>
</bookmark>
<h2 id="hd_000xsltfilter">Filters for XSLTFILTER</h2>
<table id="filternames_tbl_xsltfilter">
<tablerow>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_111xsltfilter">
<embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>
</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_apiname_xsltfilter">
<embedvar href="text/shared/guide/convertfilters.xhp#apiname" markup="ignore"/>
</paragraph>
</tablecell>
<tablecell>
<paragraph role="tablehead" localize="false" id="hd_222xsltfilter">
<embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>
</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_ADO_Rowset_XML">ADO Rowset XML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_ADO_Rowset_XML" localize="false">&quot;ADO Rowset XML&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_ADO_Rowset_XML" localize="false">None (xml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_DocBook_File">DocBook</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_DocBook_File" localize="false">&quot;DocBook File&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_DocBook_File" localize="false">application/docbook+xml (xml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_MS_Excel_2003_XML">Microsoft Excel 2003 XML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_MS_Excel_2003_XML" localize="false">&quot;MS Excel 2003 XML&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_MS_Excel_2003_XML" localize="false">None (xml xls)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_MS_Word_2003_XML">Word 2003 XML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_MS_Word_2003_XML" localize="false">&quot;MS Word 2003 XML&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_MS_Word_2003_XML" localize="false">None (xml doc)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Calc_File">XHTML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Calc_File" localize="false">&quot;XHTML Calc File&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Calc_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Draw_File">XHTML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Draw_File" localize="false">&quot;XHTML Draw File&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Draw_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Impress_File">XHTML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Impress_File" localize="false">&quot;XHTML Impress File&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Impress_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_XHTML_Writer_File">XHTML</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_XHTML_Writer_File" localize="false">&quot;XHTML Writer File&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_XHTML_Writer_File" localize="false">application/xhtml+xml (html xhtml)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_UOF_text">Unified Office Format text</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_UOF_text" localize="false">&quot;UOF text&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_UOF_text" localize="false">None (uot;uof)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_UOF_spreadsheet">Unified Office Format spreadsheet</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_UOF_spreadsheet" localize="false">&quot;UOF spreadsheet&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_UOF_spreadsheet" localize="false">None (uos;uof)</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="table_font_small paragraph" id="FilterName_UOF_presentation">Unified Office Format presentation</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="APIName_UOF_presentation" localize="false">&quot;UOF presentation&quot;</paragraph>
</tablecell>
<tablecell>
<paragraph role="table_font_small paragraph" id="MediaType_UOF_presentation" localize="false">None (uop;uof)</paragraph>
</tablecell>
</tablerow>
</table>
</section>
</body>
</helpdocument>