diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-03-02 20:09:13 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-03-02 20:09:13 +0000 |
commit | 6431bdc66e1ab0d0958285b28cf24de0237b9409 (patch) | |
tree | e8e1f7e641b6fcb06e19597dee60cd3828b2463b /sc/source/ui/drawfunc/fuconstr.cxx | |
parent | 352cc9ff737115356ea7bd24c2df7a022b13440a (diff) |
handle vertical draw text objects
Diffstat (limited to 'sc/source/ui/drawfunc/fuconstr.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fuconstr.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/source/ui/drawfunc/fuconstr.cxx b/sc/source/ui/drawfunc/fuconstr.cxx index a5309dd9d7f5..5ab58223d513 100644 --- a/sc/source/ui/drawfunc/fuconstr.cxx +++ b/sc/source/ui/drawfunc/fuconstr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fuconstr.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2000-09-22 18:52:10 $ + * last change: $Author: nn $ $Date: 2001-03-02 21:09:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -225,6 +225,7 @@ //------------------------------------------------------------------------ #include <svx/outliner.hxx> +#include <svx/outlobj.hxx> #include <svx/svdotext.hxx> #include <svx/svdouno.hxx> #include <svx/svdview.hxx> @@ -388,12 +389,16 @@ BOOL __EXPORT FuConstruct::MouseButtonUp(const MouseEvent& rMEvt) // #49458# bei Uno-Controls nicht in Textmodus if ( pObj->ISA(SdrTextObj) && !pObj->ISA(SdrUnoObj) ) { + OutlinerParaObject* pOPO = pObj->GetOutlinerParaObject(); + BOOL bVertical = ( pOPO && pOPO->IsVertical() ); + USHORT nTextSlotId = bVertical ? SID_DRAW_TEXT_VERTICAL : SID_DRAW_TEXT; + pViewShell->GetViewData()->GetDispatcher(). - Execute(SID_DRAW_TEXT, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD); + Execute(nTextSlotId, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD); // jetzt den erzeugten FuText holen und in den EditModus setzen FuPoor* pPoor = pViewShell->GetViewData()->GetView()->GetDrawFuncPtr(); - if ( pPoor && pPoor->GetSlotID() == SID_DRAW_TEXT ) // hat keine RTTI + if ( pPoor && pPoor->GetSlotID() == nTextSlotId ) // hat keine RTTI { FuText* pText = (FuText*)pPoor; Point aMousePixel = rMEvt.GetPosPixel(); |