[Libreoffice-commits] core.git: 2 commits - sfx2/source sfx2/uiconfig
Caolán McNamara
caolanm at redhat.com
Tue Nov 26 07:45:17 PST 2013
sfx2/source/dialog/tabdlg.cxx | 3 +++
sfx2/source/dialog/templdlg.src | 3 ++-
sfx2/source/menu/mnuitem.cxx | 4 ++++
sfx2/source/view/viewfrm.cxx | 8 ++++++--
sfx2/uiconfig/ui/newstyle.ui | 5 +++++
5 files changed, 20 insertions(+), 3 deletions(-)
New commits:
commit b28715862b3e8e6e739ffbbdec515d05e3a1d9ad
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Nov 26 15:40:06 2013 +0000
add accessibility names to .ui
Change-Id: I3453e3c66de730e60843d655e094b7c3247fad1b
diff --git a/sfx2/uiconfig/ui/newstyle.ui b/sfx2/uiconfig/ui/newstyle.ui
index 4c8de54..c846d07 100644
--- a/sfx2/uiconfig/ui/newstyle.ui
+++ b/sfx2/uiconfig/ui/newstyle.ui
@@ -83,6 +83,11 @@
<property name="id_column">1</property>
<property name="dropdown">False</property>
<property name="max_width_chars">60</property>
+ <child internal-child="accessible">
+ <object class="AtkObject" id="stylename-atkobject">
+ <property name="AtkObject::accessible-name" translatable="yes">Style name</property>
+ </object>
+ </child>
<child internal-child="entry">
<object class="GtkEntry" id="comboboxtext-entry">
<property name="can_focus">False</property>
commit 2b951c2e2fb70e796f836115f1718bf4884b06eb
Author: Steve Yin <steve_y at apache.org>
Date: Tue Nov 26 15:38:11 2013 +0000
Integrate branch of IAccessible2
Change-Id: I7d6764cfc86b7b8846c0908278ae10a68c0a14f5
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 51c379a..81887f8 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -698,6 +698,9 @@ void SfxTabDialog::Start( sal_Bool bShow )
if ( bShow )
Show();
+
+ if ( IsVisible() && ( !HasChildPathFocus() || HasFocus() ) )
+ GrabFocusToFirstControl();
}
// -----------------------------------------------------------------------
diff --git a/sfx2/source/dialog/templdlg.src b/sfx2/source/dialog/templdlg.src
index 65ee1cf..fd9c11d 100644
--- a/sfx2/source/dialog/templdlg.src
+++ b/sfx2/source/dialog/templdlg.src
@@ -35,11 +35,12 @@ ImageList DLG_STYLE_DESIGNER
IdCount = { 3 ; };
};
- // Strings ---------------------------------------------------------------
+// Strings ---------------------------------------------------------------
String STR_STYLE_ELEMTLIST
{
Text [ en-US ] = "Style List" ;
};
+
String STR_STYLE_FILTER_HIERARCHICAL
{
Text [ en-US ] = "Hierarchical" ;
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx
index 45b7901..57c972f 100644
--- a/sfx2/source/menu/mnuitem.cxx
+++ b/sfx2/source/menu/mnuitem.cxx
@@ -198,6 +198,8 @@ void SfxMenuControl::StateChanged
DBG_ASSERT( GetId() < SID_OBJECTMENU0 || GetId() > SID_OBJECTMENU_LAST,
"SfxBoolItem not allowed for SID_OBJECTMENUx" );
bCheck = ((const SfxBoolItem*)pState)->GetValue();
+ Menu* pMenu = pOwnMenu->GetSVMenu();
+ pMenu->SetItemBits( GetId() , pMenu->GetItemBits( GetId() ) | MIB_CHECKABLE);
}
else if ( pState->ISA(SfxEnumItemInterface) &&
((SfxEnumItemInterface *)pState)->HasBoolValue() )
@@ -206,6 +208,8 @@ void SfxMenuControl::StateChanged
DBG_ASSERT( GetId() < SID_OBJECTMENU0 || GetId() > SID_OBJECTMENU_LAST,
"SfxEnumItem not allowed for SID_OBJECTMENUx" );
bCheck = ((SfxEnumItemInterface *)pState)->GetBoolValue();
+ Menu* pMenu = pOwnMenu->GetSVMenu();
+ pMenu->SetItemBits( GetId() , pMenu->GetItemBits( GetId() ) | MIB_CHECKABLE);
}
else if ( ( b_ShowStrings || bIsObjMenu ) && pState->ISA(SfxStringItem) )
{
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index f29363b..c956869 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -676,7 +676,11 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq )
if( pSalvageItem )
{
aURL = pSalvageItem->GetValue();
- pNewSet->ClearItem( SID_DOC_SALVAGE );
+ if (pNewSet)
+ {
+ pNewSet->ClearItem( SID_ORIGURL );
+ pNewSet->ClearItem( SID_DOC_SALVAGE );
+ }
}
#if HAVE_FEATURE_MULTIUSER_ENVIRONMENT
@@ -3134,13 +3138,13 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq )
sal_Bool bHasChild = HasChildWindow(nSID);
sal_Bool bShow = pShowItem ? pShowItem->GetValue() : !bHasChild;
+ GetDispatcher()->Update_Impl( sal_True );
// Perform action.
if ( !pShowItem || bShow != bHasChild )
ToggleChildWindow( nSID );
GetBindings().Invalidate( nSID );
- GetDispatcher()->Update_Impl( sal_True );
// Record if possible.
if ( nSID == SID_HYPERLINK_DIALOG || nSID == SID_SEARCH_DLG )
More information about the Libreoffice-commits
mailing list