diff options
author | Maho Nakata <maho@FreeBSD.org> | 2004-07-31 03:22:02 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2004-07-31 03:22:02 +0000 |
commit | 4c44c69fa53617d19d136df24082a9a441428cb9 (patch) | |
tree | b2cfaeabab4febfa443497e9fb76ec1e1c19c524 /editors/openoffice-1.1/files | |
parent | - Update to 0.5 (diff) |
1) update to 1.1.2
2) remove GIF lzw disabling patches
3) change the method of localized build
to reduce the amount of time, and/or
make full use of ccache of 2nd and later builds.
4) Modification of OOo must be small as possible.
No longer see LANG environment variable, CJK enhancements, etc.
Notes
Notes:
svn path=/head/; revision=115125
Diffstat (limited to 'editors/openoffice-1.1/files')
14 files changed, 384 insertions, 991 deletions
diff --git a/editors/openoffice-1.1/files/Makefile.localized b/editors/openoffice-1.1/files/Makefile.localized new file mode 100644 index 000000000000..538825fa1229 --- /dev/null +++ b/editors/openoffice-1.1/files/Makefile.localized @@ -0,0 +1,234 @@ +# localized makefile +# Whom: Maho Nakata <maho@FreeBSD.org> +# $FreeBSD$ + +################################################################ +.if defined(LOCALIZED_LANG) +.if ${LOCALIZED_LANG} == "af" +LANG_PKGNAME= af +LANG_EXT= 27 +LANG_CONFIGURE_ARG= AFRIK +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ar" +CATEGORIES= arabic +LANG_PKGNAME= ar +LANG_EXT= 96 +LANG_CONFIGURE_ARG= ARAB +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ca" +LANG_PKGNAME= ca +LANG_EXT= 37 +LANG_CONFIGURE_ARG= CAT +.endif +################################################################ +.if ${LOCALIZED_LANG} == "cs" +LANG_PKGNAME= cs +LANG_EXT= 42 +LANG_CONFIGURE_ARG= CZECH +.endif +################################################################ +.if ${LOCALIZED_LANG} == "dk" +LANG_PKGNAME= dk +LANG_EXT= 45 +LANG_CONFIGURE_ARG= DAN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "el" +LANG_PKGNAME= el +LANG_EXT= 30 +LANG_CONFIGURE_ARG= GREEK +.endif +################################################################ +.if ${LOCALIZED_LANG} == "es" +LANG_PKGNAME= es +LANG_EXT= 34 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= SPAN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "et" +LANG_PKGNAME= et +LANG_EXT= 77 +LANG_CONFIGURE_ARG= ESTONIAN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "fi" +LANG_PKGNAME= fi +LANG_EXT= 35 +LANG_CONFIGURE_ARG= FINN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "fr" +CATEGORIES= french +LANG_PKGNAME= fr +LANG_EXT= 33 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= FREN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "de" +CATEGORIES= german +LANG_PKGNAME= de +LANG_EXT= 49 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= GER +COMMENT= Office-Suite mit Textverarbeitung, Tabellenkalkulation, Datenbank und Praesentationsprogramm +PKGMESSAGE= ${FILESDIR}/pkg-message.de +.endif +################################################################ +.if ${LOCALIZED_LANG} == "he" +LANG_PKGNAME= he +LANG_EXT= 97 +LANG_CONFIGURE_ARG= HEBREW +.endif +################################################################ +.if ${LOCALIZED_LANG} == "hu" +CATEGORIES= hungarian +LANG_PKGNAME= hu +LANG_EXT= 36 +LANG_CONFIGURE_ARG= HUNG +.endif +################################################################ +.if ${LOCALIZED_LANG} == "it" +LANG_PKGNAME= it +LANG_EXT= 39 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= ITAL +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ja" +CATEGORIES= japanese +LANG_PKGNAME= ja +LANG_EXT= 81 +LANG_CONFIGURE_ARG= JAPN +MASTER_SITES+= ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,misc/openoffice/stable/&,} +RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/TrueType/kochi-mincho-subst.ttf:${PORTSDIR}/japanese/kochi-ttfonts +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ko" +CATEGORIES= korean +LANG_PKGNAME= ko +LANG_EXT= 82 +LANG_CONFIGURE_ARG= KOREAN +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ +.if ${LOCALIZED_LANG} == "nb" +LANG_PKGNAME= nb +LANG_EXT= 47 +LANG_CONFIGURE_ARG= NORBOK +.endif +################################################################ +.if ${LOCALIZED_LANG} == "nl" +LANG_PKGNAME= nl +LANG_EXT= 31 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= DTCH +.endif +################################################################ +.if ${LOCALIZED_LANG} == "nn" +LANG_PKGNAME= nn +LANG_EXT= 79 +LANG_CONFIGURE_ARG= NORNYN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ns" +LANG_PKGNAME= ns +LANG_EXT= 26 +LANG_CONFIGURE_ARG= NSOTHO +.endif +################################################################ +.if ${LOCALIZED_LANG} == "pl" +CATEGORIES= polish +LANG_PKGNAME= pl +LANG_EXT= 48 +LANG_CONFIGURE_ARG= POL +.endif +################################################################ +.if ${LOCALIZED_LANG} == "pt" +COMMENT= Editor texto/grBaGico, banco de dados/planilha/navegador integrado +CATEGORIES= portuguese +LANG_PKGNAME= pt +LANG_EXT= 03 +LANG_CONFIGURE_ARG= PORT +.endif +################################################################ +.if ${LOCALIZED_LANG} == "pt-BR" +COMMENT= Editor texto/grBaGico, banco de dados/planilha/navegador integrado +CATEGORIES= portuguese +LANG_PKGNAME= pt +LANG_SUFFIX= BR +LANG_EXT= 55 +LANG_CONFIGURE_ARG= PORTBR +.endif +################################################################ +.if ${LOCALIZED_LANG} == "ru" +CATEGORIES= russian +LANG_PKGNAME= ru +LANG_EXT= 07 +LANG_CONFIGURE_ARG= RUSS +.endif +################################################################ +.if ${LOCALIZED_LANG} == "sv" +LANG_PKGNAME= sv +LANG_EXT= 46 +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +LANG_CONFIGURE_ARG= SWED +.endif +################################################################ +.if ${LOCALIZED_LANG} == "sk" +LANG_PKGNAME= sk +LANG_EXT= 43 +LANG_CONFIGURE_ARG= SLOVAK +.endif +################################################################ +.if ${LOCALIZED_LANG} == "sl-SI" +LANG_PKGNAME= sl +LANG_SUFFIX= SI +LANG_EXT= 50 +LANG_CONFIGURE_ARG= SLOVENIAN +.endif +################################################################ +.if ${LOCALIZED_LANG} == "tr" +LANG_PKGNAME= tr +LANG_EXT= 90 +LANG_CONFIGURE_ARG= TURK +.endif +################################################################ +.if ${LOCALIZED_LANG} == "we" +LANG_PKGNAME= cy +LANG_EXT= 53 +LANG_CONFIGURE_ARG= WELSH +.endif +################################################################ +.if ${LOCALIZED_LANG} == "zh-CN" +CATEGORIES= chinese +LANG_PKGNAME= zh +LANG_SUFFIX= CN +LANG_EXT= 86 +LANG_CONFIGURE_ARG= CHINSIM +BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf:${PORTSDIR}/chinese/arphicttf +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ +.if ${LOCALIZED_LANG} == "zh-TW" +CATEGORIES= chinese +LANG_PKGNAME= zh +LANG_SUFFIX= TW +LANG_EXT= 88 +LANG_CONFIGURE_ARG= CHINTRAD +BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf +L10NHELP= helpcontent_${LANG_EXT}_unix.tgz +.endif +################################################################ +.if ${LOCALIZED_LANG} == "zu" +LANG_PKGNAME= zu +LANG_EXT= 28 +LANG_CONFIGURE_ARG= ZULU +.endif +################################################################ +.endif + diff --git a/editors/openoffice-1.1/files/Makefile.mozilla b/editors/openoffice-1.1/files/Makefile.mozilla new file mode 100644 index 000000000000..f96a2ff85222 --- /dev/null +++ b/editors/openoffice-1.1/files/Makefile.mozilla @@ -0,0 +1,61 @@ +extract-mozilla: +.if ! exists(${WRKDIR}/mozilla/Makefile) + @${ECHO_MSG} "===> Extracting mozilla sub project" + @cd ${WRKDIR} ; tar -xzf ${DISTDIR}/${DIST_SUBDIR}/mozilla-vendor-1.0.2a.tgz +.endif + @cd ${WRKDIR}/mozilla ; ${MAKE} extract WRKDIRPREFIX="" + +patch-mozilla: + @${CP} ${DISTDIR}/${DIST_SUBDIR}/patch-openoffice-mozilla101-2002-10-14 \ + ${WRKDIR}/mozilla/files/ + @cd ${WRKDIR}/mozilla ; ${MAKE} patch WRKDIRPREFIX="" + +build-mozilla: +.if ! exists(${WRKDIR}/FREEBSDGCCIruntime.zip) + @${ECHO_MSG} "===> Building mozilla sub project" +.if defined(WITH_DEBUG) + @${CP} ${WRKDIR}/mozilla/Makefile ${WRKDIR}/mozilla/Makefile.new + @${REINPLACE_CMD} -e 's|--disable-debug||' \ + -e 's|--disable-cpp-rtti||' \ + -e 's|--enable-strip||' \ + < ${WRKDIR}/mozilla/Makefile.new > ${WRKDIR}/mozilla/Makefile +.endif +.if defined(USE_GCC) + @cd ${WRKDIR}/mozilla ; ${MAKE} CXX="${CXX}" CC="${CC}" CFLAGS="${CFLAGS}" USE_GCC=${USE_GCC} build WRKDIRPREFIX="" +.else + @cd ${WRKDIR}/mozilla ; ${MAKE} CXX="${CXX}" CC="${CC}" CFLAGS="${CFLAGS}" build WRKDIRPREFIX="" +.endif + @${CP} ${FILESDIR}/zipmoz.sh ${WRKDIR} + @${CHMOD} 755 ${WRKDIR}/zipmoz.sh + @${WRKDIR}/zipmoz.sh ${WRKDIR}/mozilla/work/mozilla/dist FREEBSDGCCI ${WRKDIR} +.endif + +install-mozilla: + @${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/ + @${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/ + @${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/ + +register-mozilla: +.if exists(${WRKDIR}/mozilla-runtime) + @${RM} -rf ${WRKDIR}/mozilla-runtime +.endif + @${MKDIR} ${WRKDIR}/mozilla-runtime + @cd ${WRKDIR}/mozilla-runtime ; ${UNZIP} -o ${WRKDIR}/FREEBSDGCCIruntime.zip + @cd ${WRKDIR}/mozilla-runtime ; ${UNZIP} -o ${WRKDIR}/FREEBSDGCCIlib.zip + @${CP} ${WRKDIR}/mozilla/work/mozilla/dist/bin/regxpcom ${WRKDIR}/mozilla-runtime/ + @-${RM} ${WRKDIR}/mozilla-runtime/components/component.reg + @cd ${WRKDIR}/mozilla-runtime ; export MOZILLA_FIVE_HOME=. \ + ; export LD_LIBRARY_PATH=.:./lib && ./regxpcom + @${CP} ${WRKDIR}/mozilla-runtime/components/xpti.dat \ + ${WRKDIR}/mozilla-runtime/components/xptitemp.dat + @${RM} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKDIR}/mozilla-runtime/regxpcom + @cd ${WRKDIR}/mozilla-runtime ; ${FIND} . -type f \ + | ${ZIP} ${WRKDIR}/FREEBSDGCCIruntime.zip -@ + +mozilla: + @${MAKE} extract-mozilla + @${MAKE} patch-mozilla + @${MAKE} build-mozilla + @${MAKE} register-mozilla + @${MAKE} install-mozilla + diff --git a/editors/openoffice-1.1/files/freebsd-local.sh b/editors/openoffice-1.1/files/freebsd-local.sh index 44fa969bab04..e4d951ae481f 100644 --- a/editors/openoffice-1.1/files/freebsd-local.sh +++ b/editors/openoffice-1.1/files/freebsd-local.sh @@ -2,11 +2,6 @@ # # $FreeBSD $ -if [ -e $HOME/.sversionrc ]; then - OOHOME=`grep %%FRELEASE_NR%% $HOME/.sversionrc \ - | sed -e 's/.*file:\/\///'` -fi - save_common_xcu() { sed 's/^X//' > $OOHOME/tmp/Common.xcu << 'END-of-Common.xcu' X<?xml version="1.0" encoding="UTF-8"?> diff --git a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc.cxx b/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc.cxx deleted file mode 100644 index 0fcdf289cca3..000000000000 --- a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc.cxx +++ /dev/null @@ -1,290 +0,0 @@ ---- ../goodies/source/filter.vcl/egif/giflzwc.cxx Sun Apr 13 14:33:24 2003 -+++ /dev/null Mon Apr 14 06:10:35 2003 -@@ -1,287 +0,0 @@ --/************************************************************************* -- * -- * $RCSfile: giflzwc.cxx,v $ -- * -- * $Revision: 1.1.1.1 $ -- * -- * last change: $Author: hr $ $Date: 2000/09/18 16:30:11 $ -- * -- * The Contents of this file are made available subject to the terms of -- * either of the following licenses -- * -- * - GNU Lesser General Public License Version 2.1 -- * - Sun Industry Standards Source License Version 1.1 -- * -- * Sun Microsystems Inc., October, 2000 -- * -- * GNU Lesser General Public License Version 2.1 -- * ============================================= -- * Copyright 2000 by Sun Microsystems, Inc. -- * 901 San Antonio Road, Palo Alto, CA 94303, USA -- * -- * This library is free software; you can redistribute it and/or -- * modify it under the terms of the GNU Lesser General Public -- * License version 2.1, as published by the Free Software Foundation. -- * -- * This library is distributed in the hope that it will be useful, -- * but WITHOUT ANY WARRANTY; without even the implied warranty of -- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- * Lesser General Public License for more details. -- * -- * You should have received a copy of the GNU Lesser General Public -- * License along with this library; if not, write to the Free Software -- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, -- * MA 02111-1307 USA -- * -- * -- * Sun Industry Standards Source License Version 1.1 -- * ================================================= -- * The contents of this file are subject to the Sun Industry Standards -- * Source License Version 1.1 (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.openoffice.org/license.html. -- * -- * Software provided under this License is provided on an "AS IS" basis, -- * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, -- * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, -- * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. -- * See the License for the specific provisions governing your rights and -- * obligations concerning the Software. -- * -- * The Initial Developer of the Original Code is: Sun Microsystems, Inc. -- * -- * Copyright: 2000 by Sun Microsystems, Inc. -- * -- * All Rights Reserved. -- * -- * Contributor(s): _______________________________________ -- * -- * -- ************************************************************************/ -- --#include <tools/stream.hxx> --#include "giflzwc.hxx" -- --// ---------------------------- --// - GIFImageDataOutputStream - --// ---------------------------- -- --class GIFImageDataOutputStream --{ --private: -- -- void FlushBlockBuf(); -- inline void FlushBitsBufsFullBytes(); -- -- SvStream& rStream; -- BYTE* pBlockBuf; -- BYTE nBlockBufSize; -- ULONG nBitsBuf; -- USHORT nBitsBufSize; -- --public: -- -- GIFImageDataOutputStream( SvStream & rGIF, BYTE nLZWDataSize ); -- ~GIFImageDataOutputStream(); -- -- inline void WriteBits( USHORT nCode, USHORT nCodeLen ); --}; -- --// ------------------------------------------------------------------------ -- --inline void GIFImageDataOutputStream::FlushBitsBufsFullBytes() --{ -- while (nBitsBufSize>=8) -- { -- if( nBlockBufSize==255 ) -- FlushBlockBuf(); -- -- pBlockBuf[nBlockBufSize++] = (BYTE) nBitsBuf; -- nBitsBuf >>= 8; -- nBitsBufSize -= 8; -- } --} -- --// ------------------------------------------------------------------------ -- --inline void GIFImageDataOutputStream::WriteBits( USHORT nCode, USHORT nCodeLen ) --{ -- if( nBitsBufSize+nCodeLen>32 ) -- FlushBitsBufsFullBytes(); -- -- nBitsBuf |= (ULONG) nCode << nBitsBufSize; -- nBitsBufSize += nCodeLen; --} -- --// ------------------------------------------------------------------------ -- --GIFImageDataOutputStream::GIFImageDataOutputStream( SvStream & rGIF, BYTE nLZWDataSize ) : -- rStream(rGIF) --{ -- pBlockBuf = new BYTE[ 255 ]; -- nBlockBufSize = 0; -- nBitsBufSize = 0; -- nBitsBuf = 0; -- rStream << nLZWDataSize; --} -- --// ------------------------------------------------------------------------ -- -- --GIFImageDataOutputStream::~GIFImageDataOutputStream() --{ -- WriteBits(0,7); -- FlushBitsBufsFullBytes(); -- FlushBlockBuf(); -- rStream << (BYTE)0; -- delete[] pBlockBuf; --} -- --// ------------------------------------------------------------------------ -- --void GIFImageDataOutputStream::FlushBlockBuf() --{ -- if( nBlockBufSize ) -- { -- rStream << (BYTE) nBlockBufSize; -- rStream.Write( pBlockBuf,nBlockBufSize ); -- nBlockBufSize = 0; -- } --} -- --// ------------------- --// - GIFLZWCTreeNode - --// ------------------- -- --struct GIFLZWCTreeNode --{ -- -- GIFLZWCTreeNode* pBrother; // naechster Knoten, der den selben Vater hat -- GIFLZWCTreeNode* pFirstChild; // erster Sohn -- USHORT nCode; // Der Code fuer den String von Pixelwerten, der sich ergibt, wenn -- USHORT nValue; // Der Pixelwert --}; -- --// -------------------- --// - GIFLZWCompressor - --// -------------------- -- --GIFLZWCompressor::GIFLZWCompressor() --{ -- pIDOS=NULL; --} -- --// ------------------------------------------------------------------------ -- --GIFLZWCompressor::~GIFLZWCompressor() --{ -- if (pIDOS!=NULL) EndCompression(); --} -- --// ------------------------------------------------------------------------ -- --void GIFLZWCompressor::StartCompression( SvStream& rGIF, USHORT nPixelSize ) --{ -- if( !pIDOS ) -- { -- USHORT i; -- -- nDataSize = nPixelSize; -- -- if( nDataSize < 2 ) -- nDataSize=2; -- -- nClearCode=1<<nDataSize; -- nEOICode=nClearCode+1; -- nTableSize=nEOICode+1; -- nCodeSize=nDataSize+1; -- -- pIDOS=new GIFImageDataOutputStream(rGIF,(BYTE)nDataSize); -- pTable=new GIFLZWCTreeNode[4096]; -- -- for (i=0; i<4096; i++) -- { -- pTable[i].pBrother = pTable[i].pFirstChild = NULL; -- pTable[i].nValue = (BYTE) ( pTable[i].nCode = i ); -- } -- -- pPrefix = NULL; -- pIDOS->WriteBits( nClearCode,nCodeSize ); -- } --} -- --// ------------------------------------------------------------------------ -- --void GIFLZWCompressor::Compress( HPBYTE pSrc, ULONG nSize ) --{ -- if( pIDOS ) -- { -- GIFLZWCTreeNode* p; -- USHORT i; -- BYTE nV; -- -- if( !pPrefix && nSize ) -- { -- pPrefix=pTable+(*pSrc++); -- nSize--; -- } -- -- while( nSize ) -- { -- nSize--; -- nV=*pSrc++; -- for( p=pPrefix->pFirstChild; p!=NULL; p=p->pBrother ) -- { -- if (p->nValue==nV) -- break; -- } -- -- if( p) -- pPrefix=p; -- else -- { -- pIDOS->WriteBits(pPrefix->nCode,nCodeSize); -- -- if (nTableSize==4096) -- { -- pIDOS->WriteBits(nClearCode,nCodeSize); -- -- for (i=0; i<nClearCode; i++) -- pTable[i].pFirstChild=NULL; -- -- nCodeSize=nDataSize+1; -- nTableSize=nEOICode+1; -- } -- else -- { -- if(nTableSize==(USHORT)(1<<nCodeSize)) -- nCodeSize++; -- -- p=pTable+(nTableSize++); -- p->pBrother=pPrefix->pFirstChild; -- pPrefix->pFirstChild=p; -- p->nValue=nV; -- p->pFirstChild=NULL; -- } -- -- pPrefix=pTable+nV; -- } -- } -- } --} -- --// ------------------------------------------------------------------------ -- --void GIFLZWCompressor::EndCompression() --{ -- if( pIDOS ) -- { -- if( pPrefix ) -- pIDOS->WriteBits(pPrefix->nCode,nCodeSize); -- -- pIDOS->WriteBits( nEOICode,nCodeSize ); -- delete[] pTable; -- delete pIDOS; -- pIDOS=NULL; -- } --} diff --git a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc_disabled.cxx b/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc_disabled.cxx deleted file mode 100644 index 223277a5cd7e..000000000000 --- a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+giflzwc_disabled.cxx +++ /dev/null @@ -1,45 +0,0 @@ ---- /dev/null 1970-01-01 01:00:00.000000000 +0100 -+++ ../goodies/source/filter.vcl/egif/giflzwc_disabled.cxx 2002-08-15 15:09:47.000000000 +0200 -@@ -0,0 +1,42 @@ -+/********************************** -+ * This code is copied from giflzwc.cxx, with the patented LZW compression code removed. -+ **********************************/ -+ -+//#include <tools/stream.hxx> -+#include "giflzwc.hxx" -+ -+// -------------------- -+// - GIFLZWCompressor - -+// -------------------- -+ -+GIFLZWCompressor::GIFLZWCompressor() -+{ -+ pIDOS=NULL; -+} -+ -+// ------------------------------------------------------------------------ -+ -+GIFLZWCompressor::~GIFLZWCompressor() -+{ -+} -+ -+// ------------------------------------------------------------------------ -+ -+void GIFLZWCompressor::StartCompression( SvStream& rGIF, USHORT nPixelSize ) -+{ -+ /********************** DISABLED *************************/ -+} -+ -+// ------------------------------------------------------------------------ -+ -+void GIFLZWCompressor::Compress( HPBYTE pSrc, ULONG nSize ) -+{ -+ /********************** DISABLED *************************/ -+} -+ -+// ------------------------------------------------------------------------ -+ -+void GIFLZWCompressor::EndCompression() -+{ -+ /********************** DISABLED *************************/ -+} diff --git a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+makefile.mk b/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+makefile.mk deleted file mode 100644 index dd9e199acc96..000000000000 --- a/editors/openoffice-1.1/files/gifpatch-goodies+source+filter.vcl+egif+makefile.mk +++ /dev/null @@ -1,11 +0,0 @@ ---- ../goodies/source/filter.vcl/egif/makefile.mk.orig Tue Aug 14 23:22:54 2001 -+++ ../goodies/source/filter.vcl/egif/makefile.mk Mon Apr 14 06:04:55 2003 -@@ -89,7 +89,7 @@ - - SLOFILES= $(SLO)$/egif.obj \ - $(SLO)$/dlgegif.obj \ -- $(SLO)$/giflzwc.obj -+ $(SLO)$/giflzwc_disabled.obj - - - # ========================================================================== diff --git a/editors/openoffice-1.1/files/patch-rtfcjk b/editors/openoffice-1.1/files/patch-rtfcjk deleted file mode 100644 index 2b44f86757f9..000000000000 --- a/editors/openoffice-1.1/files/patch-rtfcjk +++ /dev/null @@ -1,214 +0,0 @@ ---- ../svx/source/svrtf/rtfitem.cxx 24 Jun 2003 07:48:56 -0000 1.18 -+++ ../svx/source/svrtf/rtfitem.cxx 25 Jul 2003 22:54:24 -0000 -@@ -285,11 +285,20 @@ - } - else - { -- if( LOW_CHARTYPE == eType || HIGH_CHARTYPE == eType ) -+// if( LOW_CHARTYPE == eType || HIGH_CHARTYPE == eType ) //Takashi Ono for CJK -+ if( LOW_CHARTYPE == eType ) - { - if( *pNormal ) - { - rItem.SetWhich( *pNormal ); -+ rSet.Put( rItem ); -+ } -+ } -+ else if( HIGH_CHARTYPE == eType ) -+ { -+ if( *pCTL ) -+ { -+ rItem.SetWhich( *pCTL ); - rSet.Put( rItem ); - } - } ---- ../svx/source/svrtf/svxrtf.cxx 19 May 2003 12:30:59 -0000 1.15 -+++ ../svx/source/svrtf/svxrtf.cxx 25 Jul 2003 22:54:29 -0000 -@@ -583,8 +583,14 @@ - - case RTF_FCHARSET: - if( -1 != nTokenValue ) -- pFont->SetCharSet( rtl_getTextEncodingFromWindowsCharset( -- (BYTE)nTokenValue ) ); -+ { -+// pFont->SetCharSet( rtl_getTextEncodingFromWindowsCharset( -+// (BYTE)nTokenValue ) ); -+ CharSet nCharSet = -+ rtl_getTextEncodingFromWindowsCharset( (BYTE)nTokenValue ); -+ pFont->SetCharSet( nCharSet ); -+ SetEncoding( nCharSet ); //Takashi Ono -+ } - break; - - case RTF_FPRQ: ---- ../sw/source/filter/rtf/swparrtf.cxx 4 Jun 2003 10:19:09 -0000 1.28 -+++ ../sw/source/filter/rtf/swparrtf.cxx 25 Jul 2003 22:54:37 -0000 -@@ -3231,10 +3231,156 @@ - SetSwgValues( rCollSet ); - } - -+//Takashi Ono for CJK -+String SwRTFParser::XlateFmtColName( const String &rName ) -+{ -+#define RES_NONE RES_POOLCOLL_DOC_END -+ -+ static const RES_POOL_COLLFMT_TYPE aArr[]={ -+ RES_POOLCOLL_STANDARD, RES_POOLCOLL_HEADLINE1, RES_POOLCOLL_HEADLINE2, -+ RES_POOLCOLL_HEADLINE3, RES_POOLCOLL_HEADLINE4, RES_POOLCOLL_HEADLINE5, -+ RES_POOLCOLL_HEADLINE6, RES_POOLCOLL_HEADLINE7, RES_POOLCOLL_HEADLINE8, -+ RES_POOLCOLL_HEADLINE9, -+ -+ RES_POOLCOLL_TOX_IDX1, RES_POOLCOLL_TOX_IDX2, RES_POOLCOLL_TOX_IDX3, -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, -+ RES_POOLCOLL_TOX_CNTNT1, -+ -+ RES_POOLCOLL_TOX_CNTNT2, RES_POOLCOLL_TOX_CNTNT3, RES_POOLCOLL_TOX_CNTNT4, -+ RES_POOLCOLL_TOX_CNTNT5, RES_POOLCOLL_TOX_CNTNT6, RES_POOLCOLL_TOX_CNTNT7, -+ RES_POOLCOLL_TOX_CNTNT8, RES_POOLCOLL_TOX_CNTNT9, -+ RES_NONE, RES_POOLCOLL_FOOTNOTE, -+ -+ RES_NONE, RES_POOLCOLL_HEADER, RES_POOLCOLL_FOOTER, RES_POOLCOLL_TOX_IDXH, -+ RES_NONE, RES_NONE, RES_POOLCOLL_JAKETADRESS, RES_POOLCOLL_SENDADRESS, -+ RES_NONE, RES_NONE, -+ -+ RES_NONE, RES_NONE, RES_NONE, RES_POOLCOLL_ENDNOTE, RES_NONE, RES_NONE, RES_NONE, -+ RES_POOLCOLL_LISTS_BEGIN, RES_NONE, RES_NONE, -+ -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, -+ -+ RES_NONE,RES_NONE, RES_POOLCOLL_DOC_TITEL, RES_NONE, RES_POOLCOLL_SIGNATURE, RES_NONE, -+ RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_MOVE, RES_NONE, RES_NONE, -+ -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_POOLCOLL_DOC_SUBTITEL }; -+ static const sal_Char *stiName[] = { -+ "Normal", -+ "heading 1", -+ "heading 2", -+ "heading 3", -+ "heading 4", -+ "heading 5", -+ "heading 6", -+ "heading 7", -+ "heading 8", -+ "heading 9", -+ "index 1", -+ "index 2", -+ "index 3", -+ "index 4", -+ "index 5", -+ "index 6", -+ "index 7", -+ "index 8", -+ "index 9", -+ "toc 1", -+ "toc 2", -+ "toc 3", -+ "toc 4", -+ "toc 5", -+ "toc 6", -+ "toc 7", -+ "toc 8", -+ "toc 9", -+ "Normal Indent", -+ "footnote text", -+ "annotation text", -+ "header", -+ "footer", -+ "index heading", -+ "caption", -+ "table of figures", -+ "envelope address", -+ "envelope return", -+ "footnote reference", -+ "annotation reference", -+ "line number", -+ "page number", -+ "endnote reference", -+ "endnote text", -+ "table of authorities", -+ "macro", -+ "toa heading", -+ "List", -+ "List Bullet", -+ "List Number", -+ "List 2", -+ "List 3", -+ "List 4", -+ "List 5", -+ "List Bullet 2", -+ "List Bullet 3", -+ "List Bullet 4", -+ "List Bullet 5", -+ "List Number 2", -+ "List Number 3", -+ "List Number 4", -+ "List Number 5", -+ "Title", -+ "Closing", -+ "Signature", -+ "Default Paragraph Font", -+ "Body Text", -+ "Body Text Indent", -+ "List Continue", -+ "List Continue 2", -+ "List Continue 3", -+ "List Continue 4", -+ "List Continue 5", -+ "Message Header", -+ "Subtitle", -+ }; -+ -+ -+ ASSERT( ( sizeof( aArr ) / sizeof( RES_POOL_COLLFMT_TYPE ) == 75 ), -+ "Style-UEbersetzungstabelle hat falsche Groesse" ); -+ ASSERT( ( sizeof( stiName ) / sizeof( *stiName ) == 75 ), -+ "Style-UEbersetzungstabelle hat falsche Groesse" ); -+ -+ RES_POOL_COLLFMT_TYPE nId = RES_NONE; -+ -+ for (int i = 0; i < sizeof( stiName ) / sizeof( *stiName ); i++) -+ { -+ if ( rName == String( stiName[i], RTL_TEXTENCODING_MS_1252 ) ) -+ { -+ nId = aArr[i]; -+ break; -+ } -+ } -+ USHORT nResId; -+ if( RES_POOLCOLL_TEXT_BEGIN <= nId && nId < RES_POOLCOLL_TEXT_END ) -+ nResId = RC_POOLCOLL_TEXT_BEGIN - RES_POOLCOLL_TEXT_BEGIN; -+ else if (RES_POOLCOLL_LISTS_BEGIN <= nId && nId < RES_POOLCOLL_LISTS_END) -+ nResId = RC_POOLCOLL_LISTS_BEGIN - RES_POOLCOLL_LISTS_BEGIN; -+ else if (RES_POOLCOLL_EXTRA_BEGIN <= nId && nId < RES_POOLCOLL_EXTRA_END) -+ nResId = RC_POOLCOLL_EXTRA_BEGIN - RES_POOLCOLL_EXTRA_BEGIN; -+ else if (RES_POOLCOLL_REGISTER_BEGIN <= nId && nId < RES_POOLCOLL_REGISTER_END) -+ nResId = RC_POOLCOLL_REGISTER_BEGIN - RES_POOLCOLL_REGISTER_BEGIN; -+ else if (RES_POOLCOLL_DOC_BEGIN <= nId && nId < RES_POOLCOLL_DOC_END) -+ nResId = RC_POOLCOLL_DOC_BEGIN - RES_POOLCOLL_DOC_BEGIN; -+ else if (RES_POOLCOLL_HTML_BEGIN <= nId && nId < RES_POOLCOLL_HTML_END) -+ nResId = RC_POOLCOLL_HTML_BEGIN - RES_POOLCOLL_HTML_BEGIN; -+ return String( ResId( nResId + nId, pSwResMgr ) ); -+} -+ - SwTxtFmtColl* SwRTFParser::MakeStyle( USHORT nNo, const SvxRTFStyleType& rStyle ) - { -- int bCollExist; -- SwTxtFmtColl* pColl = MakeColl( rStyle.sName, USHORT(nNo), -+ int bCollExist; -+// SwTxtFmtColl* pColl = MakeColl( rStyle.sName, USHORT(nNo), //Takashi Ono for CJK -+ SwTxtFmtColl* pColl = MakeColl( XlateFmtColName( rStyle.sName ), -+ USHORT(nNo), - rStyle.nOutlineNo, bCollExist ); - aTxtCollTbl.Insert( nNo, pColl ); - ---- ../sw/source/filter/rtf/swparrtf.hxx 19 May 2003 12:25:34 -0000 1.10 -+++ ../sw/source/filter/rtf/swparrtf.hxx 25 Jul 2003 22:54:44 -0000 -@@ -364,6 +364,7 @@ - void SetStyleAttr( SfxItemSet& rCollSet, - const SfxItemSet& rStyleSet, - const SfxItemSet& rDerivedSet ); -+ String XlateFmtColName( const String &rName ); //Takashi Ono for CJK - SwTxtFmtColl* MakeStyle( USHORT nNo, const SvxRTFStyleType& rStyle ); - SwCharFmt* MakeCharStyle( USHORT nNo, const SvxRTFStyleType& rStyle ); - void MakeStyleTab(); diff --git a/editors/openoffice-1.1/files/patch-sal+textenc+tencinfo.c b/editors/openoffice-1.1/files/patch-sal+textenc+tencinfo.c deleted file mode 100644 index 69355f97a5e2..000000000000 --- a/editors/openoffice-1.1/files/patch-sal+textenc+tencinfo.c +++ /dev/null @@ -1,13 +0,0 @@ ---- ../sal/textenc/tencinfo.c.orig Fri Apr 11 16:25:01 2003 -+++ ../sal/textenc/tencinfo.c Sat May 31 23:33:43 2003 -@@ -668,6 +668,10 @@ - /* characters. The function search for the first equal string in */ - /* the table. In this table are only the most used mime types. */ - /* Sort order: important */ -+ -+ if (pMimeCharset == NULL) -+ pMimeCharset = "usascii"; -+ - static ImplStrCharsetDef const aVIPMimeCharsetTab[] = - { - { "usascii", RTL_TEXTENCODING_ASCII_US }, diff --git a/editors/openoffice-1.1/files/patch-solenv+inc+unxfbsdi.mk b/editors/openoffice-1.1/files/patch-solenv+inc+unxfbsdi.mk deleted file mode 100644 index dd0dbb067109..000000000000 --- a/editors/openoffice-1.1/files/patch-solenv+inc+unxfbsdi.mk +++ /dev/null @@ -1,11 +0,0 @@ ---- ../solenv/inc/unxfbsdi.mk.orig Sat Jan 10 03:59:13 2004 -+++ ../solenv/inc/unxfbsdi.mk Fri Mar 12 21:39:05 2004 -@@ -211,7 +211,7 @@ - LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive - - # STLport always needs pthread. --LIBSTLPORT=$(DYNAMIC) -lstlport_gcc $(PTHREAD_LIBS) -+LIBSTLPORT=$(DYNAMIC) -lstlport_gcc $(STDLIBCPP) $(PTHREAD_LIBS) - LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC) $(PTHREAD_LIBS) - - # name of library manager diff --git a/editors/openoffice-1.1/files/patch-sw+source+filter+ww8+ww8scan.cxx b/editors/openoffice-1.1/files/patch-sw+source+filter+ww8+ww8scan.cxx deleted file mode 100644 index fad83b3f2be0..000000000000 --- a/editors/openoffice-1.1/files/patch-sw+source+filter+ww8+ww8scan.cxx +++ /dev/null @@ -1,16 +0,0 @@ ---- ../sw/source/filter/ww8/ww8scan.cxx.orig 2003-12-17 19:32:50.000000000 +0100 -+++ ../sw/source/filter/ww8/ww8scan.cxx 2004-01-06 06:29:48.000000000 +0100 -@@ -198,8 +198,13 @@ - ++pIter; - } - if (bBroken) -+#if defined( UNX ) && !defined( DBG_UTIL ) -+ DBG_ERROR(rtl::OUStringToOString(sError, RTL_TEXTENCODING_ASCII_US)); -+#else - DbgError(rtl::OUStringToOString(sError, RTL_TEXTENCODING_ASCII_US)); - #endif -+ -+#endif - } - - //Find an entry, return its address if found and 0 if not diff --git a/editors/openoffice-1.1/files/patch-topsection b/editors/openoffice-1.1/files/patch-topsection deleted file mode 100644 index 0fd6684166b2..000000000000 --- a/editors/openoffice-1.1/files/patch-topsection +++ /dev/null @@ -1,21 +0,0 @@ ---- ../sw/source/filter/ww8/ww8par.cxx 9 Jul 2003 11:06:44 -0000 1.114 -+++ ../sw/source/filter/ww8/ww8par.cxx 25 Jul 2003 22:55:23 -0000 -@@ -2015,7 +2015,7 @@ - bool bStartAttr = pPlcxMan->Get(&aRes); // hole Attribut-Pos - aRes.nAktCp = rTxtPos; // Akt. Cp-Pos - -- if ((aRes.nFlags & MAN_MASK_NEW_SEP) && !bIgnoreText) // neue Section -+ if ((aRes.nFlags & MAN_MASK_NEW_SEP) || maSectionManager.empty()) // neue Section - { - ASSERT(pPaM->GetNode()->GetTxtNode(), "Missing txtnode"); - // PageDesc erzeugen und fuellen ---- ../sw/source/filter/ww8/ww8par.hxx 30 Jun 2003 15:54:37 -0000 1.115 -+++ ../sw/source/filter/ww8/ww8par.hxx 25 Jul 2003 22:55:28 -0000 -@@ -720,6 +720,7 @@ - short GetPageLeft() const; - short GetPageRight() const; - short GetPageWidth() const; -+ bool empty() const { return maSegments.empty(); } - }; - - class wwFrameNamer diff --git a/editors/openoffice-1.1/files/patch-word6+95-cjkhandling b/editors/openoffice-1.1/files/patch-word6+95-cjkhandling deleted file mode 100644 index b2fdcc03faaa..000000000000 --- a/editors/openoffice-1.1/files/patch-word6+95-cjkhandling +++ /dev/null @@ -1,53 +0,0 @@ ---- ../sw/source/filter/ww8/ww8par.cxx 9 Jul 2003 11:06:44 -0000 1.114 -+++ ../sw/source/filter/ww8/ww8par.cxx 25 Jul 2003 22:54:52 -0000 -@@ -1774,11 +1774,20 @@ - if (nUCode >= 0x3000) //0x8000 ? - { - sal_Char aTest[2]; -- aTest[0] = (nUCode & 0xFF00) >> 8; -- aTest[1] = (nUCode & 0x00FF); -- String aTemp(aTest, 2, eSrcCharSet); -- ASSERT(aTemp.Len() == 1, "so much for that theory"); -- *pWork = aTemp.GetChar(0); -+ if (nUCode >= 0x3000) -+ { -+ aTest[0] = (nUCode & 0xFF00) >> 8; -+ aTest[1] = (nUCode & 0x00FF); -+ String aTemp(aTest, 2, eSrcCharSet); -+ ASSERT(aTemp.Len() == 1, "so much for that theory"); -+ *pWork = aTemp.GetChar(0); -+ } -+ else -+ { -+ aTest[0] = (nUCode & 0x00FF); -+ String aTemp(aTest, 1, eSrcCharSet); -+ *pWork = aTemp.GetChar(0); -+ } - } - else - { ---- ../sw/source/filter/ww8/ww8par6.cxx 20 Jun 2003 09:38:07 -0000 1.138 -+++ ../sw/source/filter/ww8/ww8par6.cxx 25 Jul 2003 22:55:05 -0000 -@@ -3373,9 +3373,11 @@ - nId = RES_CHRATR_CTL_FONT; - break; - case 93: -+ case 111: - case 0x4a4f: - nId = RES_CHRATR_FONT; - break; -+ case 112: - case 0x4a50: - nId = RES_CHRATR_CJK_FONT; - break; -@@ -5104,8 +5106,8 @@ - //percentage to grow hps short - {110, (FNReadRecord)0}, //"sprmCCondHyhen", chp.ysri - //ysri short -- {111, &SwWW8ImplReader::Read_BoldBiDiUsw}, //"111 bidi bold ?", -- {112, &SwWW8ImplReader::Read_BoldBiDiUsw}, //"112 bidi italic ?", -+ {111, &SwWW8ImplReader::Read_FontCode}, //ww7 font -+ {112, &SwWW8ImplReader::Read_FontCode}, //ww7 CJK font - {113, &SwWW8ImplReader::Read_FontCode}, //ww7 rtl font - {114, (FNReadRecord)0}, //"??114", - {115, &SwWW8ImplReader::Read_TxtColor}, //ww7 rtl colour ? diff --git a/editors/openoffice-1.1/files/patch-wrtrtf b/editors/openoffice-1.1/files/patch-wrtrtf deleted file mode 100644 index 7381dc61cd69..000000000000 --- a/editors/openoffice-1.1/files/patch-wrtrtf +++ /dev/null @@ -1,312 +0,0 @@ ---- ../svtools/source/svrtf/rtfout.cxx.orig 2000-10-16 18:13:46.000000000 +0900 -+++ ../svtools/source/svrtf/rtfout.cxx 2003-09-23 12:41:00.000000000 +0900 -@@ -124,8 +124,9 @@ - default: - { - sal_Unicode cCh = c; -- c = (BYTE)ByteString::ConvertFromUnicode( c, eDestEnc, FALSE ); -- if( !c ) -+ rtl::OString buff( &c, 1, eDestEnc, RTL_UNICODETOTEXT_FLAGS_UNDEFINED_IGNORE|RTL_UNICODETOTEXT_FLAGS_INVALID_IGNORE ); -+// c = (BYTE)ByteString::ConvertFromUnicode( c, eDestEnc, FALSE ); -+ if( !buff.getLength() ) - { - // then write as unicode - character - if( 0xFF < cCh ) -@@ -141,8 +142,8 @@ - break; - } - -- if( !bWriteHelpFile ) -- switch( c ) -+ if( !bWriteHelpFile && buff.getLength() == 1 ) -+ switch( BYTE(buff[0]) ) - { - #ifdef MAC - case 0xa5: pStr = sRTF_BULLET; break; -@@ -164,6 +165,9 @@ - // MAC - } - if( !pStr ) -+ for (int i = 0; i < buff.getLength(); ++i) -+ { -+ c = BYTE(buff[i]); - switch ( c ) - { - case '\\': -@@ -186,6 +190,7 @@ - } - break; - } -+ } - } - break; - } ---- ../sw/source/filter/rtf/wrtrtf.cxx.orig 2003-04-18 00:00:28.000000000 +0900 -+++ ../sw/source/filter/rtf/wrtrtf.cxx 2003-09-23 23:33:08.000000000 +0900 -@@ -184,6 +184,12 @@ - #ifndef _CHARFMT_HXX - #include <charfmt.hxx> - #endif -+#ifndef _POOLFMT_HXX -+#include <poolfmt.hxx> -+#endif -+#ifndef _SWSTYLENAMEMAPPER_HXX -+#include <SwStyleNameMapper.hxx> -+#endif - #ifndef _SECTION_HXX //autogen - #include <section.hxx> - #endif -@@ -215,7 +221,7 @@ - SV_IMPL_VARARR( RTFColorTbl, Color ) - - --SwRTFWriter::SwRTFWriter( const String& rFltName ) -+SwRTFWriter::SwRTFWriter( const String& rFltName ) : eCurrentCharSet(DEF_ENCODING) - { - // schreibe Win-RTF-HelpFileFmt - bWriteHelpFmt = 'W' == rFltName.GetChar( 0 ); -@@ -893,14 +899,14 @@ - // as alternative name. Because WinWord can't match each - // font to a UniCode font. So the CJK texts are shown as - // empty rectangles ;-(. -- RTFOutFuncs::Out_String( rWrt.Strm(), sFntNm, DEF_ENCODING, -+ RTFOutFuncs::Out_String( rWrt.Strm(), sFntNm, eChrSet, - rWrt.bWriteHelpFmt ); - OutComment( rWrt, sRTF_FALT) << ' '; -- RTFOutFuncs::Out_String( rWrt.Strm(), sAltNm, DEF_ENCODING, -+ RTFOutFuncs::Out_String( rWrt.Strm(), sAltNm, eChrSet, - rWrt.bWriteHelpFmt ) << '}'; - } - else -- RTFOutFuncs::Out_String( rWrt.Strm(), sFntNm, DEF_ENCODING, -+ RTFOutFuncs::Out_String( rWrt.Strm(), sFntNm, eChrSet, - rWrt.bWriteHelpFmt ); - rWrt.Strm() << ";}"; - } -@@ -932,6 +938,139 @@ - - - -+//Takashi Ono for CJK -+const rtl::OUString SwRTFWriter::XlateFmtName( const rtl::OUString &rName, SwGetPoolIdFromName eFlags ) -+{ -+#define RES_NONE RES_POOLCOLL_DOC_END -+ -+ static const RES_POOL_COLLFMT_TYPE aArr[]={ -+ RES_POOLCOLL_STANDARD, RES_POOLCOLL_HEADLINE1, RES_POOLCOLL_HEADLINE2, -+ RES_POOLCOLL_HEADLINE3, RES_POOLCOLL_HEADLINE4, RES_POOLCOLL_HEADLINE5, -+ RES_POOLCOLL_HEADLINE6, RES_POOLCOLL_HEADLINE7, RES_POOLCOLL_HEADLINE8, -+ RES_POOLCOLL_HEADLINE9, -+ -+ RES_POOLCOLL_TOX_IDX1, RES_POOLCOLL_TOX_IDX2, RES_POOLCOLL_TOX_IDX3, -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_NONE, -+ RES_POOLCOLL_TOX_CNTNT1, -+ -+ RES_POOLCOLL_TOX_CNTNT2, RES_POOLCOLL_TOX_CNTNT3, RES_POOLCOLL_TOX_CNTNT4, -+ RES_POOLCOLL_TOX_CNTNT5, RES_POOLCOLL_TOX_CNTNT6, RES_POOLCOLL_TOX_CNTNT7, -+ RES_POOLCOLL_TOX_CNTNT8, RES_POOLCOLL_TOX_CNTNT9, -+ RES_POOLCOLL_TEXT_IDENT, RES_POOLCOLL_FOOTNOTE, -+ -+ RES_NONE, RES_POOLCOLL_HEADER, RES_POOLCOLL_FOOTER, RES_POOLCOLL_TOX_IDXH, -+ RES_POOLCOLL_LABEL, RES_POOLCOLL_TOX_ILLUSH, RES_POOLCOLL_JAKETADRESS, RES_POOLCOLL_SENDADRESS, -+ RES_NONE, RES_NONE, -+ -+ RES_NONE, RES_NONE, RES_NONE, RES_POOLCOLL_ENDNOTE, RES_POOLCOLL_TOX_AUTHORITIESH, RES_NONE, RES_NONE, -+ RES_POOLCOLL_BUL_LEVEL1, RES_POOLCOLL_BUL_LEVEL1, RES_POOLCOLL_NUM_LEVEL1, -+ -+ RES_POOLCOLL_BUL_LEVEL2, RES_POOLCOLL_BUL_LEVEL3, RES_POOLCOLL_BUL_LEVEL4, RES_POOLCOLL_BUL_LEVEL5, -+ RES_POOLCOLL_BUL_LEVEL2, RES_POOLCOLL_BUL_LEVEL3, RES_POOLCOLL_BUL_LEVEL4, RES_POOLCOLL_BUL_LEVEL5, -+ RES_POOLCOLL_NUM_LEVEL2, RES_POOLCOLL_NUM_LEVEL3, RES_POOLCOLL_NUM_LEVEL4, RES_POOLCOLL_NUM_LEVEL5, -+ -+ RES_POOLCOLL_DOC_TITEL, RES_NONE, RES_POOLCOLL_SIGNATURE, RES_NONE, -+ RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_MOVE, RES_NONE, RES_NONE, -+ -+ RES_NONE, RES_NONE, RES_NONE, RES_NONE, RES_POOLCOLL_DOC_SUBTITEL }; -+ static const sal_Char *stiName[] = { -+ "Normal", -+ "heading 1", -+ "heading 2", -+ "heading 3", -+ "heading 4", -+ "heading 5", -+ "heading 6", -+ "heading 7", -+ "heading 8", -+ "heading 9", -+ "index 1", -+ "index 2", -+ "index 3", -+ "index 4", -+ "index 5", -+ "index 6", -+ "index 7", -+ "index 8", -+ "index 9", -+ "toc 1", -+ "toc 2", -+ "toc 3", -+ "toc 4", -+ "toc 5", -+ "toc 6", -+ "toc 7", -+ "toc 8", -+ "toc 9", -+ "Normal Indent", -+ "footnote text", -+ "annotation text", -+ "header", -+ "footer", -+ "index heading", -+ "caption", -+ "table of figures", -+ "envelope address", -+ "envelope return", -+ "footnote reference", -+ "annotation reference", -+ "line number", -+ "page number", -+ "endnote reference", -+ "endnote text", -+ "table of authorities", -+ "macro", -+ "toa heading", -+ "List", -+ "List Bullet", -+ "List Number", -+ "List 2", -+ "List 3", -+ "List 4", -+ "List 5", -+ "List Bullet 2", -+ "List Bullet 3", -+ "List Bullet 4", -+ "List Bullet 5", -+ "List Number 2", -+ "List Number 3", -+ "List Number 4", -+ "List Number 5", -+ "Title", -+ "Closing", -+ "Signature", -+ "Default Paragraph Font", -+ "Body Text", -+ "Body Text Indent", -+ "List Continue", -+ "List Continue 2", -+ "List Continue 3", -+ "List Continue 4", -+ "List Continue 5", -+ "Message Header", -+ "Subtitle", -+ }; -+ -+ -+ ASSERT( ( sizeof( aArr ) / sizeof( RES_POOL_COLLFMT_TYPE ) == 75 ), -+ "Style-UEbersetzungstabelle hat falsche Groesse" ); -+ ASSERT( ( sizeof( stiName ) / sizeof( *stiName ) == 75 ), -+ "Style-UEbersetzungstabelle hat falsche Groesse" ); -+ -+ sal_uInt16 idcol = ::SwStyleNameMapper::GetPoolIdFromUIName( rName, eFlags ); -+ -+ for (int i = 0; i < sizeof( aArr ) / sizeof( *aArr ); i++) -+ { -+ if ( idcol == aArr[i] ) -+ { -+ return rtl::OUString::createFromAscii(stiName[i]); -+ } -+ } -+ return ::SwStyleNameMapper::GetProgName( idcol, String() ); -+} -+ -+ -+ - void SwRTFWriter::OutRTFStyleTab() - { - // das 0-Style ist das Default, wird nie ausgegeben !! -@@ -988,7 +1127,7 @@ - } - - Strm() << ' '; -- RTFOutFuncs::Out_String( Strm(), pColl->GetName(), DEF_ENCODING, -+ RTFOutFuncs::Out_String( Strm(), XlateFmtName( pColl->GetName(), GET_POOLID_TXTCOLL ), DEF_ENCODING, - bWriteHelpFmt ) << ";}" << SwRTFWriter::sNewLine; - } - -@@ -1015,8 +1154,8 @@ - } - - Strm() << ' '; -- RTFOutFuncs::Out_String( Strm(), pFmt->GetName(), DEF_ENCODING, -- bWriteHelpFmt ) << ";}" << SwRTFWriter::sNewLine; -+ RTFOutFuncs::Out_String( Strm(), XlateFmtName( pFmt->GetName(), GET_POOLID_CHRFMT ), DEF_ENCODING, -+ bWriteHelpFmt ) << ";}" << SwRTFWriter::sNewLine; - } - - Strm() << '}'; -@@ -1217,8 +1356,8 @@ - break; - Strm() << sRTF_PGDSCNXT; - OutULong( i ) << ' '; -- RTFOutFuncs::Out_String( Strm(), rPageDesc.GetName(), -- DEF_ENCODING, bWriteHelpFmt ) << ";}"; -+ RTFOutFuncs::Out_String( Strm(), XlateFmtName( rPageDesc.GetName(), GET_POOLID_PAGEDESC ), DEF_ENCODING, -+ bWriteHelpFmt ) << ";}"; - } - Strm() << '}' << SwRTFWriter::sNewLine; - bOutPageDesc = bOutPageDescTbl = FALSE; ---- ../sw/source/filter/rtf/wrtrtf.hxx.orig 2002-07-31 19:18:50.000000000 +0900 -+++ ../sw/source/filter/rtf/wrtrtf.hxx 2003-09-23 23:37:50.000000000 +0900 -@@ -117,6 +117,7 @@ - USHORT nAktFlyPos; // Index auf das naechste "FlyFrmFmt" - void OutRTFColorTab(); - void OutRTFFontTab(); -+ const rtl::OUString XlateFmtName( const rtl::OUString &rName, SwGetPoolIdFromName eFlags ); - void OutRTFStyleTab(); - void OutRTFListTab(); - -@@ -136,6 +137,8 @@ - USHORT nBkmkTabPos; // akt. Position in der Bookmark-Tabelle - USHORT nCurScript; // actual scripttype - -+ rtl_TextEncoding eCurrentCharSet; -+ - #if defined(MAC) || defined(UNX) - static const sal_Char sNewLine; // nur \012 oder \015 - #else ---- ../sw/source/filter/rtf/rtfatr.cxx.orig 2003-05-19 21:24:46.000000000 +0900 -+++ ../sw/source/filter/rtf/rtfatr.cxx 2003-09-23 23:45:52.000000000 +0900 -@@ -1319,7 +1319,7 @@ - sURL = aTmp.GetFull(); - } - */ rWrt.Strm() << '\"'; -- RTFOutFuncs::Out_String( rWrt.Strm(), sURL, DEF_ENCODING, -+ RTFOutFuncs::Out_String( rWrt.Strm(), sURL, rRTFWrt.eCurrentCharSet, - rRTFWrt.bWriteHelpFmt ) << "\" "; - sURL = aTmp.GetMark(); - } -@@ -1328,7 +1328,7 @@ - { - rWrt.Strm() << "\\\\l \""; - sURL.Erase( 0, 1 ); -- RTFOutFuncs::Out_String( rWrt.Strm(), sURL, DEF_ENCODING, -+ RTFOutFuncs::Out_String( rWrt.Strm(), sURL, rRTFWrt.eCurrentCharSet, - rRTFWrt.bWriteHelpFmt ) << "\" "; - } - -@@ -1609,7 +1609,7 @@ - - if( nStrPos != nEnde ) - RTFOutFuncs::Out_Char( rWrt.Strm(), rStr.GetChar( nStrPos ), -- DEF_ENCODING, rRTFWrt.bWriteHelpFmt ); -+ rRTFWrt.eCurrentCharSet, rRTFWrt.bWriteHelpFmt ); - } - - // noch eine schliesende Klammer da ?? -@@ -2188,6 +2188,7 @@ - const sal_Char* pCmd = bAssoc ? sRTF_AF : sRTF_F; - rWrt.Strm() << pCmd; - rWrt.OutULong(rRTFWrt.GetId(rFont)); -+ rRTFWrt.eCurrentCharSet = rFont.GetCharSet(); - } - return rWrt; - } diff --git a/editors/openoffice-1.1/files/pkg-message.de b/editors/openoffice-1.1/files/pkg-message.de new file mode 100644 index 000000000000..4466bdb7bee5 --- /dev/null +++ b/editors/openoffice-1.1/files/pkg-message.de @@ -0,0 +1,89 @@ +OpenOffice.org Version 1.1.2 Installationsanleitung + +Geschrieben von: Martin Blapp <mbr@freebsd.org> + +OpenOffice.org ist bald im Verzeichnis +${PREFIX}/OpenOffice.org1.1.2/ installiert. + +1 Benutzerinstallation +---------------------- + +Nachdem der Port oder das Package installiert ist +kann OO.org mit "openoffice" gestartet werden. Beim +ersten Mal wird das OO.org Setup aufgerufen und in +Ihrem Benutzerverzeichnis das Verzeichnis +"OpenOffice.org1.1.2" angelegt. Ebenfalls werden +Sie während des Setups nach einem installierten +Java JDK gefragt. + +Falls das Setup mit der Fehlermeldung abbricht, dass +schon eine Version installiert sei (von einem vorherigen +Installationsversuch), kann ein Blick in die Datei +".sversionrc" helfen. In dieser Datei speichern Openoffice +wie auch alle Staroffice Versionen Informationen ’…r die +Installation ab. Lšáhen Sie die problematische Zeile +und die Installation wird nun funktionieren. + +2 Start von OO.org +------------------ + +Die FreeBSD-Version von OO.org installiert nun ein Skript +zum schnellen Aufruf. Bitte f”ãn Sie "${PREFIX}/bin/" +zu Ihrer ENV-Variable PATH hinzu und sie werden OO.org +einfacher aufrufen k˜Žen: + +${PREFIX}/bin/openoffice +${PREFIX}/bin/openoffice-sagenda +${PREFIX}/bin/openoffice-scalc +${PREFIX}/bin/openoffice-sdraw +${PREFIX}/bin/openoffice-setup +${PREFIX}/bin/openoffice-sfax +${PREFIX}/bin/openoffice-simpress +${PREFIX}/bin/openoffice-spadmin +${PREFIX}/bin/openoffice-sweb +${PREFIX}/bin/openoffice-swriter + +OO.org verlangt dass die ENV-Variable LANG auf einen +brauchbaren Wert gesetzt ist. Wenn LANG nicht definiert +ist, so verwendet das Startup-Skript eine Standard-Einstellung, +Momentan wird "de_DE.ISO_8859-15" verwendet. Sie k˜Žen diese +Einstellung auch im Startup-Skript ändern. + +Wenn Sie einen älteren X-Server vor der XFree86 Version 4.2 +verwenden, k˜Žen Warnungen auftreten. Ignorieren Sie diese +oder verwenden Sie eine neuere Version. + +Falls US-ASCII verwendet wird, k˜Žen Sie Dokumente mit +Umlauten und Sonderzeichen im Dateinamen nicht mehr speichern +und laden, und natšŒich werden Sie auch im OO.org keine +dieser Zeichen mehr tippen k˜Žen. + +3 Setup Probleme (nur FreeBSD < 4.7-RELEASE) +-------------------------------------------- + +Falls sich das Setup ’…r eine fehlende Datei mit Namen +"setup.ins" beklagt, so ist es an der Zeit Ihr System auf +die neueste FreeBSD-Version zu aktualisieren. FreeBSD +4.7-RELEASE und neuer hat dieses Problem nicht. + +4 Abstšše bei der URL-Leiste (nur FreeBSD < 4.7-RELEASE) +--------------------------------------------------------- + +Bei älteren FreeBSD-Version als 4.7-RELEASE kann OO.org +bei Eingaben in der URL-Leiste abstššen, falls ein nicht +existierender Dateiname eingegeben wird. Der folgende +Systempatch schafft Abhilfe: + +http://people.freebsd.org/~mbr/ooo/rtld-symlookup.diff + +5 Absturz nach dem Wechseln zu einer anderen Sprachversion +---------------------------------------------------------- + +Falls Sie zuerst die englische Version von OO.org installiert +haben und nachträglich auf eine andere Sprachversion gewechselt +haben, so kann dies OO.org zum Absturz bringen. + +Abhilfe schafft in diesem Fall nur das Lšáhen des bestehenden +OpenOffice.org1.1.2 Verzeichnisses und des entsprechenden +Eintrags aus der Datei ".sversionrc" mit anschliessender neuer +Benutzer-Installation. |