From f0deff052ef87690154a50c8ea792aea9c454e3b Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 14 Dec 2005 15:55:29 +0000 Subject: INTEGRATION: CWS impressfunctions (1.10.38); FILE MERGED 2005/10/28 10:57:34 cl 1.10.38.1: #125341# reworked FuPoor classes to use refcounting --- sd/source/ui/func/fuconarc.cxx | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'sd/source/ui/func/fuconarc.cxx') diff --git a/sd/source/ui/func/fuconarc.cxx b/sd/source/ui/func/fuconarc.cxx index 4903d4842542..2254588daecb 100644 --- a/sd/source/ui/func/fuconarc.cxx +++ b/sd/source/ui/func/fuconarc.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fuconarc.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2005-09-09 04:35:47 $ + * last change: $Author: rt $ $Date: 2005-12-14 16:55:29 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -105,6 +105,21 @@ FuConstructArc::FuConstructArc ( SfxRequest& rReq ) : FuConstruct( pViewSh, pWin, pView, pDoc, rReq ) { +} + +FunctionReference FuConstructArc::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq, bool bPermanent ) +{ + FuConstructArc* pFunc; + FunctionReference xFunc( pFunc = new FuConstructArc( pViewSh, pWin, pView, pDoc, rReq ) ); + xFunc->DoExecute(rReq); + pFunc->SetPermanent(bPermanent); + return xFunc; +} + +void FuConstructArc::DoExecute( SfxRequest& rReq ) +{ + FuConstruct::DoExecute( rReq ); + pViewShell->GetObjectBarManager().SwitchObjectBar (RID_DRAW_OBJ_TOOLBOX); const SfxItemSet *pArgs = rReq.GetArgs (); @@ -135,16 +150,6 @@ FuConstructArc::FuConstructArc ( } } -/************************************************************************* -|* -|* Destruktor -|* -\************************************************************************/ - -FuConstructArc::~FuConstructArc() -{ -} - /************************************************************************* |* |* MouseButtonDown-event -- cgit