diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-21 15:05:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-21 15:06:26 +0000 |
commit | 57d95b35be6b6a5741d4769525ae15a1240c9d9d (patch) | |
tree | 8723402860ddd6a962e88d7c79ed364d9ed16adf /sc | |
parent | bc7b349ea262995d4599cda686d39af15a1e7aa6 (diff) |
WaE: C4610: class 'ScVbaCommentShape' can never be instantiated
Diffstat (limited to 'sc')
-rw-r--r-- | sc/Library_vbaobj.mk | 1 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacomment.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacommentshape.cxx | 43 | ||||
-rw-r--r-- | sc/source/ui/vba/vbacommentshape.hxx | 46 |
4 files changed, 0 insertions, 91 deletions
diff --git a/sc/Library_vbaobj.mk b/sc/Library_vbaobj.mk index 60beaf32fba1..6a6b80de63b4 100644 --- a/sc/Library_vbaobj.mk +++ b/sc/Library_vbaobj.mk @@ -81,7 +81,6 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\ sc/source/ui/vba/vbacharttitle \ sc/source/ui/vba/vbacomment \ sc/source/ui/vba/vbacomments \ - sc/source/ui/vba/vbacommentshape \ sc/source/ui/vba/vbacondition \ sc/source/ui/vba/vbadialog \ sc/source/ui/vba/vbadialogs \ diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx index 402d9e9e1667..bfb5d62f39f2 100644 --- a/sc/source/ui/vba/vbacomment.cxx +++ b/sc/source/ui/vba/vbacomment.cxx @@ -50,7 +50,6 @@ #include <vbahelper/vbashape.hxx> #include "vbaglobals.hxx" #include "vbacomments.hxx" -#include "vbacommentshape.hxx" using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/sc/source/ui/vba/vbacommentshape.cxx b/sc/source/ui/vba/vbacommentshape.cxx deleted file mode 100644 index 1c942d6471fc..000000000000 --- a/sc/source/ui/vba/vbacommentshape.cxx +++ /dev/null @@ -1,43 +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 IBM Corporation 2009, 2010. - * 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 "vbacommentshape.hxx" - -using namespace com::sun::star; -using namespace ooo::vba; - -void SAL_CALL ScVbaCommentShape::Delete() throw (uno::RuntimeException) -{ - if ( m_xComment.is() ) - { - m_xComment->Delete(); - } -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/vba/vbacommentshape.hxx b/sc/source/ui/vba/vbacommentshape.hxx deleted file mode 100644 index 76adc99bf234..000000000000 --- a/sc/source/ui/vba/vbacommentshape.hxx +++ /dev/null @@ -1,46 +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 IBM Corporation 2009, 2010. - * 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 SC_VBA_COMMENTSHAPE_HXX -#define SC_VBA_COMMENTSHAPE_HXX - -#include <ooo/vba/excel/XComment.hpp> -#include <vbahelper/vbashape.hxx> - -class ScVbaCommentShape : public ScVbaShape -{ - css::uno::Reference< ooo::vba::excel::XComment > m_xComment; - -public: - // Methods - virtual void SAL_CALL Delete() throw (css::uno::RuntimeException); -}; -#endif //SC_VBA_COMMENTSHAPE_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |