[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sfx2/inc sfx2/source

Andrzej Hunt andrzej.hunt at collabora.com
Tue May 6 08:03:42 PDT 2014


 sfx2/inc/templatedlg.hxx        |    2 +-
 sfx2/source/doc/templatedlg.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e2f38ef8b6a5e30bee9e05fba7aec47287dddae4
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date:   Tue May 6 15:17:29 2014 +0100

    fdo#73766 TemplateManager: construct toolbars in focus traversal order.
    
    Focus traversal happens in the order that UI items are initialised. As
    the "TemplateBar" (i.e. actions that can be used on a selected template)
    is to the left of the "ActionBar" (i.e. search/etc.), the TemplateBar
    would be expected to be first in the traversal order.
    
    This patch is only relevant for LibreOffice 4.2 -- in master (to become 4.3)
    this dialog has already been converted to .ui, and focus traversal works
    as expected.
    
    Change-Id: I3328f2e79a8e5a781aceb29f79d0c54d4b421e74
    Reviewed-on: https://gerrit.libreoffice.org/9257
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/inc/templatedlg.hxx b/sfx2/inc/templatedlg.hxx
index b36e96e..2f7ce6e 100644
--- a/sfx2/inc/templatedlg.hxx
+++ b/sfx2/inc/templatedlg.hxx
@@ -141,8 +141,8 @@ private:
 
     Edit *mpSearchEdit;
     ToolBox *mpViewBar;
-    ToolBox *mpActionBar;
     ToolBox *mpTemplateBar;
+    ToolBox *mpActionBar;
     TemplateSearchView *mpSearchView;
     TemplateAbstractView *mpCurView;
     TemplateLocalView *mpLocalView;
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 07c054f..759d2d4 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -153,8 +153,8 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
       maTabPage(&maTabControl, SfxResId(TAB_TEMPLATE_MANAGER)),
       mpSearchEdit(new Edit(&maTabPage,WB_HIDE | WB_BORDER)),
       mpViewBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_VIEW))),
-      mpActionBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_ACTION))),
       mpTemplateBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_TEMPLATES))),
+      mpActionBar( new ToolBox(&maTabPage, SfxResId(TBX_ACTION_ACTION))),
       mpSearchView(new TemplateSearchView(&maTabPage)),
       mpLocalView(new TemplateLocalView(&maTabPage,SfxResId(TEMPLATE_VIEW))),
       mpRemoteView(new TemplateRemoteView(&maTabPage, WB_VSCROLL,false)),


More information about the Libreoffice-commits mailing list