summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2002-02-20 17:33:01 +0000
committerMichael Brauer <mib@openoffice.org>2002-02-20 17:33:01 +0000
commit7585cb1c54d4365f548394dc3affd6da80ef77c7 (patch)
tree11f34cb2b20de681911b6b8f58bd139c3176ecee /sw/source/ui
parent65397bff2302f4d36be3699aaa18b0c75fddc617 (diff)
#95586#: Accessible view is now view aware
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx51
-rw-r--r--sw/source/ui/uiview/viewport.cxx9
2 files changed, 5 insertions, 55 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 331b138d7ecc..74b4058740ec 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edtwin.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: vg $ $Date: 2002-02-19 14:59:57 $
+ * last change: $Author: mib $ $Date: 2002-02-20 18:31:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -290,14 +290,6 @@
#ifndef _SWWDOCSH_HXX //autogen
#include <wdocsh.hxx>
#endif
-#ifdef ACCESSIBLE_LAYOUT
-#ifndef _ACCMAP_HXX
-#include <accmap.hxx>
-#endif
-#ifndef _DOC_HXX
-#include <doc.hxx>
-#endif
-#endif
#ifndef _HELPID_H
#include <helpid.h>
@@ -3392,9 +3384,6 @@ SwEditWin::SwEditWin(Window *pParent, SwView &rMyView):
nDropDestination( 0 ),
nInsFrmColCount( 1 ),
bLockInput(FALSE)
-#ifdef ACCESSIBLE_LAYOUT
- ,bHasAccessible( FALSE )
-#endif
{
SetHelpId(HID_EDIT_WIN);
EnableChildTransparentMode();
@@ -3865,45 +3854,11 @@ void SwEditWin::SetChainMode( BOOL bOn )
rView.GetViewFrame()->GetBindings().Invalidate(aInva);
}
-
-#ifdef ACCESSIBLE_LAYOUT
::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible > SwEditWin::CreateAccessible()
{
- using namespace ::com::sun::star;
- using namespace ::drafts::com::sun::star;
-
- uno::Reference< accessibility::XAccessible > xAcc;
-
SwWrtShell &rSh = rView.GetWrtShell();
-
- SwDoc *pDoc = rSh.GetDoc();
- // We require a layout and an XModel to be accessible.
- ASSERT( pDoc->GetRootFrm(), "no layout, no access" );
-
- if( pDoc->GetRootFrm() )
- {
- xAcc = aAccMap.GetDocumentView( GetParent()->GetAccessible(),
- rView.GetVisArea(),
- pDoc->GetRootFrm() );
- bHasAccessible = sal_True;
- }
-
- return xAcc;
-}
-
-void SwEditWin::UpdateAccessible()
-{
- SwWrtShell &rSh = rView.GetWrtShell();
- SwDoc *pDoc = rSh.GetDoc();
-
- if( bHasAccessible && pDoc->GetRootFrm() )
- {
- aAccMap.GetDocumentView( GetParent()->GetAccessible(),
- rView.GetVisArea(),
- pDoc->GetRootFrm() );
- }
+ return rSh.CreateAccessible();
}
-#endif
//-------------------------------------------------------------
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx
index 97d43e8d545f..571e6bcc8ccd 100644
--- a/sw/source/ui/uiview/viewport.cxx
+++ b/sw/source/ui/uiview/viewport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewport.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: mib $ $Date: 2002-02-14 10:48:19 $
+ * last change: $Author: mib $ $Date: 2002-02-20 18:32:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -385,11 +385,6 @@ void SwView::SetVisArea( const Rectangle &rRect, BOOL bUpdateScrollbar )
if ( bOuterResize )
OuterResizePixel( Point(),
GetViewFrame()->GetWindow().GetOutputSizePixel() );
-
-#ifdef ACCESSIBLE_LAYOUT
- if( pEditWin )
- pEditWin->UpdateAccessible();
-#endif
}
/*--------------------------------------------------------------------