diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-12-14 15:58:13 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-12-14 15:58:13 +0000 |
commit | 283dbafda2af64dd0298ff1a1d8179ff3194b7ab (patch) | |
tree | 8e0a708f771f7e60d605a7bb5e399a77847cf386 /sd | |
parent | 5a2b7916dd56622021225bd1e18787762edad1ff (diff) |
INTEGRATION: CWS impressfunctions (1.6.38); FILE MERGED
2005/10/28 10:57:36 cl 1.6.38.1: #125341# reworked FuPoor classes to use refcounting
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuediglu.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuediglu.cxx b/sd/source/ui/func/fuediglu.cxx index 313833962db9..09b43c1c0d34 100644 --- a/sd/source/ui/func/fuediglu.cxx +++ b/sd/source/ui/func/fuediglu.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fuediglu.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2005-09-09 04:42:39 $ + * last change: $Author: rt $ $Date: 2005-12-14 16:58:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -85,6 +85,20 @@ FuEditGluePoints::FuEditGluePoints ( SfxRequest& rReq) : FuDraw(pViewSh, pWin, pView, pDoc, rReq) { +} + +FunctionReference FuEditGluePoints::Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq, bool bPermanent ) +{ + FuEditGluePoints* pFunc; + FunctionReference xFunc( pFunc = new FuEditGluePoints( pViewSh, pWin, pView, pDoc, rReq ) ); + xFunc->DoExecute(rReq); + pFunc->SetPermanent( bPermanent ); + return xFunc; +} + +void FuEditGluePoints::DoExecute( SfxRequest& rReq ) +{ + FuDraw::DoExecute( rReq ); pView->SetInsGluePointMode(FALSE); pViewShell->GetObjectBarManager().ActivateObjectBar(RID_GLUEPOINTS_TOOLBOX);//todo: would be better to call just 'GetObjectBarManager().SelectionHasChanged(pView)' but this is not possible currently because the Gluepoint mode is not correctly detectable(SDRCONTEXT_GLUEPOINTEDIT is not sufficient); the view context design needs a cleanup first; than we could maybe introduce a methhod ObjectBarManager::ContextChanged( ... ) } |