From c3332fd027109fa3ffff8a894b3d190ed88cd2b2 Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Tue, 3 Dec 2002 13:57:19 +0000 Subject: [PATCH] #105815# On creation of a default text object no text is inserted on default but object is put into edit mode. --- sd/source/ui/func/futext.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 38aff1afae4d..fc191f5a3031 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: futext.cxx,v $ * - * $Revision: 1.35 $ + * $Revision: 1.36 $ * - * last change: $Author: cl $ $Date: 2002-11-29 14:23:07 $ + * last change: $Author: af $ $Date: 2002-12-03 14:57:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1500,7 +1500,10 @@ void FuText::DoubleClick(const MouseEvent& rMEvt) // Nichts zu tun } -// #97016# +/** #97016# + #105815# Removed the insertion of default text and putting a new text + object directly into edit mode. +*/ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rRectangle) { // case SID_TEXTEDIT: // BASIC ??? @@ -1523,9 +1526,6 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR sal_Bool bVertical = (SID_ATTR_CHAR_VERTICAL == nID || SID_TEXT_FITTOSIZE_VERTICAL == nID); pText->SetVerticalWriting(bVertical); - String aText(SdResId(STR_POOLSHEET_TEXT)); - pText->SetText(aText); - // #97016# ImpSetAttributesForNewTextObject(pText); @@ -1544,6 +1544,10 @@ SdrObject* FuText::CreateDefaultObject(const sal_uInt16 nID, const Rectangle& rR // #97016# ImpSetAttributesFitCommon(pText); } + + // Put text object into edit mode. + SdrPageView* pPV = pView->GetPageViewPvNum(0); + pView->BegTextEdit (pText, pPV); } else {