summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewdraw.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-04-24 13:54:43 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-04-24 13:54:43 +0000
commit7ccbb808cd20dffe4d44d5c77cfb963564f3b173 (patch)
tree3ba14339b622615f687d9e17d98f66c9782450cc /sw/source/ui/uiview/viewdraw.cxx
parent4ed5e2609147662e349c33612a2e077f1053b5f5 (diff)
INTEGRATION: CWS draw9 (1.17.8); FILE MERGED
2003/04/10 17:14:40 aw 1.17.8.1: #i7672# Since BegTextEdit actually creates the OutlinerView and thus also sets the background color, an own background color needs to be set after TextEditing was started. This is now done here.
Diffstat (limited to 'sw/source/ui/uiview/viewdraw.cxx')
-rw-r--r--sw/source/ui/uiview/viewdraw.cxx26
1 files changed, 22 insertions, 4 deletions
diff --git a/sw/source/ui/uiview/viewdraw.cxx b/sw/source/ui/uiview/viewdraw.cxx
index 67af206a50..2da1a8a710 100644
--- a/sw/source/ui/uiview/viewdraw.cxx
+++ b/sw/source/ui/uiview/viewdraw.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewdraw.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: vg $ $Date: 2003-04-17 15:50:56 $
+ * last change: $Author: rt $ $Date: 2003-04-24 14:54:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -528,8 +528,11 @@ sal_Bool SwView::BeginTextEdit( SdrObject* pObj, SdrPageView* pPV,
if( bIsNewObj )
pOutliner->SetVertical( SID_DRAW_TEXT_VERTICAL == nDrawSfxId ||
SID_DRAW_CAPTION_VERTICAL == nDrawSfxId );
- Color aBackground(pSh->GetShapeBackgrd());
- pOutliner->SetBackgroundColor(aBackground);
+ // #i7672#
+ // No longer necessary, see text below
+ // Color aBackground(pSh->GetShapeBackgrd());
+ // pOutliner->SetBackgroundColor(aBackground);
+
// OD 09.12.2002 #103045# - set default horizontal text direction at outliner
EEHorizontalTextDirection aDefHoriTextDir =
pSh->IsShapeDefaultHoriTextDirR2L() ? EE_HTEXTDIR_R2L : EE_HTEXTDIR_L2R;
@@ -537,6 +540,21 @@ sal_Bool SwView::BeginTextEdit( SdrObject* pObj, SdrPageView* pPV,
}
sal_Bool bRet = pSdrView->BegTextEdit( pObj, pPV, pWin, TRUE, pOutliner );
+ // #i7672#
+ // Since BegTextEdit actually creates the OutlinerView and thus also
+ // sets the background color, an own background color needs to be set
+ // after TextEditing was started. This is now done here.
+ if(bRet)
+ {
+ OutlinerView* pView = pSdrView->GetTextEditOutlinerView();
+
+ if(pView)
+ {
+ Color aBackground(pSh->GetShapeBackgrd());
+ pView->SetBackgroundColor(aBackground);
+ }
+ }
+
return bRet;
}