diff options
Diffstat (limited to 'sc/source/ui/view/gridwin3.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin3.cxx | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx index 91d07c1f9..168e35884 100644 --- a/sc/source/ui/view/gridwin3.cxx +++ b/sc/source/ui/view/gridwin3.cxx @@ -353,79 +353,6 @@ void ScGridWindow::CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddres } } -void ScGridWindow::OutlinerViewPaint( const Rectangle& rRect ) -{ - ScDrawView* pDrView = pViewData->GetView()->GetScDrawView(); - if (pDrView && pDrView->GetTextEditOutlinerView()) - { - Outliner* pOut = pDrView->GetTextEditOutliner(); - ULONG nViewCount = pOut ? pOut->GetViewCount() : 0; - for (ULONG nView=0; nView<nViewCount; nView++) - { - OutlinerView* pOlView = pOut->GetView(nView); - - if (pOlView && pOlView->GetWindow() == this) - { - BOOL bFrame = FALSE; - Rectangle aEditRect = pOlView->GetOutputArea(); - SdrObject* pEditObj = GetEditObject(); - if (pEditObj && pEditObj->ISA(SdrTextObj)) - { - SdrTextObj* pTextObj = (SdrTextObj*)pEditObj; - Rectangle aMinRect; - pTextObj->TakeTextEditArea(NULL,NULL,NULL,&aMinRect); // PageView Offset ist 0 - aEditRect.Union(aMinRect); - bFrame = sal::static_int_cast<BOOL>( pTextObj->IsTextFrame() ); - } - - if ( aEditRect.IsOver( rRect ) ) - { - ULONG nOldDrawMode = GetDrawMode(); - if ( Application::GetSettings().GetStyleSettings().GetHighContrastMode() ) - { - SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | - DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT ); - } - - Rectangle aEffRect = rRect.GetIntersection( aEditRect ); - if (bFrame) - { - if ( pEditObj->GetLayer() ==SC_LAYER_INTERN ) // cell note? - { - // #78828# always draw the edit background in case notes overlap - SetFillColor( pOlView->GetBackgroundColor() ); - SetLineColor(); - DrawRect( aEffRect ); - } - - // DrawLayer mit dem Text-Rechteck zeichnet nur die Outliner-View - // und den Text-Rahmen (an den kommt man sonst von aussen nicht heran). - - SdrPageView* pPV = pDrView->GetSdrPageView(); - DBG_ASSERT(pPV, "keine PageView"); - if (pPV) - { - SdrLayerID nLayer = pEditObj ? pEditObj->GetLayer() : SC_LAYER_FRONT; - // Region aDrawRegion(aEffRect); - // pPV->DrawLayer( nLayer, aDrawRegion, this ); - pPV->DrawLayer( nLayer, this ); - } - } - else - { - SetFillColor( pOlView->GetBackgroundColor() ); - SetLineColor(); - DrawRect( aEffRect ); - pOlView->Paint( aEffRect ); - } - - SetDrawMode( nOldDrawMode ); - } - } - } - } -} - SdrObject* ScGridWindow::GetEditObject() { ScDrawView* pDrView = pViewData->GetView()->GetScDrawView(); |