diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 14:10:29 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 14:10:29 +0000 |
commit | 49fc129ac69797d8af695f880b0f55e71e646735 (patch) | |
tree | f3fc9a2afe32670e4f9653a19fc5d9e8246e4c79 /sd/source/ui/func/fuconbez.cxx | |
parent | 323dd51e7c38a1faeaaca1fbbd6c21c2e28a5df5 (diff) |
INTEGRATION: CWS impress10 (1.8.214); FILE MERGED
2004/10/07 12:06:35 af 1.8.214.1: #i35109# Added support of default object bar.
Diffstat (limited to 'sd/source/ui/func/fuconbez.cxx')
-rw-r--r-- | sd/source/ui/func/fuconbez.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sd/source/ui/func/fuconbez.cxx b/sd/source/ui/func/fuconbez.cxx index cc4dd42ed7fa..13f68cc3ed47 100644 --- a/sd/source/ui/func/fuconbez.cxx +++ b/sd/source/ui/func/fuconbez.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fuconbez.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: obo $ $Date: 2004-01-20 10:58:05 $ + * last change: $Author: rt $ $Date: 2004-11-26 15:10:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -362,17 +362,14 @@ void FuConstructBezierPolygon::SelectionHasChanged() { FuDraw::SelectionHasChanged(); - /************************************************************************** - * ObjectBar einschalten - **************************************************************************/ - USHORT nObjBarId = RID_DRAW_OBJ_TOOLBOX; + // Depending on the context of the view we activate the bezier tool bar + // or switch back to the default tool bar. + ShellId nObjectBarId (pViewShell->GetObjectBarManager().GetDefaultObjectBarId()); if (pView->GetContext() == SDRCONTEXT_POINTEDIT) - { - nObjBarId = RID_BEZIER_TOOLBOX; - } + nObjectBarId = RID_BEZIER_TOOLBOX; - pViewShell->GetObjectBarManager().SwitchObjectBar (nObjBarId); + pViewShell->GetObjectBarManager().SwitchObjectBar (nObjectBarId); } |