diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-30 09:24:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-30 14:07:20 +0100 |
commit | 45e4f9e99b75ef8a125228bc42df7fb98af9d7bc (patch) | |
tree | 6a5b19bbe4316d56b14682c227c891f05db13b4c /oox | |
parent | 1889728897e16800d58773a302eb5232a6fada76 (diff) |
callcatcher: regenerate unused code list
Diffstat (limited to 'oox')
-rw-r--r-- | oox/Library_oox.mk | 1 | ||||
-rw-r--r-- | oox/Package_inc.mk | 1 | ||||
-rw-r--r-- | oox/inc/oox/dump/dffdumper.hxx | 2 | ||||
-rw-r--r-- | oox/inc/oox/dump/dumperbase.hxx | 5 | ||||
-rw-r--r-- | oox/inc/oox/helper/propertyset.hxx | 4 | ||||
-rw-r--r-- | oox/inc/oox/ole/vbaprojectfilter.hxx | 64 | ||||
-rw-r--r-- | oox/source/dump/dffdumper.cxx | 11 | ||||
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 39 | ||||
-rw-r--r-- | oox/source/helper/propertyset.cxx | 9 | ||||
-rw-r--r-- | oox/source/ole/vbaprojectfilter.cxx | 78 |
10 files changed, 0 insertions, 214 deletions
diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk index 4224cf1b6c27..ddd7ad73284d 100644 --- a/oox/Library_oox.mk +++ b/oox/Library_oox.mk @@ -240,7 +240,6 @@ $(eval $(call gb_Library_add_exception_objects,oox,\ oox/source/ole/vbainputstream \ oox/source/ole/vbamodule \ oox/source/ole/vbaproject \ - oox/source/ole/vbaprojectfilter \ oox/source/ppt/animationspersist \ oox/source/ppt/animationtypes \ oox/source/ppt/animvariantcontext \ diff --git a/oox/Package_inc.mk b/oox/Package_inc.mk index 19d818a12584..c36dbc0acc3b 100644 --- a/oox/Package_inc.mk +++ b/oox/Package_inc.mk @@ -92,7 +92,6 @@ $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/olehelper.hxx,oox/ole/oleh $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/oleobjecthelper.hxx,oox/ole/oleobjecthelper.hxx)) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/olestorage.hxx,oox/ole/olestorage.hxx)) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/vbaproject.hxx,oox/ole/vbaproject.hxx)) -$(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/vbaprojectfilter.hxx,oox/ole/vbaprojectfilter.hxx)) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/axcontrol.hxx,oox/ole/axcontrol.hxx)) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/axbinaryreader.hxx,oox/ole/axbinaryreader.hxx)) $(eval $(call gb_Package_add_file,oox_inc,inc/oox/ole/axfontdata.hxx,oox/ole/axfontdata.hxx)) diff --git a/oox/inc/oox/dump/dffdumper.hxx b/oox/inc/oox/dump/dffdumper.hxx index de0913f79f53..f961eb1d90e9 100644 --- a/oox/inc/oox/dump/dffdumper.hxx +++ b/oox/inc/oox/dump/dffdumper.hxx @@ -56,8 +56,6 @@ protected: virtual void implDumpClientAnchor(); private: - void constructDffObj(); - sal_uInt32 dumpDffSimpleColor( const String& rName ); void dumpDffOpt(); diff --git a/oox/inc/oox/dump/dumperbase.hxx b/oox/inc/oox/dump/dumperbase.hxx index ef95a793b8f1..7f1822058efe 100644 --- a/oox/inc/oox/dump/dumperbase.hxx +++ b/oox/inc/oox/dump/dumperbase.hxx @@ -396,12 +396,9 @@ public: static void appendToken( ::rtl::OUStringBuffer& rStr, const ::rtl::OUString& rToken, sal_Unicode cSep = OOX_DUMP_LISTSEP ); static void appendToken( ::rtl::OUStringBuffer& rStr, sal_Int64 nToken, sal_Unicode cSep = OOX_DUMP_LISTSEP ); - static void prependToken( ::rtl::OUStringBuffer& rStr, const ::rtl::OUString& rToken, sal_Unicode cSep = OOX_DUMP_LISTSEP ); static void appendIndex( ::rtl::OUStringBuffer& rStr, const ::rtl::OUString& rIdx ); static void appendIndex( ::rtl::OUStringBuffer& rStr, sal_Int64 nIdx ); - static void appendIndexedText( ::rtl::OUStringBuffer& rStr, const ::rtl::OUString& rData, const ::rtl::OUString& rIdx ); - static void appendIndexedText( ::rtl::OUStringBuffer& rStr, const ::rtl::OUString& rData, sal_Int64 nIdx ); static ::rtl::OUString getToken( const ::rtl::OUString& rData, sal_Int32& rnPos, sal_Unicode cSep = OOX_DUMP_LISTSEP ); @@ -1350,8 +1347,6 @@ protected: void writeCharItem( const String& rName, sal_Unicode cData ); void writeStringItem( const String& rName, const ::rtl::OUString& rData ); void writeArrayItem( const String& rName, const sal_uInt8* pnData, sal_Size nSize, sal_Unicode cSep = OOX_DUMP_LISTSEP ); - double writeRkItem( const String& rName, sal_Int32 nRk ); - void writeColorABGRItem( const String& rName, sal_Int32 nColor ); void writeDateTimeItem( const String& rName, const ::com::sun::star::util::DateTime& rDateTime ); void writeGuidItem( const String& rName, const ::rtl::OUString& rGuid ); void writeColIndexItem( const String& rName, sal_Int32 nCol ); diff --git a/oox/inc/oox/helper/propertyset.hxx b/oox/inc/oox/helper/propertyset.hxx index fcdf66cda8fb..9f47f34a03f6 100644 --- a/oox/inc/oox/helper/propertyset.hxx +++ b/oox/inc/oox/helper/propertyset.hxx @@ -125,10 +125,6 @@ public: @param rPropertyMap The property map. */ void setProperties( const PropertyMap& rPropertyMap ); -#if OSL_DEBUG_LEVEL > 0 - void dump(); -#endif - // ------------------------------------------------------------------------ private: /** Gets the specified property from the property set. diff --git a/oox/inc/oox/ole/vbaprojectfilter.hxx b/oox/inc/oox/ole/vbaprojectfilter.hxx deleted file mode 100644 index 8cc029be8bc8..000000000000 --- a/oox/inc/oox/ole/vbaprojectfilter.hxx +++ /dev/null @@ -1,64 +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. - * - ************************************************************************/ - -#ifndef OOX_OLE_VBAPROJECTFILTER_HXX -#define OOX_OLE_VBAPROJECTFILTER_HXX - -#include "oox/core/binaryfilterbase.hxx" - -namespace oox { -namespace ole { - -// ============================================================================ - -class VbaProjectFilterBase : public ::oox::core::BinaryFilterBase -{ -public: - explicit VbaProjectFilterBase( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, - const ::rtl::OUString& rAppName, - const ::rtl::OUString& rStorageName ) - throw( ::com::sun::star::uno::RuntimeException ); - - virtual bool importDocument() throw(); - virtual bool exportDocument() throw(); - -private: - virtual VbaProject* implCreateVbaProject() const; - -private: - ::rtl::OUString maAppName; - ::rtl::OUString maStorageName; -}; - -} // namespace ole -} // namespace oox - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/dump/dffdumper.cxx b/oox/source/dump/dffdumper.cxx index c7abc53d04f8..9ffeddf5d39a 100644 --- a/oox/source/dump/dffdumper.cxx +++ b/oox/source/dump/dffdumper.cxx @@ -171,17 +171,6 @@ void DffStreamObject::implDumpClientAnchor() { } -void DffStreamObject::constructDffObj() -{ - mnInstVer = 0; - mnRealSize = 0; - if( SequenceRecordObjectBase::implIsValid() ) - { - maSimpleProps.insertFormats( cfg().getNameList( "DFFOPT-SIMPLE-PROPERTIES" ) ); - maComplexProps.insertFormats( cfg().getNameList( "DFFOPT-COMPLEX-PROPERTIES" ) ); - } -} - sal_uInt32 DffStreamObject::dumpDffSimpleColor( const String& rName ) { return dumpHex< sal_uInt32 >( rName, "DFF-SIMPLE-COLOR" ); diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 481d68e20c83..d7f8910994e4 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -623,13 +623,6 @@ void StringHelper::appendToken( OUStringBuffer& rStr, sal_Int64 nToken, sal_Unic appendToken( rStr, aToken.makeStringAndClear(), cSep ); } -void StringHelper::prependToken( OUStringBuffer& rStr, const OUString& rToken, sal_Unicode cSep ) -{ - if( rStr.getLength() > 0 && !rToken.isEmpty() ) - rStr.insert( 0, cSep ); - rStr.insert( 0, rToken ); -} - void StringHelper::appendIndex( OUStringBuffer& rStr, const OUString& rIdx ) { rStr.append( sal_Unicode( '[' ) ).append( rIdx ).append( sal_Unicode( ']' ) ); @@ -642,18 +635,6 @@ void StringHelper::appendIndex( OUStringBuffer& rStr, sal_Int64 nIdx ) appendIndex( rStr, aToken.makeStringAndClear() ); } -void StringHelper::appendIndexedText( OUStringBuffer& rStr, const OUString& rData, const OUString& rIdx ) -{ - rStr.append( rData ); - appendIndex( rStr, rIdx ); -} - -void StringHelper::appendIndexedText( OUStringBuffer& rStr, const OUString& rData, sal_Int64 nIdx ) -{ - rStr.append( rData ); - appendIndex( rStr, nIdx ); -} - OUString StringHelper::getToken( const OUString& rData, sal_Int32& rnPos, sal_Unicode cSep ) { return trimSpaces( rData.getToken( 0, cSep, rnPos ) ); @@ -2227,26 +2208,6 @@ void OutputObjectBase::writeArrayItem( const String& rName, const sal_uInt8* pnD mxOut->writeArray( pnData, nSize, cSep ); } -double OutputObjectBase::writeRkItem( const String& rName, sal_Int32 nRk ) -{ - MultiItemsGuard aMultiGuard( mxOut ); - writeHexItem( rName, static_cast< sal_uInt32 >( nRk ), "RK-FLAGS" ); -#if FIXME - double fValue = ::oox::xls::BiffHelper::calcDoubleFromRk( nRk ); -#else - double fValue = 0.0; -#endif - writeDecItem( "decoded", fValue ); - return fValue; -} - -void OutputObjectBase::writeColorABGRItem( const String& rName, sal_Int32 nColor ) -{ - ItemGuard aItem( mxOut, rName ); - writeHexItem( rName, nColor ); - mxOut->writeColorABGR( nColor ); -} - void OutputObjectBase::writeDateTimeItem( const String& rName, const DateTime& rDateTime ) { ItemGuard aItem( mxOut, rName ); diff --git a/oox/source/helper/propertyset.cxx b/oox/source/helper/propertyset.cxx index 8585a439d532..4b143db9a757 100644 --- a/oox/source/helper/propertyset.cxx +++ b/oox/source/helper/propertyset.cxx @@ -154,15 +154,6 @@ bool PropertySet::implSetPropertyValue( const OUString& rPropName, const Any& rV return false; } -#ifdef DBG_UTIL -void PropertySet::dump() -{ - PropertyMap::dump( Reference< XPropertySet >( getXPropertySet(), UNO_QUERY ) ); -} -#endif - -// ============================================================================ - } // namespace oox /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/ole/vbaprojectfilter.cxx b/oox/source/ole/vbaprojectfilter.cxx deleted file mode 100644 index 23ca4389b9d7..000000000000 --- a/oox/source/ole/vbaprojectfilter.cxx +++ /dev/null @@ -1,78 +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 "oox/ole/vbaprojectfilter.hxx" - -#include "oox/ole/vbaproject.hxx" - -namespace oox { -namespace ole { - -// ============================================================================ - -using namespace ::com::sun::star::lang; -using namespace ::com::sun::star::uno; - -using ::rtl::OUString; - -// ============================================================================ - -VbaProjectFilterBase::VbaProjectFilterBase( const Reference< XComponentContext >& rxContext, - const OUString& rAppName, const OUString& rStorageName ) throw( RuntimeException ) : - BinaryFilterBase( rxContext ), - maAppName( rAppName ), - maStorageName( rStorageName ) -{ -} - -bool VbaProjectFilterBase::importDocument() throw() -{ - StorageRef xVbaPrjStrg = openSubStorage( maStorageName, false ); - if( !xVbaPrjStrg || !xVbaPrjStrg->isStorage() ) - return false; - - getVbaProject().importVbaProject( *xVbaPrjStrg, getGraphicHelper() ); - return true; -} - -bool VbaProjectFilterBase::exportDocument() throw() -{ - return false; -} - -VbaProject* VbaProjectFilterBase::implCreateVbaProject() const -{ - return new VbaProject( getComponentContext(), getModel(), maAppName ); -} - -// ============================================================================ - -} // namespace ole -} // namespace oox - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |