diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-06-27 07:47:17 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-06-27 07:47:17 +0000 |
commit | 57eb011a629856f0695258a1aa9979de5f529dc8 (patch) | |
tree | f04309c6523bf777eec50b9832bc0c8df41e45fd /sw/source/ui/app | |
parent | ee494d952594e2c6017a0f481ea9cef592e0e11b (diff) |
#100714#: macro recording
Diffstat (limited to 'sw/source/ui/app')
-rw-r--r-- | sw/source/ui/app/docst.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sw/source/ui/app/docst.cxx b/sw/source/ui/app/docst.cxx index 2d0b45e40d35..786e1c513630 100644 --- a/sw/source/ui/app/docst.cxx +++ b/sw/source/ui/app/docst.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docst.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: os $ $Date: 2002-05-03 11:18:20 $ + * last change: $Author: mba $ $Date: 2002-06-27 08:43:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -386,7 +386,11 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) SfxNewStyleDlg *pDlg = new SfxNewStyleDlg( 0, *GetStyleSheetPool()); if(RET_OK == pDlg->Execute()) + { aParam = pDlg->GetName(); + rReq.AppendItem(SfxStringItem(nSlot, aParam)); + } + delete pDlg; } break; @@ -470,8 +474,7 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) break; case SID_STYLE_APPLY: // Shellwechsel in ApplyStyles - nRet = ApplyStyles(aParam, nFamily, pActShell, - rReq.GetModifier() ); + nRet = ApplyStyles(aParam, nFamily, pActShell, rReq.GetModifier() ); break; case SID_STYLE_WATERCAN: nRet = DoWaterCan(aParam, nFamily); @@ -492,7 +495,10 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) default: DBG_ERROR( "Falsche Slot-Id"); } + + rReq.Done(); } + break; } } |