diff options
author | Jesús Corrius <jcorrius@gmail.com> | 2013-08-12 12:41:48 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-12 11:36:46 +0000 |
commit | cd97b11a33db909318572a27a54305cb4757ba0f (patch) | |
tree | 73eedc8ac55bf8d327807329de2834ce17ea7f94 | |
parent | 00e5ba7fac584b889c06d0250e6fd9d514d50ced (diff) |
Register additional support types on Windows
So Windows knows that LibO is able to open these files formats too.
The option will appear in the "Open With" menu.
Change-Id: Ifb4c4ec975ea5c84b1f18191d74fee0c39684f66
Reviewed-on: https://gerrit.libreoffice.org/5367
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
-rw-r--r-- | scp2/source/calc/registryitem_calc.scp | 4 | ||||
-rw-r--r-- | scp2/source/calc/registryitem_calc.ulf | 6 | ||||
-rw-r--r-- | scp2/source/draw/registryitem_draw.scp | 36 | ||||
-rw-r--r-- | scp2/source/draw/registryitem_draw.ulf | 79 | ||||
-rw-r--r-- | scp2/source/impress/registryitem_impress.scp | 5 | ||||
-rw-r--r-- | scp2/source/impress/registryitem_impress.ulf | 6 | ||||
-rw-r--r-- | scp2/source/writer/registryitem_writer.scp | 7 | ||||
-rw-r--r-- | scp2/source/writer/registryitem_writer.ulf | 9 |
8 files changed, 152 insertions, 0 deletions
diff --git a/scp2/source/calc/registryitem_calc.scp b/scp2/source/calc/registryitem_calc.scp index a99a3f6f4268..96c10d701fef 100644 --- a/scp2/source/calc/registryitem_calc.scp +++ b/scp2/source/calc/registryitem_calc.scp @@ -1253,3 +1253,7 @@ CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xlt, gid_Module_Prg_Calc_MSO_Reg, x CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xltx, gid_Module_Prg_Calc_MSO_Reg, xltx, XLTX, MS_EXCEL_TEMPLATE, 4, scalc.exe, new, Calc ) CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xltm, gid_Module_Prg_Calc_MSO_Reg, xltm, XLTM, MS_EXCEL_TEMPLATE, 4, scalc.exe, new, Calc ) +// registering other supported types + +CONDITIONAL_REGISTER_DOC_EXTENSION( Uos, gid_Module_Prg_Calc_Other_Reg, uos, UOS, UNIFORM_OFFICE_FORMAT_SPREADSHEET, 3, scalc.exe, open, Calc ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Wb2, gid_Module_Prg_Calc_Other_Reg, wb2, WB2, QUATTROPRO_SPREADSHEET, 3, scalc.exe, open, Calc ) diff --git a/scp2/source/calc/registryitem_calc.ulf b/scp2/source/calc/registryitem_calc.ulf index 92722d632320..b7fe2c36609e 100644 --- a/scp2/source/calc/registryitem_calc.ulf +++ b/scp2/source/calc/registryitem_calc.ulf @@ -43,3 +43,9 @@ en-US = "Microsoft Excel 97-2003 Template" [STR_REG_VAL_MS_EXCEL_TEMPLATE] en-US = "Microsoft Excel Template" +[STR_REG_VAL_UNIFORM_OFFICE_FORMAT_SPREADSHEET] +en-US = "Uniform Office Format Spreadsheet" + +[STR_REG_VAL_QUATTROPRO_SPREADSHEET] +en-US = "Lotus Quattro Pro Spreadsheet" + diff --git a/scp2/source/draw/registryitem_draw.scp b/scp2/source/draw/registryitem_draw.scp index 9c7823219fdf..4323024e0b53 100644 --- a/scp2/source/draw/registryitem_draw.scp +++ b/scp2/source/draw/registryitem_draw.scp @@ -1065,4 +1065,40 @@ REGISTER_PROPERTY_HANDLER_FOR_EXTENSION( std ) // CONDITIONAL_REGISTER_DOC_EXTENSION(name,modid, key, cond, disp_name, icon_id, app, default, dox_type) CONDITIONAL_REGISTER_DOC_EXTENSION( Vsd, gid_Module_Prg_Draw_MSO_Reg, vsd, VSD, MS_VISIO_DOCUMENT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Vdx, gid_Module_Prg_Draw_MSO_Reg, vdx, VDX, MS_VISIO_DOCUMENT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Vsdm, gid_Module_Prg_Draw_MSO_Reg, vsdm, VSDM, MS_VISIO_DOCUMENT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Vsdx, gid_Module_Prg_Draw_MSO_Reg, vsdx, VSDX, MS_VISIO_DOCUMENT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Pub, gid_Module_Prg_Draw_MSO_Reg, pub, PUB, MS_PUBLISHER_DOCUMENT, 5, sdraw.exe, open, Draw ) CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Vst, gid_Module_Prg_Draw_MSO_Reg, vst, VST, MS_VISIO_TEMPLATE, 6, sdraw.exe, new, Draw ) + +// registering other supported types + +CONDITIONAL_REGISTER_DOC_EXTENSION( Wpg, gid_Module_Prg_Draw_Other_Reg, wpg, WPG, WORDPERFECT_GRAPHIC_FILE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Dxf, gid_Module_Prg_Draw_Other_Reg, dxf, DXF, AUTOCAD_DRAWING_INTERCHANGE_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Emf, gid_Module_Prg_Draw_Other_Reg, emf, EMF, MS_ENHANCED_METAFILE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Eps, gid_Module_Prg_Draw_Other_Reg, eps, EPS, ENCAPSULATED_POSTSCRIPT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Met, gid_Module_Prg_Draw_Other_Reg, met, MET, OS2_METAFILE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Pct, gid_Module_Prg_Draw_Other_Reg, pct, PCT, MACINTOSH_PICTURE_METAFILE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Wmf, gid_Module_Prg_Draw_Other_Reg, wmf, WMF, MS_WINDOWS_METAFILE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Bmp, gid_Module_Prg_Draw_Other_Reg, bmp, BMP, MS_WINDOWS_BITMAP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Cdr, gid_Module_Prg_Draw_Other_Reg, cdr, CDR, CORELDRAW_FILE_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Cmx, gid_Module_Prg_Draw_Other_Reg, cmx, CMX, COREL_PRESENTATION_EXCHANGE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Gif, gid_Module_Prg_Draw_Other_Reg, gif, GIF, GRAPHICS_INTERCHANGE_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Jpg, gid_Module_Prg_Draw_Other_Reg, jpg, JPG, JOINT_PHOTOGRAPHIC_EXPERTS_GROUP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Jpeg, gid_Module_Prg_Draw_Other_Reg, jpeg, JPEG, JOINT_PHOTOGRAPHIC_EXPERTS_GROUP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Jpe, gid_Module_Prg_Draw_Other_Reg, jpe, JPE, JOINT_PHOTOGRAPHIC_EXPERTS_GROUP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Pbm, gid_Module_Prg_Draw_Other_Reg, pbm, PBM, PORTABLE_BITMAP_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Pcx, gid_Module_Prg_Draw_Other_Reg, pcx, PCX, PERSONAL_COMPUTER_EXCHANGE, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Pgm, gid_Module_Prg_Draw_Other_Reg, pgm, PGM, PORTABLE_GRAYMAP_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Png, gid_Module_Prg_Draw_Other_Reg, png, PNG, PORTABLE_NETWORK_GRAPHICS, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Ppm, gid_Module_Prg_Draw_Other_Reg, ppm, PPM, PORTABLE_PIXMAP_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Psd, gid_Module_Prg_Draw_Other_Reg, psd, PSD, PHOTOSHOP_DOCUMENT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Ras, gid_Module_Prg_Draw_Other_Reg, ras, RAS, SUN_RASTER_GRAPHIC, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Svg, gid_Module_Prg_Draw_Other_Reg, svg, SVG, SCALABLE_VECTOR_GRAPHICS, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Tga, gid_Module_Prg_Draw_Other_Reg, tga, TGA, TRUEVISION_TGA, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Tif, gid_Module_Prg_Draw_Other_Reg, tif, TIF, TAGGED_IMAGE_FILE_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Tiff, gid_Module_Prg_Draw_Other_Reg, tiff, TIFF, TAGGED_IMAGE_FILE_FORMAT, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Xbm, gid_Module_Prg_Draw_Other_Reg, xbm, XBM, X_BITMAP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Xpm, gid_Module_Prg_Draw_Other_Reg, xpm, XPM, X_PIXMAP, 5, sdraw.exe, open, Draw ) +CONDITIONAL_REGISTER_DOC_EXTENSION( PCD, gid_Module_Prg_Draw_Other_Reg, pcd, PCD, KODAK_PHOTO_CD_IMAGE, 5, sdraw.exe, open, Draw ) + diff --git a/scp2/source/draw/registryitem_draw.ulf b/scp2/source/draw/registryitem_draw.ulf index 819c76a2eff2..f122dc7daf6d 100644 --- a/scp2/source/draw/registryitem_draw.ulf +++ b/scp2/source/draw/registryitem_draw.ulf @@ -36,3 +36,82 @@ en-US = "Microsoft Visio 2000/XP/2003 Document" [STR_REG_VAL_MS_VISIO_TEMPLATE] en-US = "Microsoft Visio 2000/XP/2003 Template" + +[STR_REG_VAL_MS_PUBLISHER_DOCUMENT] +en-US = "Microsoft Publisher Document" + +[STR_REG_VAL_WORDPERFECT_GRAPHIC_FILE] +en-US = "WordPerfect Graphic File" + +[STR_REG_VAL_AUTOCAD_DRAWING_INTERCHANGE_FORMAT] +en-US = "AutoCAD File" + +[STR_REG_VAL_MS_ENHANCED_METAFILE] +en-US = "Microsoft Enhanced Metafile" + +[STR_REG_VAL_ENCAPSULATED_POSTSCRIPT] +en-US = "Encapsulated PostScript File" + +[STR_REG_VAL_OS2_METAFILE] +en-US = "OS/2 Metafile" + +[STR_REG_VAL_MACINTOSH_PICTURE_METAFILE] +en-US = "Macintosh Picture Metafile" + +[STR_REG_VAL_MS_WINDOWS_METAFILE] +en-US = "Microsoft Windows Metafile" + +[STR_REG_VAL_MS_WINDOWS_BITMAP] +en-US = "Microsoft Windows Bitmap File" + +[STR_REG_VAL_CORELDRAW_FILE_FORMAT] +en-US = "CorelDraw File" + +[STR_REG_VAL_COREL_PRESENTATION_EXCHANGE] +en-US = "Corel Presentation Exchange File" + +[STR_REG_VAL_GRAPHICS_INTERCHANGE_FORMAT] +en-US = "Graphics Interchange Format File" + +[STR_REG_VAL_JOINT_PHOTOGRAPHIC_EXPERTS_GROUP] +en-US = "Joint Photographic Experts Group File" + +[STR_REG_VAL_PORTABLE_BITMAP_FORMAT] +en-US = "Portable Bitmap Format File" + +[STR_REG_VAL_PERSONAL_COMPUTER_EXCHANGE] +en-US = "Personal Computer Exchange File" + +[STR_REG_VAL_PORTABLE_GRAYMAP_FORMAT] +en-US = "Portable Graymap Format File" + +[STR_REG_VAL_PORTABLE_NETWORK_GRAPHICS] +en-US = "Portable Network Graphics File" + +[STR_REG_VAL_PORTABLE_PIXMAP_FORMAT] +en-US = "Portable Pixmap Format File" + +[STR_REG_VAL_PHOTOSHOP_DOCUMENT] +en-US = "Adobe Photoshop Document" + +[STR_REG_VAL_SUN_RASTER_GRAPHIC] +en-US = "Sun Raster Graphic File" + +[STR_REG_VAL_SCALABLE_VECTOR_GRAPHICS] +en-US = "Scalable Vector Graphics File" + +[STR_REG_VAL_TRUEVISION_TGA] +en-US = "Truevision TGA File" + +[STR_REG_VAL_TAGGED_IMAGE_FILE_FORMAT] +en-US = "Tagged Image File" + +[STR_REG_VAL_X_BITMAP] +en-US = "X BitMap File" + +[STR_REG_VAL_X_PIXMAP] +en-US = "X Pixmap File" + +[STR_REG_VAL_KODAK_PHOTO_CD_IMAGE] +en-US = "Kodak Photo CD Image File" + diff --git a/scp2/source/impress/registryitem_impress.scp b/scp2/source/impress/registryitem_impress.scp index 92962c77e579..23f3fda20d5b 100644 --- a/scp2/source/impress/registryitem_impress.scp +++ b/scp2/source/impress/registryitem_impress.scp @@ -1118,3 +1118,8 @@ CONDITIONAL_REGISTER_DOC_EXTENSION( Pptm, gid_Module_Prg_Impress_MSO_Reg, pptm, CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Pot, gid_Module_Prg_Impress_MSO_Reg, pot, POT, MS_POWERPOINT_TEMPLATE_OLD, 8, simpress.exe, new, Impress ) CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Potx, gid_Module_Prg_Impress_MSO_Reg, potx, POTX, MS_POWERPOINT_TEMPLATE, 8, simpress.exe, new, Impress ) CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Potm, gid_Module_Prg_Impress_MSO_Reg, potm, POTM, MS_POWERPOINT_TEMPLATE, 8, simpress.exe, new, Impress ) + +// registering other supported types + +CONDITIONAL_REGISTER_DOC_EXTENSION( Uop, gid_Module_Prg_Impress_Other_Reg, uop, UOP, UNIFORM_OFFICE_FORMAT_PRESENTATION, 7, simpress.exe, open, Impress ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Cgm, gid_Module_Prg_Impress_Other_Reg, cgm, CGM, COMPUTER_GRAPHICS_METAFILE, 7, simpress.exe, open, Impress ) diff --git a/scp2/source/impress/registryitem_impress.ulf b/scp2/source/impress/registryitem_impress.ulf index 6e0ffa689f39..e201da0b44a6 100644 --- a/scp2/source/impress/registryitem_impress.ulf +++ b/scp2/source/impress/registryitem_impress.ulf @@ -49,3 +49,9 @@ en-US = "Microsoft PowerPoint 97-2003 Template" [STR_REG_VAL_MS_POWERPOINT_TEMPLATE] en-US = "Microsoft PowerPoint Template" +[STR_REG_VAL_UNIFORM_OFFICE_FORMAT_PRESENTATION] +en-US = "Uniform Office Format Presentation" + +[STR_REG_VAL_COMPUTER_GRAPHICS_METAFILE] +en-US = "Computer Graphics Metafile" + diff --git a/scp2/source/writer/registryitem_writer.scp b/scp2/source/writer/registryitem_writer.scp index 3120af83e364..ea38cfa3ed8f 100644 --- a/scp2/source/writer/registryitem_writer.scp +++ b/scp2/source/writer/registryitem_writer.scp @@ -1724,3 +1724,10 @@ CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Dotx, gid_Module_Prg_Wrt_MSO_Reg, do CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Dotm, gid_Module_Prg_Wrt_MSO_Reg, dotm, DOTM, MS_WORD_TEMPLATE, 2, swriter.exe, new, Writer ) CONDITIONAL_REGISTER_DOC_EXTENSION( Rtf, gid_Module_Prg_Wrt_MSO_Reg, rtf, RTF, MS_RTF_DOCUMENT, 1, swriter.exe, open, Writer ) +// registering other supported types + +CONDITIONAL_REGISTER_DOC_EXTENSION( Uot, gid_Module_Prg_Wrt_Other_Reg, uot, UOT, UNIFORM_OFFICE_FORMAT_TEXT, 1, swriter.exe, open, Writer ) +CONDITIONAL_REGISTER_DOC_EXTENSION( Lwp, gid_Module_Prg_Wrt_Other_Reg, lwp, LWP, WORDPRO_DOCUMENT, 1, swriter.exe, open, Writer ) +CONDITIONAL_REGISTER_DOC_EXTENSION( 602, gid_Module_Prg_Wrt_Other_Reg, 602, 602, T602_TEXT_FILE, 1, swriter.exe, open, Writer ) + + diff --git a/scp2/source/writer/registryitem_writer.ulf b/scp2/source/writer/registryitem_writer.ulf index c0302d275cad..51e9cba9d9e2 100644 --- a/scp2/source/writer/registryitem_writer.ulf +++ b/scp2/source/writer/registryitem_writer.ulf @@ -55,3 +55,12 @@ en-US = "Microsoft Word Template" [STR_REG_VAL_MS_RTF_DOCUMENT] en-US = "Rich Text Document" +[STR_REG_VAL_UNIFORM_OFFICE_FORMAT_TEXT] +en-US = "Uniform Office Format Text Document" + +[STR_REG_VAL_WORDPRO_DOCUMENT] +en-US = "Lotus Word Pro Document" + +[STR_REG_VAL_T602_TEXT_FILE] +en-US = "T602 Text File" + |