diff options
author | Andre Fischer <af@openoffice.org> | 2002-04-22 14:32:56 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2002-04-22 14:32:56 +0000 |
commit | aded6d90bf9f590cfd16a655642c804e51ee4c5a (patch) | |
tree | c15eb94f01f2ea0a9d378e0626b17c0811164ec0 /sd/source/ui/view/sdwindow.cxx | |
parent | 6b92dda0f727ee20caf1df6511afad945938db42 (diff) |
#95585# Using the new AccessibleDrawDocumentView class.
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index b09440d4b8ea..554b66393d5e 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.11 $ + * $Revision: 1.12 $ * - * last change: $Author: af $ $Date: 2002-04-11 17:00:14 $ + * last change: $Author: af $ $Date: 2002-04-22 15:32:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -75,7 +75,9 @@ #include "drviewsh.hxx" #include "sdview.hxx" #include "outlnvsh.hxx" -#include "AccessibleDocumentView.hxx" +#ifndef _SD_ACCESSIBILITY_ACCESSIBLE_DRAW_DOCUMENT_VIEW_HXX +#include "AccessibleDrawDocumentView.hxx" +#endif @@ -878,30 +880,18 @@ sal_Int8 SdWindow::ExecuteDrop( const ExecuteDropEvent& rEvt ) } + + ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible> SdWindow::CreateAccessible (void) { if (pViewShell != NULL) + return pViewShell->CreateAccessibleDocumentView (this); + else { - SdDrawDocument* pDocument = pViewShell->GetDoc(); - ::com::sun::star::uno::Reference< - ::com::sun::star::frame::XController> xController (pViewShell->GetController()); - if (xController.is()) - { - 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"); + OSL_TRACE ("SdWindow::CreateAccessible: no view shell"); return Window::CreateAccessible (); + } } |