20#include <com/sun/star/accessibility/AccessibleEventId.hpp>
47 const uno::Reference<frame::XController>& rxController,
48 const uno::Reference<XAccessible>& rxParent)
49 : AccessibleDocumentViewBase (pSdWindow, pViewShell, rxController, rxParent),
65 OutlinerView* pOutlineView = pShellView->GetViewByWindow( pSdWindow );
70 maTextHelper.SetEditSource( ::std::unique_ptr< SvxEditSource >(
new AccessibleOutlineEditSource(
71 rOutliner, *pView, *pOutlineView, *pSdWindow ) ) );
75AccessibleOutlineView::~AccessibleOutlineView()
79void AccessibleOutlineView::Init()
82 maTextHelper.SetEventSource(
this);
84 AccessibleDocumentViewBase::Init ();
87void AccessibleOutlineView::ViewForwarderChanged()
89 AccessibleDocumentViewBase::ViewForwarderChanged();
97 AccessibleOutlineView::getAccessibleChildCount()
102 return maTextHelper.GetChildCount();
105uno::Reference<XAccessible> SAL_CALL
106 AccessibleOutlineView::getAccessibleChild (sal_Int64 nIndex)
110 return maTextHelper.GetChild(
nIndex);
114 AccessibleOutlineView::getAccessibleName()
124 if (sFileName.isEmpty())
132 if (!sFileName.isEmpty())
142void SAL_CALL AccessibleOutlineView::addAccessibleEventListener(
const uno::Reference< XAccessibleEventListener >& xListener )
146 maTextHelper.AddEventListener(xListener);
147 AccessibleContextBase::addEventListener(xListener);
150void SAL_CALL AccessibleOutlineView::removeAccessibleEventListener(
const uno::Reference< XAccessibleEventListener >& xListener )
154 maTextHelper.RemoveEventListener(xListener);
155 AccessibleContextBase::removeEventListener(xListener);
161 AccessibleOutlineView::getImplementationName()
163 return "AccessibleOutlineView";
170void AccessibleOutlineView::Activated()
175 maTextHelper.SetFocus();
178void AccessibleOutlineView::Deactivated()
183 maTextHelper.SetFocus(
false);
186void SAL_CALL AccessibleOutlineView::disposing()
189 maTextHelper.Dispose();
191 AccessibleDocumentViewBase::disposing ();
197 AccessibleOutlineView::propertyChange (
const beans::PropertyChangeEvent& rEventObject)
201 AccessibleDocumentViewBase::propertyChange (rEventObject);
204 if (rEventObject.PropertyName ==
"CurrentPage" ||
205 rEventObject.PropertyName ==
"PageChange")
209 CommitChange(AccessibleEventId::PAGE_CHANGED,rEventObject.NewValue, rEventObject.OldValue, -1);
211 else if ( rEventObject.PropertyName ==
"VisibleArea" )
223OUString AccessibleOutlineView::CreateAccessibleName()
225 return SdResId(SID_SD_A11Y_I_OUTLINEVIEW_N);
228void AccessibleOutlineView::UpdateChildren()
233 maTextHelper.UpdateChildren();
SAL_DLLPRIVATE const OUString & getDocAccTitle() const
OUString GetTitle(sal_uInt16 nMaxLen=0) const
AccessibleOutlineView(::sd::Window *pSdWindow, ::sd::OutlineViewShell *pViewShell, const css::uno::Reference< css::frame::XController > &rxController, const css::uno::Reference< css::accessibility::XAccessible > &rxParent)
Show a textual overview of the text contents of all slides.
Derivative of sd::View for the outline mode |* .
::sd::View * GetView() const
DrawDocShell * GetDocSh() const
SdDrawDocument & GetDoc() const
An SdWindow contains the actual working area of ViewShell.
#define SAL_INFO(area, stream)
#define SFX_TITLE_APINAME
OUString SdResId(TranslateId aId)