From 5fd54f2f3de2fec39b372e2f8ece0ee73f080c8f Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Wed, 3 Aug 2011 01:51:28 +0200 Subject: callcatcher: remove unused methods --- xmloff/Library_xo.mk | 1 - xmloff/Package_inc.mk | 1 - xmloff/inc/xmloff/VisAreaExport.hxx | 57 ----------------------- xmloff/source/draw/sdxmlexp.cxx | 2 - xmloff/source/style/VisAreaExport.cxx | 86 ----------------------------------- 5 files changed, 147 deletions(-) delete mode 100644 xmloff/inc/xmloff/VisAreaExport.hxx delete mode 100644 xmloff/source/style/VisAreaExport.cxx (limited to 'xmloff') diff --git a/xmloff/Library_xo.mk b/xmloff/Library_xo.mk index 3cc71df281b9..b279bc21f713 100644 --- a/xmloff/Library_xo.mk +++ b/xmloff/Library_xo.mk @@ -227,7 +227,6 @@ $(eval $(call gb_Library_add_exception_objects,xo,\ xmloff/source/style/StyleMap \ xmloff/source/style/TransGradientStyle \ xmloff/source/style/VisAreaContext \ - xmloff/source/style/VisAreaExport \ xmloff/source/style/WordWrapPropertyHdl \ xmloff/source/style/XMLBackgroundImageContext \ xmloff/source/style/XMLBackgroundImageExport \ diff --git a/xmloff/Package_inc.mk b/xmloff/Package_inc.mk index 3b9781b40674..2b9e1733cebd 100644 --- a/xmloff/Package_inc.mk +++ b/xmloff/Package_inc.mk @@ -44,7 +44,6 @@ $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SchXMLImportHelper.hxx,x $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SettingsExportHelper.hxx,xmloff/SettingsExportHelper.hxx)) $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/SinglePropertySetInfoCache.hxx,xmloff/SinglePropertySetInfoCache.hxx)) $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/VisAreaContext.hxx,xmloff/VisAreaContext.hxx)) -$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/VisAreaExport.hxx,xmloff/VisAreaExport.hxx)) $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/WordWrapPropertyHdl.hxx,xmloff/WordWrapPropertyHdl.hxx)) $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLBase64ImportContext.hxx,xmloff/XMLBase64ImportContext.hxx)) $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/XMLCharContext.hxx,xmloff/XMLCharContext.hxx)) diff --git a/xmloff/inc/xmloff/VisAreaExport.hxx b/xmloff/inc/xmloff/VisAreaExport.hxx deleted file mode 100644 index 9a98db5a04f8..000000000000 --- a/xmloff/inc/xmloff/VisAreaExport.hxx +++ /dev/null @@ -1,57 +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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _XMLOFF_VISAREAEXPORT_HXX -#define _XMLOFF_VISAREAEXPORT_HXX - -#include -#include - -class SvXMLExport; -class Rectangle; - -namespace com { namespace sun { namespace star { namespace awt { - struct Rectangle; -} } } } - -class XMLVisAreaExport -{ -public: - // the complete export is done in the constructor - XMLVisAreaExport(SvXMLExport& rExport, const sal_Char *pName, - const Rectangle& aRect, const MapUnit aMapUnit); - - XMLVisAreaExport(SvXMLExport& rExport, const sal_Char *pName, - const com::sun::star::awt::Rectangle& aRect, const sal_Int16 nMeasureUnit ); - - ~XMLVisAreaExport(); -}; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index 6c4343eff192..2c233edb667c 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -75,8 +75,6 @@ #include "PropertySetMerger.hxx" #include "layerexp.hxx" - -#include "xmloff/VisAreaExport.hxx" #include "XMLNumberStylesExport.hxx" #include diff --git a/xmloff/source/style/VisAreaExport.cxx b/xmloff/source/style/VisAreaExport.cxx deleted file mode 100644 index 5ed8dbb2a801..000000000000 --- a/xmloff/source/style/VisAreaExport.cxx +++ /dev/null @@ -1,86 +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 - * - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -// MARKER(update_precomp.py): autogen include statement, do not remove -#include "precompiled_xmloff.hxx" -#include -#include "xmloff/VisAreaExport.hxx" -#include -#include "xmloff/xmlnmspe.hxx" -#include -#include -#include -#include - -using namespace ::xmloff::token; - - -XMLVisAreaExport::XMLVisAreaExport(SvXMLExport& rExport, const sal_Char *pName, - const Rectangle& aRect, const MapUnit aMapUnit) -{ - SvXMLUnitConverter& rUnitConv = rExport.GetMM100UnitConverter(); - - // write VisArea Element and its Attributes - rtl::OUStringBuffer sBuffer; - rUnitConv.convertMeasure(sBuffer, aRect.getX(), aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_X, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.getY(), aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_Y, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.getWidth(), aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_WIDTH, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.getHeight(), aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_HEIGHT, sBuffer.makeStringAndClear()); - SvXMLElementExport aVisAreaElem(rExport, XML_NAMESPACE_OFFICE, pName, sal_True, sal_True); -} - -XMLVisAreaExport::XMLVisAreaExport(SvXMLExport& rExport, const sal_Char *pName, - const com::sun::star::awt::Rectangle& aRect, const sal_Int16 nMeasureUnit ) -{ - MapUnit aMapUnit = (MapUnit)nMeasureUnit; - - SvXMLUnitConverter& rUnitConv = rExport.GetMM100UnitConverter(); - - // write VisArea Element and its Attributes - rtl::OUStringBuffer sBuffer; - rUnitConv.convertMeasure(sBuffer, aRect.X, aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_X, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.Y, aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_Y, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.Width, aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_WIDTH, sBuffer.makeStringAndClear()); - rUnitConv.convertMeasure(sBuffer, aRect.Height, aMapUnit); - rExport.AddAttribute(XML_NAMESPACE_OFFICE, XML_HEIGHT, sBuffer.makeStringAndClear()); - SvXMLElementExport aVisAreaElem(rExport, XML_NAMESPACE_OFFICE, pName, sal_True, sal_True); -} - -XMLVisAreaExport::~XMLVisAreaExport() -{ -} - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit