[Libreoffice-commits] .: sc/inc sc/Library_scfilt.mk sc/source

Michael Meeks michael at kemper.freedesktop.org
Tue Jul 10 06:06:45 PDT 2012


 sc/Library_scfilt.mk              |    2 
 sc/inc/filter.hxx                 |    5 
 sc/source/filter/inc/exp_op.hxx   |   43 ----
 sc/source/filter/inc/ftools.hxx   |    3 
 sc/source/filter/lotus/expop.cxx  |  405 --------------------------------------
 sc/source/filter/lotus/export.cxx |   45 ----
 sc/source/ui/docshell/impex.cxx   |    3 
 7 files changed, 506 deletions(-)

New commits:
commit 8f42220c6dfc49268f7e1b460a48d9f3d340c40b
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Mon Jul 9 23:11:56 2012 +0900

    removed deserted Lotus 1-2-3 export filter
    
    which has never enabled so far since its birth at 2008
    
    Change-Id: Ifd2e2f1108f44d5816783bf67f11e500eea0c170

diff --git a/sc/Library_scfilt.mk b/sc/Library_scfilt.mk
index 76066b6..2c83049 100644
--- a/sc/Library_scfilt.mk
+++ b/sc/Library_scfilt.mk
@@ -128,8 +128,6 @@ $(eval $(call gb_Library_add_exception_objects,scfilt,\
 	sc/source/filter/html/htmlexp2 \
 	sc/source/filter/html/htmlimp \
 	sc/source/filter/html/htmlpars \
-	sc/source/filter/lotus/expop \
-	sc/source/filter/lotus/export \
 	sc/source/filter/lotus/filter \
 	sc/source/filter/lotus/lotattr \
 	sc/source/filter/lotus/lotform \
diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx
index 9b470b5..ac943f5 100644
--- a/sc/inc/filter.hxx
+++ b/sc/inc/filter.hxx
@@ -32,8 +32,6 @@
 #include <tools/string.hxx>
 #include <rtl/textenc.h>
 
-#define ENABLE_LOTUS123_EXPORT 0
-
 class SfxMedium;
 class SvStream;
 
@@ -112,9 +110,6 @@ class ScFormatFilterPlugin {
     virtual String         GetHTMLRangeNameList( ScDocument* pDoc, const String& rOrigName ) = 0;
 
     // various export filters
-#if ENABLE_LOTUS123_EXPORT
-    virtual FltError ScExportLotus123( SvStream&, ScDocument*, ExportFormatLotus, CharSet eDest ) = 0;
-#endif
     virtual FltError ScExportExcel5( SfxMedium&, ScDocument*, ExportFormatExcel eFormat, CharSet eDest ) = 0;
     virtual FltError ScExportDif( SvStream&, ScDocument*, const ScAddress& rOutPos, const CharSet eDest,
                                  sal_uInt32 nDifOption = SC_DIFOPT_EXCEL ) = 0;
diff --git a/sc/source/filter/inc/exp_op.hxx b/sc/source/filter/inc/exp_op.hxx
index 5781224..aad9325 100644
--- a/sc/source/filter/inc/exp_op.hxx
+++ b/sc/source/filter/inc/exp_op.hxx
@@ -61,49 +61,6 @@ public:
 
 
 
-#if ENABLE_LOTUS123_EXPORT
-class ExportWK1 : public ExportTyp
-{
-private:
-    sal_uInt8               GenFormByte( const ScPatternAttr& );
-    void                Bof();
-    void                Eof();
-    void                Calcmode();
-    void                Calcorder();
-    void                Split();
-    void                Sync();
-    void                Dimensions();
-    void                Window1();
-    void                Colw();
-    void                Blank( const sal_uInt16 nC, const sal_uInt16 nR, const ScPatternAttr& );
-    void                Number( const sal_uInt16 nC, const sal_uInt16 nR, const double f, const ScPatternAttr& );
-    void                Label( const sal_uInt16 nC, const sal_uInt16 nR, const String&, const ScPatternAttr& );
-    void                Formula( const sal_uInt16 nC, const sal_uInt16 nR, const ScFormulaCell*, const ScPatternAttr& );
-    void                Protect();
-    void                Footer();
-    void                Header();
-    void                Margins();
-    void                Labelfmt();
-    void                Calccount();
-    void                Cursorw12();
-    void                WKString( const sal_uInt16 nC, const sal_uInt16 nR, const ScFormulaCell*, const ScPatternAttr& );
-    void                Snrange();
-    void                Hidcol();
-    void                Cpi();
-public:
-
-    static  const sal_uInt16    WK1MAXCOL;
-    static  const sal_uInt16    WK1MAXROW;
-
-    inline              ExportWK1( SvStream& r, ScDocument* p, CharSet e ) :
-                            ExportTyp( r, p, e ) {};
-
-    FltError            Write();
-};
-#endif
-
-
-
 class ExportBiff5 : public ExportTyp, protected XclExpRoot
 {
 private:
diff --git a/sc/source/filter/inc/ftools.hxx b/sc/source/filter/inc/ftools.hxx
index c1c0464..1ffd57f 100644
--- a/sc/source/filter/inc/ftools.hxx
+++ b/sc/source/filter/inc/ftools.hxx
@@ -314,9 +314,6 @@ class ScFormatFilterPluginImpl : public ScFormatFilterPlugin {
     virtual String         GetHTMLRangeNameList( ScDocument* pDoc, const String& rOrigName );
 
     // various export filters
-#if ENABLE_LOTUS123_EXPORT
-    virtual FltError ScExportLotus123( SvStream&, ScDocument*, ExportFormatLotus, CharSet eDest );
-#endif
     virtual FltError ScExportExcel5( SfxMedium&, ScDocument*, ExportFormatExcel eFormat, CharSet eDest );
     virtual FltError ScExportDif( SvStream&, ScDocument*, const ScAddress& rOutPos, const CharSet eDest,
                                  sal_uInt32 nDifOption = SC_DIFOPT_EXCEL );
diff --git a/sc/source/filter/lotus/expop.cxx b/sc/source/filter/lotus/expop.cxx
deleted file mode 100644
index d635d7b..0000000
--- a/sc/source/filter/lotus/expop.cxx
+++ /dev/null
@@ -1,405 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org 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 version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "dociter.hxx"
-#include "cell.hxx"
-#include "document.hxx"
-
-#include "exp_op.hxx"
-
-#if ENABLE_LOTUS123_EXPORT
-const sal_uInt16 ExportWK1::WK1MAXCOL = 255;
-const sal_uInt16 ExportWK1::WK1MAXROW = 8191;
-
-sal_uInt8 ExportWK1::GenFormByte( const ScPatternAttr& /*aAttr*/ )
-{
-    return 0xFF;
-}
-
-
-inline void ExportWK1::Bof()
-{   // (0x00)
-    aOut << ( sal_uInt16 ) 0x00 << ( sal_uInt16 ) 2 << ( sal_uInt16 ) 0x0406;   // Version 1-2-3/2, Symhony/1.1
-}
-
-
-inline void ExportWK1::Eof()
-{   // (0x01)
-    aOut << ( sal_uInt16 ) 0x01 << ( sal_uInt16 ) 0;
-}
-
-
-inline void ExportWK1::Calcmode()
-{   // (0x02)
-    // Calculationmode = automatic
-    aOut << ( sal_uInt16 ) 0x02 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0xFF;
-}
-
-
-inline void ExportWK1::Calcorder()
-{   // (0x03)
-    // order = natural
-    aOut << ( sal_uInt16 ) 0x03 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Split()
-{   // (0x04)
-    // not split
-    aOut << ( sal_uInt16 ) 0x04 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Sync()
-{   // (0x05)
-    // not synchronized
-    aOut << ( sal_uInt16 ) 0x05 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Dimensions()
-{   // (0x06)
-    SCCOL nEndCol;
-    SCROW nEndRow;
-    aOut << ( sal_uInt16 ) 0x06 << ( sal_uInt16 ) 8 << ( sal_uInt16 ) 0 << ( sal_uInt16 ) 0;        // Starting Col/Row
-    pD->GetPrintArea( 0, nEndCol, nEndRow );
-#if SC_ROWLIMIT_MORE_THAN_64K
-#error row limit 64k
-#endif
-    sal_uInt16 nCol = static_cast<sal_uInt16>(nEndCol);
-    sal_uInt16 nRow = static_cast<sal_uInt16>(nEndRow);
-    OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Dimensions(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Dimensions(): Row > WK1MAXROW" );
-    aOut << nCol << nRow;   // Ending Col/Row
-}
-
-
-inline void ExportWK1::Window1()
-{   // (0x07)
-    aOut << ( sal_uInt16 ) 0x07 << ( sal_uInt16 ) 32
-        << ( sal_uInt16 ) 0 << ( sal_uInt16 ) 0 // Cursor Col/Row
-        << ( sal_uInt8 ) 0xFF                // Format: protected, special, default
-        << ( sal_uInt8 ) 0                   // Dummy
-        << ( sal_uInt16 ) 9                 // Default column width
-        << ( sal_uInt16 ) 8 << ( sal_uInt16 ) 14// Number of cols/rows on screen
-        << ( sal_uInt16 ) 0 << ( sal_uInt16 ) 0 // Left col / top row
-                                        // Rest aus Doku-Beispiel
-        << ( sal_uInt16 ) 0 << ( sal_uInt16 ) 0 // Number of title cols / rows
-        << ( sal_uInt16 ) 0 << ( sal_uInt16 ) 0 // Left title col / top title row
-        << ( sal_uInt16 ) 0x0004 << ( sal_uInt16 ) 0x0004// Top-left col / row
-        << ( sal_uInt16 ) 0x0048            // Number of cols in window
-        << ( sal_uInt16 ) 0x00;             // Dummy
-}
-
-
-inline void ExportWK1::Colw()
-{   // (0x08)
-    // ACHTUNG: muss nach Window1 und vor hidden cols record kommen!
-    sal_uInt16  nWidth;
-    sal_uInt8   nWidthSpaces;
-    for( sal_uInt16 nCol = 0 ; nCol < 256 ; nCol++ )
-    {
-        nWidth = pD->GetColWidth( static_cast<SCCOL>(nCol), 0 );
-        nWidthSpaces = ( sal_uInt8 ) ( nWidth / TWIPS_PER_CHAR );
-        aOut << ( sal_uInt16 ) 0x08 << ( sal_uInt16 ) 3 << nCol << nWidthSpaces;
-    }
-}
-
-
-void ExportWK1::Blank( const sal_uInt16 nCol, const sal_uInt16 nRow, const ScPatternAttr& aAttr )
-{   // (0x0C)
-    // PREC:    nCol <= WK1MAXCOL, nRow <= WK1MAXROW
-    OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Blank(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Blank(): Row > WK1MAXROW" );
-
-    aOut << ( sal_uInt16 ) 0x0C << ( sal_uInt16 ) 5 << GenFormByte( aAttr ) << nCol << nRow;
-}
-
-
-void ExportWK1::Number( const sal_uInt16 nCol, const sal_uInt16 nRow, const double fWert, const ScPatternAttr &aAttr )
-{   // (0x0E)
-    // PREC:    nCol <= WK1MAXCOL, nRow <= WK1MAXROW
-    OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Number(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Number(): Row > WK1MAXROW" );
-
-    aOut << ( sal_uInt16 ) 0x0E << ( sal_uInt16 ) 13 << GenFormByte( aAttr ) << nCol << nRow << fWert;
-}
-
-
-void ExportWK1::Label( const sal_uInt16 nCol, const sal_uInt16 nRow, const String& rStr, const ScPatternAttr& aAttr )
-{   // (0x0F)
-    // PREC:    nCol <= WK1MAXCOL, nRow <= WK1MAXROW
-    OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Label(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Label(): Row > WK1MAXROW" );
-
-    rtl::OString aStr(rtl::OUStringToOString(rStr, eZielChar));
-
-    sal_uInt16      nLaenge = 7;         // Anzahl Bytes vor String+Nullbyte am Ende + Alignment-Char
-
-    sal_Int32 nAnz = aStr.getLength();
-
-
-    if( nAnz > 240 )            // max. 240 Zeichen im String
-        nAnz = 240;
-
-    nLaenge = nLaenge + ( sal_uInt16 ) nAnz;            // + Stringlaenge
-
-    aOut << ( sal_uInt16 ) 0x0F << nLaenge << GenFormByte( aAttr ) << nCol << nRow << ( sal_Char ) '\'';
-                    // ACHTUNG: ZUNAECHST NUR LEFT ALIGNMENT
-
-    aOut.Write( aStr.getStr(), nAnz );
-
-    aOut << ( sal_uInt8 ) 0x00;      // ...und Nullterminator anhaengen
-}
-
-
-void ExportWK1::Formula( const sal_uInt16 nCol, const sal_uInt16 nRow, const ScFormulaCell* pFC, const ScPatternAttr& aAttr )
-{   // (0x10)
-    // PREC:    nCol <= WK1MAXCOL, nRow <= WK1MAXROW
-    OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Formula(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Formula(): Row > WK1MAXROW" );
-
-    sal_uInt16  nLaenge = 15;    // Bytes bis Formel
-    double  fErgebnis;
-
-    // zunaechst nur Dummy-Angaben (Formel := Ergebnis der Berechnung )
-    nLaenge += 9+1;
-
-    fErgebnis = ( ( ScFormulaCell* ) pFC )->GetValue();
-
-    aOut << ( sal_uInt16 ) 0x10 << ( sal_uInt16 ) nLaenge
-        << GenFormByte( aAttr ) << nCol << nRow
-        << fErgebnis
-        << ( sal_uInt16 ) 9+1               // Dummy-Formula-Size
-        << ( sal_uInt8 ) 0x00                // constant, floating point
-        << fErgebnis
-        << ( sal_uInt8 ) 0x03;               // return
-}
-
-
-inline void ExportWK1::Protect()
-{   // (0x24)
-    //Global protection off
-    aOut << ( sal_uInt16 ) 0x24 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Footer()
-{   // (0x25)
-    // zunaechst nur leerer C-String
-    aOut << ( sal_uInt16 ) 0x25 << ( sal_uInt16 ) 242 << ( sal_Char ) '\'';   // linksbuendiger leerer String
-    for( short nLauf = 0 ; nLauf < 241 ; nLauf++ )
-        aOut << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Header()
-{   // (0x26)
-    // zunaechst nur leerer C-String
-    aOut << ( sal_uInt16 ) 0x26 << ( sal_uInt16 ) 242 << ( sal_Char ) '\'';   // linksbuendiger leerer String
-    for( short nLauf = 0 ; nLauf < 241 ; nLauf++ )
-        aOut << ( sal_uInt8 ) 0x00;
-}
-
-
-inline void ExportWK1::Margins()
-{   // (0x28)
-    aOut << ( sal_uInt16 ) 0x28 << ( sal_uInt16 ) 10
-        << ( sal_uInt16 ) 4 << ( sal_uInt16 ) 76    // Left/right margin
-        << ( sal_uInt16 ) 66                    // Page length
-        << ( sal_uInt16 ) 2 << ( sal_uInt16 ) 2;    // Top/Bottom margin
-}
-
-
-inline void ExportWK1::Labelfmt()
-{   // (0x29)
-    // Global label alignment = left
-    aOut << ( sal_uInt16 ) 0x29 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 0x27;
-}
-
-
-inline void ExportWK1::Calccount()
-{   // (0x2F)
-    // Iteration count = 16 (oder so aehnlich)
-    aOut << ( sal_uInt16 ) 0x2F << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 16;
-}
-
-
-inline void ExportWK1::Cursorw12()
-{   // (0x31)
-    // Cursor location in window 1
-    aOut << ( sal_uInt16 ) 0x31 << ( sal_uInt16 ) 1 << ( sal_uInt8 ) 1;
-}
-
-
-void ExportWK1::WKString( const sal_uInt16 /*nCol*/, const sal_uInt16 /*nRow*/, const ScFormulaCell* /*pFC*/, const ScPatternAttr& /*aAttr*/ )
-{   // (0x33)
-    // PREC:    nCol <= WK1MAXCOL, nRow <= WK1MAXROW
-/*  OSL_ENSURE( nCol <= WK1MAXCOL, "ExportWK1::Label(): Col > WK1MAXCOL" );
-    OSL_ENSURE( nRow <= WK1MAXROW, "ExportWK1::Label(): Row > WK1MAXROW" );
-
-    String aStr;
-    ( ( ScFormulaCell * ) pFC )->GetString( aStr );     // Formeltext zunaechst so belassen
-
-    sal_uInt16 nLaenge = 6;         // Anzahl Bytes vor String+Nullbyte am Ende
-
-    sal_uInt16 nAnz = aStr.Len();
-
-    if( nAnz > 240 )            // max. 240 Zeichen im String
-        nAnz = 240;
-
-    nLaenge += nAnz;            // + Stringlaenge
-
-    aOut << ( sal_uInt16 ) 0x33 << nLaenge
-        << GenFormByte( aAttr ) << nCol << nRow;
-
-    // Zeichenweise String ausgeben
-    for( sal_uInt16 nLauf = 0 ; nLauf < nAnz ; nLauf++ )
-        aOut << aStr[ nLauf ];
-
-    aOut << ( sal_uInt8 ) 0x00;      // ...und Nullterminator anhaengen
-*/
-    }
-
-
-inline void ExportWK1::Snrange()
-{   // (0x47)
-    //aOut << ( sal_uInt16 ) 0x47 << ( sal_uInt16 ) x
-/*  ScRangeName *pRanges = pD->GetRangeName();
-    ScRangeData *pData;
-    String aName;
-
-    sal_uInt16 nAnz = pRanges->GetCount();
-
-    for( sal_uInt16 nLauf = 0 ; nLauf < nAnz ; nLauf++ )
-        {
-        pData = pRanges[ nLauf ];
-
-        }
-*/
-}
-
-
-inline void ExportWK1::Hidcol()
-{   // (0x64)
-    sal_uInt32 nHide = 0x00000000;   // ...niemand ist versteckt
-
-    aOut << ( sal_uInt16 ) 0x64 << ( sal_uInt16 ) 32;
-
-    for( int nLauf = 0 ; nLauf < 8 ; nLauf++ )
-        aOut << nHide;          // 8 * 32 Bits = 256
-}
-
-
-inline void ExportWK1::Cpi()
-{   // (0x96)
-    //aOut << ( sal_uInt16 ) 0x96 << ( sal_uInt16 ) x;
-}
-
-
-FltError ExportWK1::Write()
-{
-    Bof();
-    //Dimensions();
-    //Cpi();
-    //Calccount();
-    //Calcmode();
-    //Calcorder();
-    //Split();
-    //Sync();
-    //Window1();
-    Colw();
-    //Hidcol();
-    //Cursorw12();
-    //Snrange();
-    //Protect();
-    //Footer();
-    //Header();
-    //Margins();
-    //Labelfmt();
-
-    // Zellen-Bemachung
-    ScDocumentIterator      aIter( pD, 0, 0 );
-    ScBaseCell*             pCell;
-    sal_uInt16                  nCol, nRow;
-    SCTAB                   nTab;
-    const ScPatternAttr*    pPatAttr;
-
-    if( aIter.GetFirst() )
-        do
-        {   // ueber alle Zellen der ersten Tabelle iterieren
-            pPatAttr = aIter.GetPattern();
-            pCell = aIter.GetCell();
-            SCCOL nScCol;
-            SCROW nScRow;
-            aIter.GetPos( nScCol, nScRow, nTab );
-#if SC_ROWLIMIT_MORE_THAN_64K
-#error row limit 64k
-#endif
-            nCol = static_cast<sal_uInt16>(nScCol);
-            nRow = static_cast<sal_uInt16>(nScRow);
-
-            switch( pCell->GetCellType() )
-            {
-                case CELLTYPE_VALUE:
-                {
-                    double  fVal;
-                    fVal = ( ( ScValueCell * ) pCell)->GetValue();
-                    Number( nCol, nRow, fVal, *pPatAttr );
-                }
-                    break;
-                case CELLTYPE_STRING:
-                {
-                    String  aStr;
-                    ( ( ScStringCell * ) pCell)->GetString( aStr );
-                    Label( nCol, nRow, aStr, *pPatAttr );
-                }
-                    break;
-                case CELLTYPE_FORMULA:
-                {
-                    Formula( nCol, nRow, ( ScFormulaCell * ) pCell, *pPatAttr );
-                    WKString( nCol, nRow, ( ScFormulaCell * ) pCell, *pPatAttr );
-                }
-                    break;
-                case CELLTYPE_NOTE:
-                case CELLTYPE_NONE:
-                    break;
-                default:
-                    OSL_ENSURE( false, "ExportWK1::Write(): unbekannter Celltype!" );
-            }
-        }
-        while( aIter.GetNext() );
-
-    Eof();
-
-    return eERR_OK;
-}
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/filter/lotus/export.cxx b/sc/source/filter/lotus/export.cxx
deleted file mode 100644
index 8b67dbf..0000000
--- a/sc/source/filter/lotus/export.cxx
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#include "scerrors.hxx"
-#include "exp_op.hxx"
-
-#if ENABLE_LOTUS123_EXPORT
-FltError ScFormatFilterPluginImpl::ScExportLotus123( SvStream& aStream, ScDocument* pDoc, ExportFormatLotus eFormat, CharSet eDest )
-{
-    switch( eFormat )
-    {
-        case ExpWK1:
-        {
-            ExportWK1 aWKFile( aStream, pDoc, eDest );
-            aWKFile.Write();
-        }
-            break;
-        case ExpWK3:
-            return eERR_NI;
-        default:
-            return eERR_NI;
-    }
-
-    return eERR_OK;
-}
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index e58782f..abd719e 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -2238,9 +2238,6 @@ class ScFormatFilterMissing : public ScFormatFilterPlugin {
     virtual ScEEAbsImport *CreateHTMLImport( ScDocument*, const String&, const ScRange&, bool ) { return NULL; }
     virtual String         GetHTMLRangeNameList( ScDocument*, const String& ) { return String(); }
 
-#if ENABLE_LOTUS123_EXPORT
-    virtual FltError ScExportLotus123( SvStream&, ScDocument*, ExportFormatLotus, CharSet ) RETURN_ERROR
-#endif
     virtual FltError ScExportExcel5( SfxMedium&, ScDocument*, ExportFormatExcel, CharSet ) RETURN_ERROR
     virtual FltError ScExportDif( SvStream&, ScDocument*, const ScAddress&, const CharSet, sal_uInt32 ) RETURN_ERROR
     virtual FltError ScExportDif( SvStream&, ScDocument*, const ScRange&, const CharSet, sal_uInt32 ) RETURN_ERROR


More information about the Libreoffice-commits mailing list