From 08dc975721d7837bf9611104a7052b5384685167 Mon Sep 17 00:00:00 2001 From: Krisztian Pinter Date: Fri, 16 Aug 2013 19:16:45 +0200 Subject: startcenter: Add new document buttons to "All" tab Change-Id: I39154f74e126826daeb74345c0712156b89a6d02 Reviewed-on: https://gerrit.libreoffice.org/5456 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky --- sfx2/source/dialog/backingwindow.cxx | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'sfx2/source/dialog/backingwindow.cxx') diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 2e8afdf1c7f6..d69b2fb4ac32 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -82,6 +82,13 @@ BackingWindow::BackingWindow( Window* i_pParent ) : get(mpDBButton, "database"); get(mpMathButton, "math"); + get(mpWriterAllButton, "writer_all"); + get(mpCalcAllButton, "calc_all"); + get(mpImpressAllButton, "impress_all"); + get(mpDrawAllButton, "draw_all"); + get(mpDBAllButton, "database_all"); + get(mpMathAllButton, "math_all"); + get(mpExtensionsButton, "extension"); get(mpInfoButton, "info"); get(mpTplRepButton, "add_temp"); @@ -226,6 +233,13 @@ void BackingWindow::initControls() setupButton( mpImpressButton ); setupButton( mpMathButton ); + setupButton( mpWriterAllButton ); + setupButton( mpDrawAllButton ); + setupButton( mpCalcAllButton ); + setupButton( mpDBAllButton ); + setupButton( mpImpressAllButton ); + setupButton( mpMathAllButton ); + setupButton( mpOpenButton ); setupButton( mpTemplateButton ); @@ -234,8 +248,6 @@ void BackingWindow::initControls() setupExternalLink( mpTplRepButton ); Resize(); - - mpWriterButton->GrabFocus(); } void BackingWindow::setupModuleTab(const OString& rTabName, RecentDocsView* pRecView, int nFileTypes, @@ -392,17 +404,17 @@ IMPL_LINK( BackingWindow, ExtLinkClickHdl, Button*, pButton ) IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton ) { // dispatch the appropriate URL and end the dialog - if( pButton == mpWriterButton ) + if( pButton == mpWriterButton || pButton == mpWriterAllButton ) dispatchURL( WRITER_URL ); - else if( pButton == mpCalcButton ) + else if( pButton == mpCalcButton || pButton == mpCalcAllButton ) dispatchURL( CALC_URL ); - else if( pButton == mpImpressButton ) + else if( pButton == mpImpressButton || pButton == mpImpressAllButton ) dispatchURL( IMPRESS_WIZARD_URL ); - else if( pButton == mpDrawButton ) + else if( pButton == mpDrawButton || pButton == mpDrawAllButton ) dispatchURL( DRAW_URL ); - else if( pButton == mpDBButton ) + else if( pButton == mpDBButton || pButton == mpDBAllButton ) dispatchURL( BASE_URL ); - else if( pButton == mpMathButton ) + else if( pButton == mpMathButton || pButton == mpMathAllButton ) dispatchURL( MATH_URL ); else if( pButton == mpOpenButton ) { -- cgit