diff options
author | David Tardon <dtardon@redhat.com> | 2012-01-15 12:57:11 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-01-15 20:27:17 +0100 |
commit | ee5371c805312946f4fd83f3394536e51cd9fdfb (patch) | |
tree | 191b6eb87909c3f6b508096bee3da8f308c78491 /accessibility | |
parent | a54018c2429483d5447d63c064ca430e99245f6a (diff) |
WaE: deleting object of abstract class type with non-virtual destructor
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/Library_acc.mk | 1 | ||||
-rw-r--r-- | accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx | 9 | ||||
-rw-r--r-- | accessibility/source/helper/IComboListBoxHelper.cxx | 41 |
3 files changed, 50 insertions, 1 deletions
diff --git a/accessibility/Library_acc.mk b/accessibility/Library_acc.mk index 16ff5d8e9d2c..6fb65b6dc84e 100644 --- a/accessibility/Library_acc.mk +++ b/accessibility/Library_acc.mk @@ -89,6 +89,7 @@ $(eval $(call gb_Library_add_exception_objects,acc,\ accessibility/source/helper/acc_factory \ accessibility/source/helper/accresmgr \ accessibility/source/helper/characterattributeshelper \ + accessibility/source/helper/IComboListBoxHelper \ accessibility/source/standard/accessiblemenubasecomponent \ accessibility/source/standard/accessiblemenucomponent \ accessibility/source/standard/accessiblemenuitemcomponent \ diff --git a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx index 37bfd1997409..ce2338d823be 100644 --- a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx +++ b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx @@ -28,6 +28,8 @@ #ifndef ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX #define ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX +#include <com/sun/star/uno/Reference.hxx> + #include <tools/string.hxx> #include <tools/wintypes.hxx> @@ -35,12 +37,16 @@ namespace com { namespace sun { namespace star { namespace datatransfer { namesp class XClipboard; } } } } } +class Point; +class Rectangle; class Window; namespace accessibility { - class SAL_NO_VTABLE IComboListBoxHelper + class IComboListBoxHelper { public: + virtual ~IComboListBoxHelper() = 0; + virtual String GetEntry( sal_uInt16 nPos ) const = 0; virtual Rectangle GetDropDownPosSizePixel( ) const = 0; virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0; @@ -69,3 +75,4 @@ namespace accessibility #endif // ACCESSIBILITY_HELPER_COMBOLISTBOXHELPER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ + diff --git a/accessibility/source/helper/IComboListBoxHelper.cxx b/accessibility/source/helper/IComboListBoxHelper.cxx new file mode 100644 index 000000000000..1a7d35549a33 --- /dev/null +++ b/accessibility/source/helper/IComboListBoxHelper.cxx @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com> + * (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include <accessibility/helper/IComboListBoxHelper.hxx> + +namespace accessibility +{ + +IComboListBoxHelper::~IComboListBoxHelper() +{ +} + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |