diff options
author | Krisztian Pinter <pin.terminator@gmail.com> | 2013-08-16 19:16:45 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-08-21 14:14:49 +0000 |
commit | 08dc975721d7837bf9611104a7052b5384685167 (patch) | |
tree | 833a213f4194e18eb44077fca3d3796558911b5c /sfx2/source/dialog/backingwindow.cxx | |
parent | 1ece204b543e2c1bd65d02ceba43b3ed7028feae (diff) |
startcenter: Add new document buttons to "All" tab
Change-Id: I39154f74e126826daeb74345c0712156b89a6d02
Reviewed-on: https://gerrit.libreoffice.org/5456
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'sfx2/source/dialog/backingwindow.cxx')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 28 |
1 files changed, 20 insertions, 8 deletions
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 ) { |