Kaydet (Commit) 893dd199 authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Michael Meeks

Resolves: #i122047# Adding virtual destructors to interfaces...

to prevent problems with older compilers

(cherry picked from commit 8f3625e6)

Conflicts:
	sfx2/inc/sfx2/sidebar/IContextChangeReceiver.hxx
	sfx2/inc/sfx2/sidebar/ILayoutableWindow.hxx
	sfx2/inc/sfx2/sidebar/SidebarPanelBase.hxx

Change-Id: I2bf548fd7ff16db58938273bc4b60ad83325b376
üst d68bcdf0
......@@ -19,6 +19,7 @@
#define SFX_SIDEBAR_CONTEXT_CHANGE_RECEIVER_INTERFACE_HXX
#include "EnumContext.hxx"
#include "sfx2/dllapi.h"
namespace sfx2 { namespace sidebar {
......@@ -27,9 +28,9 @@ namespace sfx2 { namespace sidebar {
class SFX2_DLLPUBLIC IContextChangeReceiver
{
public:
virtual void HandleContextChange (
const EnumContext aContext) = 0;
virtual ~IContextChangeReceiver();
virtual ~IContextChangeReceiver ();
virtual void HandleContextChange (const EnumContext aContext) = 0;
};
} } // end of namespace ::sd::sidebar
......
......@@ -18,9 +18,9 @@
#ifndef SFX_SIDEBAR_LAYOUTABLE_WINDOW_INTERFACE_HXX
#define SFX_SIDEBAR_LAYOUTABLE_WINDOW_INTERFACE_HXX
#include "sfx2/dllapi.h"
#include <tools/gen.hxx>
#include <sal/types.h>
#include <sfx2/dllapi.h>
#include <com/sun/star/ui/LayoutSize.hpp>
class Window;
......@@ -31,11 +31,12 @@ namespace sfx2 { namespace sidebar {
class SFX2_DLLPUBLIC ILayoutableWindow
{
public:
virtual ~ILayoutableWindow();
/** Return the preferred height with the constraint, that the
window will be set to the given width.
*/
virtual ::com::sun::star::ui::LayoutSize GetHeightForWidth (const sal_Int32 nWidth) = 0;
virtual ~ILayoutableWindow();
};
......
......@@ -19,6 +19,7 @@
#define SFX_SIDEBAR_PANEL_BASE_HXX
#include "EnumContext.hxx"
#include "IContextChangeReceiver.hxx"
#include <cppuhelper/compbase4.hxx>
#include <cppuhelper/basemutex.hxx>
......@@ -63,7 +64,7 @@ public:
static cssu::Reference<css::ui::XUIElement> Create (
const ::rtl::OUString& rsResourceURL,
const cssu::Reference<css::frame::XFrame>& rxFrame,
Window* mpWindow,
Window* pControl,
const css::ui::LayoutSize& rLayoutSize);
// XContextChangeEventListener
......
......@@ -18,7 +18,6 @@
#ifndef SC_PROPERTYPANEL_ALIGNMENT_HXX
#define SC_PROPERTYPANEL_ALIGNMENT_HXX
#include <sfx2/sidebar/SidebarPanelBase.hxx>
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <vcl/fixed.hxx>
......
......@@ -18,7 +18,6 @@
#ifndef SC_PROPERTYPANEL_APPEARANCE_HXX
#define SC_PROPERTYPANEL_APPEARANCE_HXX
#include <sfx2/sidebar/SidebarPanelBase.hxx>
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <boost/scoped_ptr.hpp>
......
......@@ -18,7 +18,6 @@
#ifndef SC_PROPERTYPANEL_NUMFORMAT_HXX
#define SC_PROPERTYPANEL_NUMFORMAT_HXX
#include <sfx2/sidebar/SidebarPanelBase.hxx>
#include <sfx2/sidebar/ControllerItem.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <boost/scoped_ptr.hpp>
......
......@@ -249,6 +249,8 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/sidebar/EnumContext \
sfx2/source/sidebar/FocusManager \
sfx2/source/sidebar/MenuButton \
sfx2/source/sidebar/IContextChangeReceiver \
sfx2/source/sidebar/ILayoutableWindow \
sfx2/source/sidebar/Paint \
sfx2/source/sidebar/Panel \
sfx2/source/sidebar/PanelDescriptor \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment