summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-01-19 17:27:28 +0100
committerMathias Bauer <mba@openoffice.org>2010-01-19 17:27:28 +0100
commit3e01ab9b13aa6bf670d461aaa50d03da8f9414dc (patch)
tree4c1cdc48c10ed5dc1697be565fe3a9ec6fe54fdf /sfx2
parent3d7a9891b2309c30da4a12b4cf5f5fd222195f2b (diff)
#i107450#: some problems with the dialog factory
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sfx2/sfxdlg.hxx3
-rw-r--r--sfx2/source/dialog/sfxdlg.cxx6
2 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/inc/sfx2/sfxdlg.hxx b/sfx2/inc/sfx2/sfxdlg.hxx
index 9aae89cc3964..256e4a03ce47 100644
--- a/sfx2/inc/sfx2/sfxdlg.hxx
+++ b/sfx2/inc/sfx2/sfxdlg.hxx
@@ -115,9 +115,10 @@ public:
namespace com { namespace sun { namespace star { namespace frame { class XFrame; } } } }
-class SFX2_DLLPUBLIC SfxAbstractDialogFactory : public VclAbstractDialogFactory
+class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory
{
public:
+ virtual ~SfxAbstractDialogFactory(); // needed for export of vtable
static SfxAbstractDialogFactory* Create();
virtual VclAbstractDialog* CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, sal_uInt32 nResId ) = 0;
virtual VclAbstractDialog* CreateFrameDialog( Window* pParent, const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame, sal_uInt32 nResId, const String& rParameter ) = 0;
diff --git a/sfx2/source/dialog/sfxdlg.cxx b/sfx2/source/dialog/sfxdlg.cxx
index 0e5f91ccea34..2f809d7d0744 100644
--- a/sfx2/source/dialog/sfxdlg.cxx
+++ b/sfx2/source/dialog/sfxdlg.cxx
@@ -39,5 +39,9 @@
SfxAbstractDialogFactory* SfxAbstractDialogFactory::Create()
{
- return (SfxAbstractDialogFactory*) VclAbstractDialogFactory::Create();
+ return dynamic_cast <SfxAbstractDialogFactory*>( VclAbstractDialogFactory::Create() );
}
+
+SfxAbstractDialogFactory::~SfxAbstractDialogFactory()
+{
+} \ No newline at end of file