summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2014-11-23 10:19:40 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2014-11-24 14:44:57 +0200
commitd94a5c50529e348b773e3494721d2353f86b1b4e (patch)
tree5d759fca5339dacc78c031adb99fb318b1d24344 /sd
parent2af68258f1c6d7a77226475ee48e28357262fda8 (diff)
fdo#86546 Open the right tab for more bullets and numbering
Change-Id: Ib8dda6eab89c92fa9bea98e3570896ea02692585 (cherry picked from commit cb6ced50c11ea71e5655c46e49f17f3b5921f526)
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuolbull.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx
index aa19030e00b3..9888738c46ba 100644
--- a/sd/source/ui/func/fuolbull.cxx
+++ b/sd/source/ui/func/fuolbull.cxx
@@ -68,8 +68,9 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
}
const SfxItemSet* pArgs = rReq.GetArgs();
+ SFX_ITEMSET_ARG( pArgs, pPageItem, SfxStringItem, FN_PARAM_1, false );
- if( !pArgs )
+ if ( !pArgs || pPageItem )
{
// fill ItemSet for Dialog
SfxItemSet aEditAttr( mpDoc->GetPool() );
@@ -84,6 +85,8 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
boost::scoped_ptr<SfxAbstractTabDialog> pDlg(pFact ? pFact->CreateSdOutlineBulletTabDlg( NULL, &aNewAttr, mpView ) : 0);
if( pDlg )
{
+ if ( pPageItem )
+ pDlg->SetCurPageId( OUStringToOString( pPageItem->GetValue(), RTL_TEXTENCODING_UTF8 ) );
sal_uInt16 nResult = pDlg->Execute();
switch( nResult )