diff options
author | Andre Fischer <af@openoffice.org> | 2002-04-11 16:00:14 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2002-04-11 16:00:14 +0000 |
commit | 3cca41a149516b28c841030bd1b25cd74a92c9aa (patch) | |
tree | f9041ccbcbd78a0f14fe5d052172ab1b0197a0f4 /sd/source/ui/view/sdwindow.cxx | |
parent | f41dc62b68caec33cf197a708bfe07b85abb9e8a (diff) |
#95585# Calling new Init method of AccessibleDocumentView class. Passing view shell.
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 07a33350f0a7..b09440d4b8ea 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sdwindow.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: af $ $Date: 2002-03-18 10:33:24 $ + * last change: $Author: af $ $Date: 2002-04-11 17:00:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -888,10 +888,18 @@ sal_Int8 SdWindow::ExecuteDrop( const ExecuteDropEvent& rEvt ) ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController> xController (pViewShell->GetController()); if (xController.is()) - return new accessibility::AccessibleDocumentView (this, - xController, - GetAccessibleParentWindow()->GetAccessible() - ); + { + accessibility::AccessibleDocumentView* pDocumentView = + new accessibility::AccessibleDocumentView (this, + pViewShell, + xController, + GetAccessibleParentWindow()->GetAccessible()); + pDocumentView->Init(); + return ::com::sun::star::uno::Reference< + ::drafts::com::sun::star::accessibility::XAccessible> + (static_cast< ::com::sun::star::uno::XWeak*>(pDocumentView), + ::com::sun::star::uno::UNO_QUERY); + } } OSL_TRACE ("no view shell or no controller"); return Window::CreateAccessible (); |