Kaydet (Commit) 081a3ea7 authored tarafından Michael Stahl's avatar Michael Stahl

scp2: remove obsolete mkopenwith.btm

Change-Id: I409a505ad61f99e56081a9a05ec49284564fd568
üst a1d7f029
@ECHO OFF
IF '%1'==' GOTO End
IF NOT EXIST %1\. GOTO Module_Error
SET OUTPUT=%1\OpenWith.SCP
SET FILE=%@FILEOPEN[supported_extensions.txt,read,t]
ECHO // "OpenWith" Windows Registry keys for extensions supported by %1 > %OUTPUT%
ECHO. >> %OUTPUT%
:While_Read_File
SET LINE=%@FILEREAD[%FILE%]
IF '%LINE%'=='' GOTO While_Read_File
IF '%@LEFT[1,%LINE%]'==';' GOTO While_Read_File
IF '%LINE%'=='**EOF**' GOTO End_Read_File
IF NOT '%@LEFT[1,%LINE%]'=='[' GOTO Register_Extension
SET MODULE=%@UPPER[%@WORD["[]",0,%LINE%]]
GOTO While_Read_File
:Register_Extension
IF NOT '%MODULE%'=='%@UPPER[%1]' GOTO While_Read_File
ECHO // .%LINE% >> %OUTPUT%
ECHO RegistryItem gid_Regitem_OpenOffice_%LINE%_OpenWith_%1 >> %OUTPUT%
ECHO ParentID = PREDEFINED_HKEY_CLASSES_ROOT; >> %OUTPUT%
ECHO Subkey = ".%LINE%\OpenWithProgIDs"; >> %OUTPUT%
ECHO ModuleID = gid_Module_Prg_%1_Bin; >> %OUTPUT%
ECHO Name = "opendocument.%1Document.1"; >> %OUTPUT%
ECHO Value = "%PRODUCTNAME %PRODUCTVERSION"; >> %OUTPUT%
ECHO End >> %OUTPUT%
ECHO. >> %OUTPUT%
REM GOTO End_Read_File
GOTO While_Read_File
:End_Read_File
SET ERROR=%@FILECLOSE[%FILE%]
GOTO End
:Help
ECHO Usage: %0 Module
ECHO Example: %0 Calc
GOTO End
:Module_Error
ECHO Module %1 not found !
GOTO End
:End
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
[Calc]
ODS
OTS
SXC
STC
DIF
DBF
XLS
XLW
XLT
RTF
SDC
VOR
SLK
CSV
TXT
HTM
HTML
WK1
WKS
123
XML
[Writer]
ODT
OTT
SXW
STW
DOC
DOT
RTF
SDW
VOR
TXT
HTM
HTML
XML
WPD
WPS
JTD
JTT
HWP
OTH
ODM
SXG
SGL
[Impress]
ODP
OTP
SXI
STI
PPT
PPS
POT
SXD
SDA
SDD
SDP
VOR
ODG
[Draw]
ODG
OTG
SXD
STD
SDA
SDD
VOR
;[Database]
[OOo]
ODB
[Math]
ODF
SXM
SMF
MML
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment