summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx7
-rw-r--r--sfx2/source/view/viewfrm2.cxx10
2 files changed, 16 insertions, 1 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 57e60136b617..95c844107c56 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -662,7 +662,14 @@ void SfxTabDialog::Start( sal_Bool bShow )
Start_Impl();
if ( bShow )
+ {
Show();
+ }
+ if ( IsVisible() && ( !HasChildPathFocus() || HasFocus() ) )
+ {
+ GrabFocusToFirstControl();
+ }
+
}
// -----------------------------------------------------------------------
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index e03206919106..a9563ae95c57 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -62,7 +62,7 @@
#include <tools/urlobj.hxx>
#include <unotools/bootstrap.hxx>
#include <unotools/configmgr.hxx>
-#include <vcl/window.hxx>
+#include <vcl/syswin.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -257,6 +257,14 @@ String SfxViewFrame::UpdateTitle()
GetBindings().Invalidate( SID_NEWDOCDIRECT );
+ // MT: GetTopFrame_Impl doesn't exist anymore: Window* pWindow = GetTopFrame_Impl()->GetTopWindow_Impl();
+ // Is GetFrame correct???
+ Window* pWindow = GetFrame().GetTopWindow_Impl();
+ if ( pWindow)
+ {
+ pWindow->SetAccessibleName( String() );
+ pWindow->SetAccessibleName( aTitle );
+ }
return aTitle;
}