summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-04-11 10:43:22 +0200
committerDavid Tardon <dtardon@redhat.com>2011-04-14 16:15:21 +0200
commit799fcf0d71430a935a73fe1b339599bbd7cb2ce1 (patch)
tree5c68f15d9e6b15de8cb99b4caf65d3f277e20ab3
parentb33312110dddaaeabf566f23861e94d9685935f9 (diff)
remove unused files
-rw-r--r--lotuswordpro/Library_lwpft.mk7
-rw-r--r--lotuswordpro/source/filter/lwpchartstreamtools.cxx360
-rw-r--r--lotuswordpro/source/filter/lwpchartstreamtools.hxx152
-rw-r--r--lotuswordpro/source/filter/lwpchartwrapper.cxx96
-rw-r--r--lotuswordpro/source/filter/lwpchartwrapper.hxx82
-rw-r--r--lotuswordpro/source/filter/schxmlwrapper.cxx491
-rw-r--r--lotuswordpro/source/filter/schxmlwrapper.hxx121
-rw-r--r--lotuswordpro/source/filter/xfilter/xfchartstreamtools.cxx120
-rw-r--r--lotuswordpro/source/filter/xfilter/xfchartstreamtools.hxx114
-rw-r--r--lotuswordpro/source/filter/xfilter/xfchartxmlhandler.cxx127
-rw-r--r--lotuswordpro/source/filter/xfilter/xfchartxmlhandler.hxx132
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawchart.cxx93
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawchart.hxx96
-rw-r--r--lotuswordpro/source/filter/xfilter/xftexttable.cxx140
-rw-r--r--lotuswordpro/source/filter/xfilter/xftexttable.hxx85
15 files changed, 0 insertions, 2216 deletions
diff --git a/lotuswordpro/Library_lwpft.mk b/lotuswordpro/Library_lwpft.mk
index 9b339c7d2cfb..5654e8305bab 100644
--- a/lotuswordpro/Library_lwpft.mk
+++ b/lotuswordpro/Library_lwpft.mk
@@ -230,12 +230,5 @@ $(eval $(call gb_Library_add_exception_objects,lwpft,\
lotuswordpro/source/filter/xfilter/xftimestyle \
lotuswordpro/source/filter/xfilter/xfutil \
))
- # lotuswordpro/source/filter/lwpchartstreamtools
- # lotuswordpro/source/filter/lwpchartwrapper
- # lotuswordpro/source/filter/schxmlwrapper
- # lotuswordpro/source/filter/xfilter/xfchartstreamtools
- # lotuswordpro/source/filter/xfilter/xfchartxmlhandler
- # lotuswordpro/source/filter/xfilter/xfdrawchart
- # lotuswordpro/source/filter/xfilter/xftexttable
# vim: set noet ts=4 sw=4:
diff --git a/lotuswordpro/source/filter/lwpchartstreamtools.cxx b/lotuswordpro/source/filter/lwpchartstreamtools.cxx
deleted file mode 100644
index d2690c2401f9..000000000000
--- a/lotuswordpro/source/filter/lwpchartstreamtools.cxx
+++ /dev/null
@@ -1,360 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
-2005/2 draft code for implementation of chart stream helpers
-****************************************************************************/
-
-/**
- * @file
- * For LWP filter architecture prototype
-*/
-
-#include "lwpchartstreamtools.hxx"
-#include "xfilter/xfdrawchart.hxx"
-#include "xfilter/xfparagraph.hxx"
-
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-
-/**
-* @short Get the chart stream from bento layer
-* @descr
-* @param pDocStream the document stream
-* @param pChartName The name of the requested chart stream
-* @return pStream The chart stream, may be NULL
-*/
-SvStream* LwpChartStreamTools::GetChartStream(LwpSvStream* pDocStream, const char* pChartName)
-{
- // if small file, use the compressed stream for BENTO
- LwpSvStream *pSvStream = pDocStream->GetCompressedStream() ? pDocStream->GetCompressedStream(): pDocStream;
-
- SvStream* pStream = NULL;
- pSvStream->Seek(0);
- OpenStormBento::LtcBenContainer* pContainer = NULL;;
- sal_uLong nRet = OpenStormBento::BenOpenContainer(pSvStream,&pContainer);
- if (nRet != OpenStormBento::BenErr_OK)
- pStream = pContainer->FindValueStreamWithPropertyName(pChartName);
- return pStream;
-}
-
-/**
-* @short Output the chart into output stream
-* @param aChartRect the rectangle of the chart
-* @param pXChartStrm Chart stream
-* @param pOutputStream the output stream
-*/
-void LwpChartStreamTools::OutputChart(XFRect aChartRect, IXFContent* pXChartStrm, IXFStream* pOutputStream)
-{
- XFDrawChart* pXChart = new XFDrawChart;
- pXChart->SetPosition(aChartRect);
- pXChart->Add(pXChartStrm);
-
- //write to xml
- XFParagraph xpara;
- xpara.Add(pXChart);
- xpara.ToXml(pOutputStream);
-}
-
-void LwpChartStreamTools::OutputChart(XFRect aChartRect, IXFContent* pXChartStrm, XFContentContainer* pCont, OUString strStyleName)
-{
- XFDrawChart* pXChart = new XFDrawChart;
- pXChart->SetStyleName( strStyleName);
- pXChart->SetPosition(aChartRect);
- pXChart->SetAnchorType(enumXFAnchorFrame);
- pXChart->Add(pXChartStrm);
-
- pCont->Add(pXChart);
-
- //write to xml
- /*XFParagraph* pPara = new XFParagraph();
- pPara->Add(pXChart);
- pCont->Add(pPara);
- */
-}
-
-/**
-* @short Get the stream length
-* @param pStream the stream
-* @param the stream length
-*/
-INT32 LwpChartStreamTools::GetStreamLen(SvStream* pStream)
-{
- UINT32 nPos = pStream->Tell();
- pStream->Seek(STREAM_SEEK_TO_END);
- INT32 nStrmLen = pStream->Tell();
- pStream->Seek(nPos);
- return nStrmLen;
-}
-
-/**
-* @short Make the chart storage object
-* @param pStream the chart stream
-* @param aChartRect the rectangle of the chart
-* @param xIPObj [out]the inplace object
-* @param xStorage [out]the storage object of the chart
-*/
-#include "lwpchartwrapper.hxx"
-void LwpChartStreamTools::MakeChartStorage( SvStream* pStream, Rectangle aChartRect, SvInPlaceObjectRef& xIPObj, SvStorageRef& xStorage)
-{
- // SfxItemSet aItemSet( rDoc.GetAttrPool()); //Style of chart area
- INT32 nStrmLen = GetStreamLen(pStream);
- LtcLwpChartWrapper aChart(pStream,nStrmLen);
- aChart.CreateChart(aChartRect,xIPObj,xStorage);
- aChart.Read();
-}
-
-/**
-* @short Translate the storage to XML stream
-* @param xStorage [out]the storage object of a chart
-* @param xIPObj [in]the inplace object
-*/
-#include "schxmlwrapper.hxx"
-void LwpChartStreamTools::ChartToXML(SvStorageRef xStorage, SvInPlaceObjectRef xIPObj)
-{
- xStorage->SetVersion( SOFFICE_FILEFORMAT_60 );
-
- SfxInPlaceObjectRef aSfxObj( xIPObj );
- SfxObjectShell* pSh = aSfxObj->GetObjectShell();
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xModel = pSh->GetModel();
-
- SchXMLWrapper aFilter( xModel, *xStorage, sal_False );
-
- // update user info before writing
- pSh->UpdateDocInfoForSave();
-
- aFilter.Export();
-}
-
-//void LwpChartStreamTools::ChartToXML(SvStorageRef xStorage, SvInPlaceObjectRef xIPObj)
-//{
-// xStorage->SetVersion( SOFFICE_FILEFORMAT_60 );
-//
-// SfxInPlaceObjectRef aSfxObj( xIPObj );
-// SfxObjectShell* pSh = aSfxObj->GetObjectShell();
-// pSh->Save();
-//}
-
-/**
-* @short Get the xml stream from the storage
-* @param xStorage the storage object
-* @param aStrmName the stream name
-*/
-SvStorageStreamRef LwpChartStreamTools::GetStream(SvStorageRef xStorage, String aStrmName)
-{
- SvStorageStreamRef rStream;
- if( ! xStorage->IsStream( aStrmName) )
- {
- assert(false);
- }
- else
- {
- rStream = xStorage->OpenStream( aStrmName, STREAM_READ | STREAM_NOCREATE );
- }
- return rStream;
-}
-
-/**
-* @short Dump the xml stream into a file
-*/
-void LwpChartStreamTools::DumpStream(SvStorageStreamRef rStream, char* aName)
-{
- INT32 nLen = GetStreamLen(&rStream);
- char* pBuf = new char[nLen];
- rStream->Read(pBuf, nLen);
- std::ofstream aFile(aName, ios_base::out);
- aFile.write(pBuf,nLen);
- rStream->Seek(0);
-}
-
-/**
-* @short Get the name of chart stream
-* @param pID the id of the VO_Graphic object, which map to a chart stream.
-* @return the name of the chart stream
-*/
-const char* LwpChartStreamTools::GetChartName(LwpObjectID* pID)
-{
-#define MAX_STREAMORSTORAGENAME 32 //The value is got from wordpro source
- static char pChartName[MAX_STREAMORSTORAGENAME];
-
- char aGrStrmPrefix[] = "Gr";
- char aDataStrmSuffix[] = "-D";
-
- sprintf( (char*)pChartName,"%s%lX,%lX%s", aGrStrmPrefix,pID->GetHigh(),
- pID->GetLow(),aDataStrmSuffix);
-
- return pChartName;
-}
-
-/**
-* @short Parse the chart stream in Bento layer.
-* @descr
-* @param pOutputStream the pointer to IXFStream, which output the xml content.
-* @return
-* @todo any error code return are needed?
-*/
-void LwpChartStreamTools::ParseChart( LwpSvStream* pDocStream,
- LwpObjectID* pID,
- Rectangle aRectIn100thMM,
- XFRect aRectInCM,
- IXFStream* pOutputStream)
-{
- XFChartStream* pXFChartStrm = new XFChartStream;
-
- try
- {
- //GetChartName
- const char* pChartName = GetChartName(pID);
-
- //Get chart stream
- SvStream* pStream = GetChartStream( pDocStream, pChartName );
- if (!pStream)
- {
- assert(false);
- return;
- }
-
- SvInPlaceObjectRef xIPObj;
- SvStorageRef xStorage;
-
- MakeChartStorage( pStream, aRectIn100thMM, xIPObj, xStorage);
- ChartToXML(xStorage, xIPObj);
-// SvStorageStreamRef rStyleStream = GetStream(xStorage,String::CreateFromAscii( "styles.xml" ));
- SvStorageStreamRef rCntStream = GetStream(xStorage,String::CreateFromAscii( "content.xml" ));
-// DumpStream(rCntStream,"d:\\allinone.xml");
- if (rCntStream.Is())
- {
- pXFChartStrm->SetChartStream(rCntStream);
- }
-
- OutputChart( aRectInCM, pXFChartStrm, pOutputStream);
-
- delete pStream;
- }
- catch (com::sun::star::xml::sax::SAXParseException&) {
- assert(false);
- }
- catch( com::sun::star::xml::sax::SAXException& )
- {
- assert(false);
- }
- catch( com::sun::star::io::IOException&)
- {
- assert(false);
- }
- catch( com::sun::star::uno::Exception&)
- {
- assert(false);
- }
-}
-
-void LwpChartStreamTools::ParseChart( LwpSvStream* pDocStream,
- LwpObjectID* pID,
- Rectangle aRectIn100thMM,
- XFRect aRectInCM,
- XFContentContainer* pCont,
- OUString strStyleName)
-{
- XFChartStream* pXFChartStrm = new XFChartStream;
-
- try
- {
- //GetChartName
- const char* pChartName = GetChartName(pID);
-
- //Get chart stream
- SvStream* pStream = GetChartStream( pDocStream, pChartName );
- if (!pStream)
- {
- assert(false);
- return;
- }
-
- SvInPlaceObjectRef xIPObj;
- SvStorageRef xStorage;
-
- MakeChartStorage( pStream, aRectIn100thMM, xIPObj, xStorage);
- ChartToXML(xStorage, xIPObj);
-// SvStorageStreamRef rStyleStream = GetStream(xStorage,String::CreateFromAscii( "styles.xml" ));
- SvStorageStreamRef rCntStream = GetStream(xStorage,String::CreateFromAscii( "content.xml" ));
-// DumpStream(rCntStream,"d:\\allinone.xml");
- if (rCntStream.Is())
- {
- pXFChartStrm->SetChartStream(rCntStream);
- }
-
- OutputChart( aRectInCM, pXFChartStrm, pCont, strStyleName);
-
- delete pStream;
- }
- catch (com::sun::star::xml::sax::SAXParseException& ) {
- assert(false);
- }
- catch( com::sun::star::xml::sax::SAXException& )
- {
- assert(false);
- }
- catch( com::sun::star::io::IOException&)
- {
- assert(false);
- }
- catch( com::sun::star::uno::Exception&)
- {
- assert(false);
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpchartstreamtools.hxx b/lotuswordpro/source/filter/lwpchartstreamtools.hxx
deleted file mode 100644
index 0a065348224b..000000000000
--- a/lotuswordpro/source/filter/lwpchartstreamtools.hxx
+++ /dev/null
@@ -1,152 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
-2005/2 draft code for chart stream helpers
-****************************************************************************/
-
-/**
- * @file
- * For LWP filter architecture prototype
-*/
-
-#ifndef LWPCHARTSTREAMTOOLS_HXX_
-#define LWPCHARTSTREAMTOOLS_HXX_
-
-#include <tools/stream.hxx>
-#include "bento.hxx"
-#include <tools/gen.hxx>
-#include <so3/ipobj.hxx>
-
-#include "lwpobjid.hxx"
-#include "lwpobjfactory.hxx"
-
-//For sax parser
-#ifndef _COM_SUN_STAR_XML_SAX_INPUTSOURCE_HPP_
-#include <com/sun/star/xml/sax/InputSource.hpp>
-#endif
-
-#ifndef _COM_SUN_STAR_XML_SAX_XDTDHANDLER_HPP_
-#include <com/sun/star/xml/sax/XDTDHandler.hpp>
-#endif
-
-#ifndef _COM_SUN_STAR_XML_SAX_XPARSER_HPP_
-#include <com/sun/star/xml/sax/XParser.hpp>
-#endif
-
-#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
-#include <comphelper/processfactory.hxx>
-#endif
-
-//using namespace ::com::sun::star;
-using namespace ::rtl;
-using namespace comphelper;
-
-#include "xfilter/xfchartxmlhandler.hxx"
-#include "xfilter/xfrect.hxx"
-class IXFContent;
-
-/**
-* @brief
-* tools class for chart stream process
-*/
-
-class LwpChartStreamTools
-{
-public:
- static SvStream* GetChartStream(LwpSvStream* pDocStream, const char* pChartName);
-
- static void OutputChart(XFRect aChartRect, IXFContent* pXChartStrm, IXFStream* pOutputStream);
-
- //Added by for XFConvert refactor, 03/31/2005
- static void OutputChart(XFRect aChartRect, IXFContent* pXChartStrm, XFContentContainer* pCont, OUString strStyleName);
- //End of Add
-
- static INT32 GetStreamLen(SvStream* pStream);
-
- static void MakeChartStorage( SvStream* pStream,
- Rectangle aChartRect,
- SvInPlaceObjectRef& xIPObj,
- SvStorageRef& xStorage);
-
- static void ChartToXML(SvStorageRef xStorage, SvInPlaceObjectRef xIPObj);
-
- static SvStorageStreamRef GetStream(SvStorageRef xStorage, String aStrmName);
-
- static void DumpStream(SvStorageStreamRef rStream, char* aName);
-
- static const char* GetChartName(LwpObjectID* pID);
-
-public:
- static void ParseChart( LwpSvStream* pDocStream,
- LwpObjectID* pID,
- Rectangle aRectIn100thMM,
- XFRect aRectInCM,
- IXFStream* pOutputStream);
- //Added by for XFConvert refactor, 03/31/2005
- static void ParseChart( LwpSvStream* pDocStream,
- LwpObjectID* pID,
- Rectangle aRectIn100thMM,
- XFRect aRectInCM,
- XFContentContainer* pCont,
- OUString strStyleName);
- //End of Add
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpchartwrapper.cxx b/lotuswordpro/source/filter/lwpchartwrapper.cxx
deleted file mode 100644
index 6f6698edc0e4..000000000000
--- a/lotuswordpro/source/filter/lwpchartwrapper.cxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-
-#include "lwpchartwrapper.hxx"
-#include <sschart/charttools.hxx>
-using namespace NAME_CHART;
-
-LtcLwpChartWrapper::LtcLwpChartWrapper(SvStream* pStream,UINT32 nStrmLen)
-{
- m_pImpChart.reset(new LtcImpChart(pStream,nStrmLen) );
-
- m_spDatahandler.reset(new ltcDataWindowHandler());
- m_pImpChart->SetData(m_spDatahandler);
-}
-
-sal_Bool LtcLwpChartWrapper::Read()
-{
- sal_Bool bRet = sal_False;
- m_pImpChart->SetStrmOffset(0);
- chtFltError eRet = m_pImpChart->Read();
- if (eChtERR_OK==eRet)
- {
- bRet = sal_True;
- }
- return bRet;
-}
-
-void LtcLwpChartWrapper::CreateChart(Rectangle aChartRect,SvInPlaceObjectRef& xIPObj,SvStorageRef& xStorage)
-{
- m_pImpChart->CreateChartObj(aChartRect, xIPObj, xStorage);
-}
-
-//////////////////////////////////////////////////////////////////////////
-void LtcLwpChartDataHandler::ApplyAreaStyle()
-{
- CHART_TYPE eChartType = GetChartType();
- if ( eChartType==RADAR || eChartType==RADAR_AREA )
- {
- LtcChartTools::ApplyRadarDefaultArea(this,m_xChartDoc);
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/lwpchartwrapper.hxx b/lotuswordpro/source/filter/lwpchartwrapper.hxx
deleted file mode 100644
index 4db26356ab2b..000000000000
--- a/lotuswordpro/source/filter/lwpchartwrapper.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-#ifndef LWPCHARTWRAPPER_HXX_
-#define LWPCHARTWRAPPER_HXX_
-
-#include <sschart/ltcimpchart.hxx>
-#include <boost/shared_ptr.hpp>
-
-class LtcLwpChartWrapper
-{
-public:
- LtcLwpChartWrapper(SvStream* pStream,UINT32 nStrmLen);
- sal_Bool Read();
- void CreateChart(Rectangle aChartRect,SvInPlaceObjectRef& xIPObj,SvStorageRef& xStorage);
-
-private:
- auto_ptr<NAME_CHART::LtcImpChart> m_pImpChart;
- boost::shared_ptr<NAME_CHART::ltcDataWindowHandler> m_spDatahandler;
-};
-
-class LtcLwpChartDataHandler: public NAME_CHART::ltcDataWindowHandler
-{
-public:
- void ApplyAreaStyle();
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/schxmlwrapper.cxx b/lotuswordpro/source/filter/schxmlwrapper.cxx
deleted file mode 100644
index ace130409adf..000000000000
--- a/lotuswordpro/source/filter/schxmlwrapper.cxx
+++ /dev/null
@@ -1,491 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-
-#ifndef _COM_SUN_STAR_BEANS_PROPERTYATTRIBUTE_HXX_
-#include <com/sun/star/beans/PropertyAttribute.hpp>
-#endif
-#ifndef _COM_SUN_STAR_TASK_XSTATUSINDICATORSUPPLIER_HPP_
-#include <com/sun/star/task/XStatusIndicatorSupplier.hpp>
-#endif
-#ifndef _COM_SUN_STAR_DOCUMENT_XIMPORTER_HPP_
-#include <com/sun/star/document/XImporter.hpp>
-#endif
-#ifndef _COM_SUN_STAR_DOCUMENT_XFILTER_HPP_
-#include <com/sun/star/document/XFilter.hpp>
-#endif
-#ifndef _COM_SUN_STAR_DOCUMENT_XExporter_HPP_
-#include <com/sun/star/document/XExporter.hpp>
-#endif
-
-#ifndef _SFXDOCFILE_HXX
-#include <sfx2/docfile.hxx>
-#endif
-#ifndef _SFXECODE_HXX
-#include <svtools/sfxecode.hxx>
-#endif
-
-#include "schxmlwrapper.hxx"
-
-#ifndef _UTL_STREAM_WRAPPER_HXX_
-#include <unotools/streamwrap.hxx>
-#endif
-#ifndef _XMLGRHLP_HXX
-#include <svx/xmlgrhlp.hxx>
-#endif
-#ifndef _TOOLS_DEBUG_HXX
-#include <tools/debug.hxx>
-#endif
-#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
-#include <comphelper/processfactory.hxx>
-#endif
-
-#ifndef _COMPHELPER_GENERICPROPERTYSET_HXX_
-#include <comphelper/genericpropertyset.hxx>
-#endif
-#ifndef _COMPHELPER_PROPERTSETINFO_HXX_
-#include <comphelper/propertysetinfo.hxx>
-#endif
-
-#ifndef INCLUDED_SVTOOLS_SAVEOPT_HXX
-#include <svtools/saveopt.hxx>
-#endif
-
-#ifndef _COM_SUN_STAR_XML_SAX_XERRORHANDLER_HPP_
-#include <com/sun/star/xml/sax/XErrorHandler.hpp>
-#endif
-#ifndef _COM_SUN_STAR_XML_SAX_XENTITYRESOLVER_HPP_
-#include <com/sun/star/xml/sax/XEntityResolver.hpp>
-#endif
-#ifndef _COM_SUN_STAR_XML_SAX_INPUTSOURCE_HPP_
-#include <com/sun/star/xml/sax/InputSource.hpp>
-#endif
-#ifndef _COM_SUN_STAR_XML_SAX_XDTDHANDLER_HPP_
-#include <com/sun/star/xml/sax/XDTDHandler.hpp>
-#endif
-#ifndef _COM_SUN_STAR_XML_SAX_XPARSER_HPP_
-#include <com/sun/star/xml/sax/XParser.hpp>
-#endif
-#ifndef _COM_SUN_STAR_IO_XACTIVEDATASOURCE_HPP_
-#include <com/sun/star/io/XActiveDataSource.hpp>
-#endif
-#ifndef _COM_SUN_STAR_IO_XACTIVEDATACONTROL_HPP_
-#include <com/sun/star/io/XActiveDataControl.hpp>
-#endif
-#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#endif
-#ifndef _COM_SUN_STAR_XML_SAX_SAXPARSEEXCEPTION_HPP_
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#endif
-#ifndef _COM_SUN_STAR_PACKAGES_ZIP_ZIPIOEXCEPTION_HPP_
-#include <com/sun/star/packages/zip/ZipIOException.hpp>
-#endif
-
-#define XML_STRING(i, x) sal_Char const i[sizeof(x)] = x
-#define MAP_LEN(x) x, sizeof(x) - 1
-
-XML_STRING( sXML_metaStreamName, "meta.xml");
-XML_STRING( sXML_styleStreamName, "styles.xml" );
-XML_STRING( sXML_contentStreamName, "content.xml" );
-XML_STRING( sXML_oldContentStreamName, "Content.xml" );
-
-XML_STRING( sXML_export_chart_meta_service, "com.sun.star.comp.Chart.XMLMetaExporter" );
-XML_STRING( sXML_export_chart_styles_service, "com.sun.star.comp.Chart.XMLStylesExporter" );
-XML_STRING( sXML_export_chart_content_service, "com.sun.star.comp.Chart.XMLContentExporter" );
-XML_STRING( sXML_export_chart_old_content_service, "com.sun.star.office.sax.exporter.Chart" );
-
-XML_STRING( sXML_export_chart_allinone_service, "com.sun.star.comp.Chart.XMLExporter" );
-
-
-
-XML_STRING( sXML_import_chart_meta_service, "com.sun.star.comp.Chart.XMLMetaImporter" );
-XML_STRING( sXML_import_chart_styles_service, "com.sun.star.comp.Chart.XMLStylesImporter" );
-XML_STRING( sXML_import_chart_content_service, "com.sun.star.comp.Chart.XMLContentImporter" );
-XML_STRING( sXML_import_chart_old_content_service, "com.sun.star.office.sax.importer.Chart" );
-
-using namespace ::com::sun::star;
-using namespace ::rtl;
-using namespace comphelper;
-
-SchXMLWrapper::SchXMLWrapper( uno::Reference< frame::XModel >& xModel,
- SvStorage& rStorage,
- sal_Bool bShowProgress ) :
- mxModel( xModel ),
- mrStorage( rStorage ),
- mbShowProgress( bShowProgress )
-{}
-
-
-sal_Int32 SchXMLWrapper::ImportStream(
- const ::rtl::OUString& rsStreamName,
- const ::rtl::OUString& rsServiceName,
- uno::Reference< xml::sax::XParser >& xParser,
- uno::Reference< lang::XMultiServiceFactory >& xServiceFactory,
- uno::Reference< document::XGraphicObjectResolver >& xGraphObjResolver )
-{
- xml::sax::InputSource aParserInput;
- SvStorageStreamRef rInpStream;
- uno::Reference< io::XActiveDataSource > xSource;
- sal_Bool bEncrypted = sal_False;
-
- try
- {
- String sStreamName( rsStreamName );
- if( ! mrStorage.IsStream( String( rsStreamName )))
- return sal_False;
-
- rInpStream = mrStorage.OpenStream( sStreamName, STREAM_READ | STREAM_NOCREATE );
- if( ! rInpStream.Is())
- return sal_False;
-
- uno::Any aAny;
- bEncrypted = rInpStream->GetProperty( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Encrypted" )), aAny )
- && aAny.getValueType() == ::getBooleanCppuType()
- && *(sal_Bool *)aAny.getValue();
-
- aParserInput.aInputStream = rInpStream->GetXInputStream();
-
- if( aParserInput.aInputStream.is() )
- {
- sal_Int32 nArgs = 0;
- if( mxStatusIndicator.is())
- nArgs++;
- if( xGraphObjResolver.is())
- nArgs++;
-
- uno::Sequence< uno::Any > aArgs( nArgs );
-
- nArgs = 0;
- if( mxStatusIndicator.is())
- aArgs[ nArgs++ ] <<= mxStatusIndicator;
-
- if( xGraphObjResolver.is())
- aArgs[ nArgs++ ] <<= xGraphObjResolver;
-
- uno::Reference< xml::sax::XDocumentHandler > xDocHandler(
- xServiceFactory->createInstanceWithArguments( rsServiceName, aArgs ),
- uno::UNO_QUERY );
-
- if( xDocHandler.is() )
- {
- uno::Reference< document::XImporter > xImporter( xDocHandler, uno::UNO_QUERY );
- uno::Reference< lang::XComponent > xComponent( mxModel, uno::UNO_QUERY );
-
- if( xImporter.is() )
- {
- xImporter->setTargetDocument( xComponent );
- xParser->setDocumentHandler( xDocHandler );
-
- xParser->parseStream( aParserInput );
- }
- }
- }
- }
- catch(const xml::sax::SAXParseException&)
- {
- if( bEncrypted )
- return ERRCODE_SFX_WRONGPASSWORD;
- return ERRCODE_SFX_GENERAL;
- }
- catch(const xml::sax::SAXException&)
- {
- if( bEncrypted )
- return ERRCODE_SFX_WRONGPASSWORD;
- return ERRCODE_SFX_GENERAL;
- }
- catch(const io::IOException&)
- {
- return ERRCODE_SFX_GENERAL;
- }
- catch(const packages::zip::ZipIOException&)
- {
- return ERRCODE_IO_BROKENPACKAGE;
- }
- catch(const uno::Exception&)
- {
- return ERRCODE_SFX_GENERAL;
- }
-
- return 0;
-}
-
-sal_Int32 SchXMLWrapper::Import()
-{
- sal_Int32 nWarning = 0;
-
- if( !mxModel.is() )
- {
- OSL_FAIL("Got NO Model in XMLImport");
- return sal_False;
- }
-
- uno::Reference<lang::XServiceInfo> xServiceInfo( mxModel, uno::UNO_QUERY );
-
- if( !xServiceInfo.is() || !xServiceInfo->supportsService( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart.ChartDocument" ) ) ) )
- {
- OSL_FAIL( "Model is no ChartDocument in XMLImport" );
- return sal_False;
- }
-
- uno::Reference< lang::XMultiServiceFactory> xServiceFactory( ::comphelper::getProcessServiceFactory() );
-
- if( !xServiceFactory.is() )
- {
- OSL_FAIL( "XMLReader::Read: got no service manager" );
- return sal_False;
- }
-
- // get the sax parser component
- uno::Reference< xml::sax::XParser > xXMLParser(
- xServiceFactory->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser"))),
- uno::UNO_QUERY );
-
- if( ! xXMLParser.is() )
- {
- OSL_FAIL( "com.sun.star.xml.sax.Parser service missing" );
- return sal_False;
- }
-
- // create graphics resolver component
- SvXMLGraphicHelper* pGraphicHelper = SvXMLGraphicHelper::Create( mrStorage, GRAPHICHELPER_MODE_READ );
- uno::Reference< document::XGraphicObjectResolver > xGraphObjResolver = pGraphicHelper;
-
- // import meta information
- ImportStream(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_metaStreamName )),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_import_chart_meta_service )),
- xXMLParser, xServiceFactory, xGraphObjResolver );
-
- // import styles
- ImportStream(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_styleStreamName )),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_import_chart_styles_service )),
- xXMLParser, xServiceFactory, xGraphObjResolver );
-
- // import content
- nWarning = ImportStream(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_contentStreamName )),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_import_chart_content_service )),
- xXMLParser, xServiceFactory, xGraphObjResolver );
-
- // import of "content.xml" didn't work - try old "Content.xml" stream
- if( nWarning != 0 )
- {
- nWarning = ImportStream(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_oldContentStreamName )),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_import_chart_old_content_service )),
- xXMLParser, xServiceFactory, xGraphObjResolver );
- }
-
- // graphics resolver has to be destroyed this way!
- SvXMLGraphicHelper::Destroy( pGraphicHelper );
-
- return nWarning;
-}
-
-// -----------------------------------------------------------------------------
-
-sal_Bool SchXMLWrapper::ExportStream(
- const ::rtl::OUString& rsStreamName,
- const ::rtl::OUString& rsServiceName,
- uno::Reference< io::XActiveDataSource >& xDataSource,
- uno::Reference< lang::XMultiServiceFactory>& xServiceFactory,
- uno::Sequence< uno::Any >& aArgs )
-{
- sal_Bool bRet = sal_False;
-
- try
- {
- // create output stream
- SvStorageStreamRef rOutputStream( mrStorage.OpenStream(
- String( rsStreamName ), STREAM_WRITE | STREAM_SHARE_DENYWRITE | STREAM_TRUNC ));
-
- rtl::OUString sMIMEType( RTL_CONSTASCII_USTRINGPARAM( "text/xml" ) );
- uno::Any aAny;
- aAny <<= sMIMEType;
- rOutputStream->SetProperty( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaType" )), aAny );
-
- // "Encrypted" means "Encryptable". Has to be set for all but the meta stream (which doesn't exist in charts)
- aAny <<= (sal_Bool)(sal_True);
- rOutputStream->SetProperty( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Encrypted" )), aAny );
-
- rOutputStream->SetBufferSize( 0x4000 ); // 16*1024
-
- if( xDataSource.is())
- xDataSource->setOutputStream( new ::utl::OOutputStreamWrapper( *rOutputStream ));
-
- uno::Reference< document::XFilter > xFilter(
- xServiceFactory->createInstanceWithArguments( rsServiceName, aArgs ),
- uno::UNO_QUERY );
-
- if( xFilter.is())
- {
- uno::Reference< document::XExporter > xExporter( xFilter, uno::UNO_QUERY );
- if( xExporter.is())
- {
- uno::Reference< lang::XComponent > xModelComponent( mxModel, uno::UNO_QUERY );
- xExporter->setSourceDocument( xModelComponent );
- }
-
- // empty Descriptior (formerly FileName was given)
- uno::Sequence< beans::PropertyValue > aEmptyDescriptor( 0 );
- bRet = xFilter->filter( aEmptyDescriptor );
-
- if( bRet && rOutputStream.Is())
- rOutputStream->Commit();
- }
- }
- catch(const uno::Exception&)
- {
- }
-
- return bRet;
-}
-
-sal_Bool SchXMLWrapper::Export()
-{
- sal_Bool bRet = sal_False;
-
- try
- {
- if( !mxModel.is() )
- {
- OSL_FAIL("Got NO Model in XMLExport");
- return sal_False;
- }
-
- uno::Reference< lang::XServiceInfo > xServiceInfo( mxModel, uno::UNO_QUERY );
-
- if( ! xServiceInfo.is() || !xServiceInfo->supportsService(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.chart.ChartDocument" ) ) ) )
- {
- OSL_FAIL( "Model is no ChartDocument in XMLExport" );
- return sal_False;
- }
-
- uno::Reference< lang::XMultiServiceFactory> xServiceFactory( ::comphelper::getProcessServiceFactory() );
-
- if( !xServiceFactory.is() )
- {
- OSL_FAIL( "got no service manager" );
- return sal_False;
- }
-
- uno::Reference< uno::XInterface > xWriter( xServiceFactory->createInstance(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.xml.sax.Writer" ) ) ) );
-
- if( !xWriter.is() )
- {
- OSL_FAIL( "com.sun.star.xml.sax.Writer service missing" );
- return sal_False;
- }
- uno::Reference<xml::sax::XDocumentHandler > xHandler( xWriter, uno::UNO_QUERY );
- uno::Sequence< beans::PropertyValue > aEmptyDescriptor( 0 );
-
-
- /** property map for export info set */
- PropertyMapEntry aExportInfoMap[] =
- {
- { MAP_LEN( "UsePrettyPrinting"),0, &::getBooleanCppuType(), ::com::sun::star::beans::PropertyAttribute::MAYBEVOID, 0},
- { NULL, 0, 0, NULL, 0, 0 }
- };
-
- uno::Reference< beans::XPropertySet > xInfoSet( GenericPropertySet_CreateInstance( new PropertySetInfo( aExportInfoMap ) ) );
-
- SvtSaveOptions aSaveOpt;
- OUString sUsePrettyPrinting(RTL_CONSTASCII_USTRINGPARAM("UsePrettyPrinting"));
- sal_Bool bUsePrettyPrinting( aSaveOpt.IsPrettyPrinting() );
- xInfoSet->setPropertyValue( sUsePrettyPrinting, uno::makeAny( bUsePrettyPrinting ) );
-
-
- SvXMLGraphicHelper* pGraphicHelper = SvXMLGraphicHelper::Create( mrStorage, GRAPHICHELPER_MODE_WRITE, sal_False );
- uno::Reference< document::XGraphicObjectResolver > xGraphObjResolver( pGraphicHelper );
- uno::Reference< io::XActiveDataSource > xDataSource( xWriter, uno::UNO_QUERY );
-
- sal_Int32 nArgs = 2;
- if( mxStatusIndicator.is())
- nArgs++;
- if( xGraphObjResolver.is())
- nArgs++;
-
- uno::Sequence< uno::Any > aArgs( nArgs );
-
- nArgs = 0;
- aArgs[ nArgs++ ] <<= xHandler;
- aArgs[ nArgs++ ] <<= xInfoSet;
-
- if( mxStatusIndicator.is())
- aArgs[ nArgs++ ] <<= mxStatusIndicator;
- if( xGraphObjResolver.is())
- aArgs[ nArgs++ ] <<= xGraphObjResolver;
-
- //export to one stream
- bRet = ExportStream(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_contentStreamName )),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( sXML_export_chart_allinone_service )),
- xDataSource, xServiceFactory, aArgs );
-
- // graphics resolver has to be destroyed this way!
- SvXMLGraphicHelper::Destroy( pGraphicHelper );
- }
- catch(const uno::Exception&)
- {
- }
-
- return bRet;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/schxmlwrapper.hxx b/lotuswordpro/source/filter/schxmlwrapper.hxx
deleted file mode 100644
index 782fc56b6bb4..000000000000
--- a/lotuswordpro/source/filter/schxmlwrapper.hxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-
-#ifndef _SCH_XMLWRP_HXX_
-#define _SCH_XMLWRP_HXX_
-
-#ifndef _SVSTOR_HXX
-#include <so3/svstor.hxx>
-#endif
-
-namespace com { namespace sun { namespace star {
- namespace xml {
- namespace sax {
- class XParser;
- }
- }
- namespace document {
- class XGraphicObjectResolver;
- }
- namespace frame {
- class XModel;
- }
- namespace task {
- class XStatusIndicator;
- }
- namespace lang {
- class XMultiServiceFactory;
- }
- namespace io {
- class XActiveDataSource;
- }
-}}}
-
-class SchXMLWrapper
-{
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
- ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > mxStatusIndicator;
- SvStorage& mrStorage;
-
- sal_Bool mbIsDraw : 1;
- sal_Bool mbShowProgress : 1;
-
- sal_Int32 ImportStream(
- const ::rtl::OUString& rsStreamName,
- const ::rtl::OUString& rsServiceName,
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XParser >& xParser,
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
- ::com::sun::star::uno::Reference< ::com::sun::star::document::XGraphicObjectResolver >& xGraphObjResolver );
-
- sal_Bool ExportStream(
- const ::rtl::OUString& rsStreamName,
- const ::rtl::OUString& rsServiceName,
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XActiveDataSource >& xDataSource,
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArgs );
-
-public:
- SchXMLWrapper( ::com::sun::star::uno::Reference< com::sun::star::frame::XModel >& xModel,
- SvStorage& rStorage,
- sal_Bool bShowProgress = TRUE );
-
- sal_Int32 Import();
- sal_Bool Export();
-};
-
-#endif // _SCH_XMLWRP_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfchartstreamtools.cxx b/lotuswordpro/source/filter/xfilter/xfchartstreamtools.cxx
deleted file mode 100644
index 9923911936c7..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfchartstreamtools.cxx
+++ /dev/null
@@ -1,120 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
-2005/2 draft code for implementation of chart stream helpers
-****************************************************************************/
-
-/**
- * @file
- * For LWP filter architecture prototype
-*/
-
-#include "xfchartstreamtools.hxx"
-#include "xfdrawchart.hxx"
-#include "xfparagraph.hxx"
-
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-
-/**
-* @short Parse the xml stream
-* @param rInpStream the xml stream
-* @param aHandler xml handler
-*/
-void XFChartStreamTools::ParseStream(SvStorageStreamRef rInpStream, Reference<XDocumentHandler> aHandler)
-{
- //Create parser
- uno::Reference< xml::sax::XParser > xParser;
- {
- uno::Reference< lang::XMultiServiceFactory>
- xServiceFactory( ::comphelper::getProcessServiceFactory() );
- if( !xServiceFactory.is() )
- {
- assert(false);
- return;
- }
- xParser = uno::Reference< xml::sax::XParser > (
- xServiceFactory->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser"))),
- uno::UNO_QUERY );
-
- if( ! xParser.is() )
- {
- assert(false);
- return;
- }
- }
-
- xParser->setDocumentHandler( aHandler );
- xml::sax::InputSource aParserInput;
- aParserInput.aInputStream = rInpStream->GetXInputStream();
- xParser->parseStream( aParserInput );
-}
-
-/**
-* @short Parse the xml stream, content.xml & styles.xml for chart
-* @param rStyleStream styles xml stream
-* @param rCntStream the content xml stream
-* @param pOutputStream the output stream
-*/
-void XFChartStreamTools::ParseStream(SvStorageStreamRef rCntStream,IXFStream* pOutputStream)
-{
- Reference<XDocumentHandler> pHandler( new XFChartXMLHandler(pOutputStream) );
- ParseStream(rCntStream,pHandler);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfchartstreamtools.hxx b/lotuswordpro/source/filter/xfilter/xfchartstreamtools.hxx
deleted file mode 100644
index feca5931d9fe..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfchartstreamtools.hxx
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
-2005/2 draft code for chart stream helpers
-****************************************************************************/
-
-/**
- * @file
- * For LWP filter architecture prototype
-*/
-
-#ifndef LWPCHARTSTREAMTOOLS_HXX_
-#define LWPCHARTSTREAMTOOLS_HXX_
-
-#include <tools/stream.hxx>
-#include <tools/gen.hxx>
-
-//For sax parser
-#ifndef _COM_SUN_STAR_XML_SAX_INPUTSOURCE_HPP_
-#include <com/sun/star/xml/sax/InputSource.hpp>
-#endif
-
-#ifndef _COM_SUN_STAR_XML_SAX_XDTDHANDLER_HPP_
-#include <com/sun/star/xml/sax/XDTDHandler.hpp>
-#endif
-
-#ifndef _COM_SUN_STAR_XML_SAX_XPARSER_HPP_
-#include <com/sun/star/xml/sax/XParser.hpp>
-#endif
-
-#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
-#include <comphelper/processfactory.hxx>
-#endif
-
-using namespace ::com::sun::star;
-using namespace ::rtl;
-using namespace comphelper;
-
-#include "xfchartxmlhandler.hxx"
-#include "xfrect.hxx"
-class IXFContent;
-
-/**
-* @brief
-* tools class for chart stream process
-*/
-
-class XFChartStreamTools
-{
-public:
- static void ParseStream(SvStorageStreamRef rInpStream, Reference<XDocumentHandler> aHandler);
-
- static void ParseStream( SvStorageStreamRef rCntStream,
- IXFStream* pOutputStream);
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.cxx b/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.cxx
deleted file mode 100644
index 952176a7f449..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.cxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
- 2005/2 draft code for Implementation of chart xml hander
-****************************************************************************/
-/**
-* @file
-* For LWP filter architecture prototype
-*/
-
-#include "xfchartxmlhandler.hxx"
-
-Any SAL_CALL XFChartXMLHandler::queryInterface( const Type & rType ) throw( RuntimeException )
-{
- Any a = ::cppu::queryInterface( rType ,SAL_STATIC_CAST( XDocumentHandler*, this ));
- if ( a.hasValue() )
- return a;
- else
- return OWeakObject::queryInterface( rType );
-}
-
-/**
-* @short constructor of chart xml handler
-* @descr
-* @param pOutputStream the output stream
-*/
-XFChartXMLHandler::XFChartXMLHandler(IXFStream* pOutputStream)
-{
- m_pOutputStream = pOutputStream;
-}
-
-/**
-* @short handle the start element
-* @descr ignore some elements here
-* @param aName element name
-* @param xAttribs the attribute list
-*/
-void SAL_CALL XFChartXMLHandler::startElement( const ::rtl::OUString& aName, const Reference< XAttributeList >& xAttribs )
-throw (SAXException, RuntimeException)
-{
- IXFAttrList* pList = m_pOutputStream->GetAttrList();
- pList->Clear();
- {
- INT16 nLen = xAttribs->getLength();
- for( INT16 nC=0;nC<nLen;nC++)
- {
- OUString aName = xAttribs->getNameByIndex(nC);
- OUString aVal = xAttribs->getValueByIndex(nC);
- pList->AddAttribute(aName, aVal);
- }
- }
-
- m_pOutputStream->StartElement(aName);
-}
-
-/**
-* @short handle the end element
-* @descr ignore some elements here
-* @param aName element name
-*/
-void SAL_CALL XFChartXMLHandler::endElement( const ::rtl::OUString& aName )
-throw (SAXException, RuntimeException)
-{
- m_pOutputStream->EndElement(aName);
-}
-
-void SAL_CALL XFChartXMLHandler::characters( const ::rtl::OUString& aChars )
-throw (SAXException, RuntimeException)
-{
- m_pOutputStream->Characters(aChars);
-}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.hxx b/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.hxx
deleted file mode 100644
index 0f79476ec4bf..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfchartxmlhandler.hxx
+++ /dev/null
@@ -1,132 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*****************************************************************************
-* Change History
-* <<Date>> <<Name of editor>> <<Description>>
-* 2005/2 draft code for XML handler of chart xml.
-****************************************************************************/
-
-/*************************************************************************
- * @file
- * For LWP filter architecture prototype
- ************************************************************************/
-
-#ifndef XFCHARTXMLHANDLER_HXX_
-#define XFCHARTXMLHANDLER_HXX_
-
-#include <cppuhelper/weak.hxx>
-#include <com/sun/star/xml/sax/XAttributeList.hpp>
-#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
-#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/uno/RuntimeException.hpp>
-
-#include <so3/svstor.hxx>
-#include "ixfstream.hxx"
-#include "ixfattrlist.hxx"
-#include <rtl/ustring.hxx>
-using namespace ::com::sun::star::xml::sax;
-using namespace ::com::sun::star::uno;
-
-using ::rtl::OUString;
-
-/**
-* @brief
-* Chart xml handler
-*/
-
-class XFChartXMLHandler: public XDocumentHandler,public ::cppu::OWeakObject
-{
-public:
- XFChartXMLHandler(IXFStream* pOutputStream);
-
- // XInterface
- virtual void SAL_CALL acquire() throw()
- { OWeakObject::acquire(); }
- virtual void SAL_CALL release() throw()
- { OWeakObject::release(); }
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
- const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
-
- virtual void SAL_CALL startDocument( )
- throw (SAXException, RuntimeException) {}
-
- virtual void SAL_CALL endDocument( )
- throw (SAXException, RuntimeException) {}
-
- virtual void SAL_CALL startElement( const ::rtl::OUString& aName, const Reference< XAttributeList >& xAttribs )
- throw (SAXException, RuntimeException);
-
- virtual void SAL_CALL endElement( const ::rtl::OUString& aName )
- throw (SAXException, RuntimeException);
-
- virtual void SAL_CALL characters( const ::rtl::OUString& aChars )
- throw (SAXException, RuntimeException);
-
- virtual void SAL_CALL ignorableWhitespace( const ::rtl::OUString& aWhitespaces )
- throw (SAXException, RuntimeException){}
-
- virtual void SAL_CALL processingInstruction( const ::rtl::OUString& aTarget, const ::rtl::OUString& aData )
- throw (SAXException, RuntimeException){}
-
- virtual void SAL_CALL setDocumentLocator( const Reference< XLocator >& xLocator )
- throw (SAXException, RuntimeException){}
-protected:
- IXFStream* m_pOutputStream;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawchart.cxx b/lotuswordpro/source/filter/xfilter/xfdrawchart.cxx
deleted file mode 100644
index 3069f1497ee8..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfdrawchart.cxx
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * chart object.
- ************************************************************************/
-#include "xfdrawchart.hxx"
-
-#include "xfchartstreamtools.hxx"
-
-XFDrawChart::XFDrawChart()
-{
- m_strName=XFGlobal::GenObjName();
-}
-
-void XFDrawChart::Add(IXFContent* pXFChartStream)
-{
- m_pXFChartStream = pXFChartStream;
-}
-
-void XFDrawChart::ToXml(IXFStream *pStrm)
-{
- XFDrawObject::ToXml(pStrm);
-
- pStrm->StartElement( A2OUSTR("draw:object") );
- ContentToXml(pStrm);
- m_pXFChartStream->ToXml(pStrm);
- pStrm->EndElement( A2OUSTR("draw:object") );
-}
-
-void XFChartStream::SetChartStream(SvStorageStreamRef rCntStream)
-{
- m_rCntStream = rCntStream;
-}
-
-void XFChartStream::ToXml(IXFStream *pSaxStream)
-{
- XFChartStreamTools::ParseStream(m_rCntStream,pSaxStream);
-}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawchart.hxx b/lotuswordpro/source/filter/xfilter/xfdrawchart.hxx
deleted file mode 100644
index 1a3013d8da8f..000000000000
--- a/lotuswordpro/source/filter/xfilter/xfdrawchart.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * Chart object.
- ************************************************************************/
-#ifndef _XFDRAWECLIPSE_HXX
-#define _XFDRAWECLIPSE_HXX
-
-#include "xfdrawobj.hxx"
-#include <so3/svstor.hxx>
-/**
-* @brief
-* draw chart object in XML
-*/
-class XFDrawChart : public XFDrawObject
-{
-public:
- XFDrawChart();
-
-public:
- virtual void ToXml(IXFStream *pStrm);
- virtual void Add(IXFContent* pXFChartStream);
-
-private:
- IXFContent* m_pXFChartStream;
-
-};
-/**
-* @brief
-* draw chart stream in XML
-*/
-class XFChartStream:public XFContent
-{
-public:
- virtual void ToXml(IXFStream *pSaxStream);
- void SetChartStream(SvStorageStreamRef rCntStream);
-protected:
- SvStorageStreamRef m_rCntStream;
-};
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xftexttable.cxx b/lotuswordpro/source/filter/xfilter/xftexttable.cxx
deleted file mode 100644
index bd316aa1f430..000000000000
--- a/lotuswordpro/source/filter/xfilter/xftexttable.cxx
+++ /dev/null
@@ -1,140 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * Text table object. It's the table used in writer.
- ************************************************************************/
-#include "xftexttable.hxx"
-
-XFTextTable::XFTextTable()
-{
-
-}
-
-void XFTextTable::SetColCount(sal_Int32 col)
-{
- m_nColCount = col;
-}
-
-void XFTextTable::SetRowCount(sal_Int32 row)
-{
- m_nRowCount = row;
-}
-
-void XFTextTable::SetCell(sal_Int32 row, sal_Int32 col, XFCell *pCell)
-{
- if( row<0 || col<0 || !pCell )
- return;
-
- XFRow *pRow = GetRow(row);
- if( !pRow )
- {
- pRow = new XFRow();
- pRow->SetRow(row);
- AddRow(pRow);
-
- pRow = GetRow(row);
- }
- if( !pRow )
- return;
- pCell->SetCol(col);
-
- pRow->AddCell(pCell);
-}
-
-virtual void XFTextTable::ToXml(IXFStream *pStrm)
-{
- for( int i=0; i<m_nColCount; i++ )
- {
- rtl::OUString strColStyle = GetColumnStyle(i);
- if( strColStyle.getLength()>0 )
- SetColumnStyle(col, m_strDefColStyle);
- }
-
- for( int i=0; i<m_nRowCount; i++ )
- {
- XFRow *pRow = GetRow(i);
- if( !pRow )
- {
- pRow = new XFRow();
- pRow->SetRow(i);
- pRow->SetStyleName(m_strDefRowStyle);
-
- XFCell *pCell = new XFCell();
- pCell->SetColumnSpaned(m_nColCount);
- pRow->AddCell(pCell);
-
- SetRow(i, pRow);
- }
- else
- {
- for( int j=0; j<m_nColCount; j++ )
- {
- XFCell *pCell = pRow->GetCell(j);
- if( !pCell )
- {
- pCell = new XFCell();
- pCell->SetCol(j);
- pCell->SetStyleName(m_strDefCellStyle);
- pRow->AddCell(pCell);
- }
- }
- }
- }
-
- XFTable::ToXml(pStrm);
-}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/lotuswordpro/source/filter/xfilter/xftexttable.hxx b/lotuswordpro/source/filter/xfilter/xftexttable.hxx
deleted file mode 100644
index 1ab3072ab7cb..000000000000
--- a/lotuswordpro/source/filter/xfilter/xftexttable.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * 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: IBM Corporation
- *
- * Copyright: 2008 by IBM Corporation
- *
- * All Rights Reserved.
- *
- * Contributor(s): _______________________________________
- *
- *
- ************************************************************************/
-/*************************************************************************
- * @file
- * Text table object. It's the table used in writer.
- ************************************************************************/
-#ifndef _XFTEXTTABLE_HXX
-#define _XFTEXTTABLE_HXX
-
-#include "xftable.hxx"
-
-class XFTextTable : public XFTable
-{
-public:
- XFTextTable();
-
-private:
- void SetRowCount(sal_Int32 row);
-
- void SetColCount(sal_Int32 col);
-
- rtl::OUString SetCell(sal_Int32 row, sal_Int32 col, XFCell *pCell);
-
- virtual void ToXml(IXFStream *pStrm);
-
-private:
- sal_Int32 m_nColCount;
- sal_Int32 m_nRowCount;
-};
-
-#endif
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */