dlgctrl.cxx (2a96d551) | dlgctrl.cxx (c3c0ed1b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1196 unchanged lines hidden (view full) --- 1205 sal_Int32 nId = rUDEvt.GetItemId(); 1206 if( nId >= 0 && nId <= mpList->Count() ) 1207 { 1208 OutputDevice* pDevice = rUDEvt.GetDevice(); 1209 1210 sal_uIntPtr nOldDrawMode = pDevice->GetDrawMode(); 1211 pDevice->SetDrawMode( GetSettings().GetStyleSettings().GetHighContrastMode() ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); 1212 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1196 unchanged lines hidden (view full) --- 1205 sal_Int32 nId = rUDEvt.GetItemId(); 1206 if( nId >= 0 && nId <= mpList->Count() ) 1207 { 1208 OutputDevice* pDevice = rUDEvt.GetDevice(); 1209 1210 sal_uIntPtr nOldDrawMode = pDevice->GetDrawMode(); 1211 pDevice->SetDrawMode( GetSettings().GetStyleSettings().GetHighContrastMode() ? OUTPUT_DRAWMODE_CONTRAST : OUTPUT_DRAWMODE_COLOR ); 1212 |
1213 XHatch& rXHatch = mpList->GetHatch( rUDEvt.GetItemId() )->GetHatch(); | 1213 const XHatch& rXHatch = mpList->GetHatch( rUDEvt.GetItemId() )->GetHatch(); |
1214 MapMode aMode( MAP_100TH_MM ); 1215 Hatch aHatch( (HatchStyle) rXHatch.GetHatchStyle(), 1216 rXHatch.GetColor(), 1217 rUDEvt.GetDevice()->LogicToPixel( Point( rXHatch.GetDistance(), 0 ), aMode ).X(), 1218 (sal_uInt16)rXHatch.GetAngle() ); 1219 const Polygon aPolygon( aRect ); 1220 const PolyPolygon aPolypoly( aPolygon ); 1221 pDevice->DrawHatch( aPolypoly, aHatch ); --- 139 unchanged lines hidden (view full) --- 1361 const Rectangle& rDrawRect = rUDEvt.GetRect(); 1362 Rectangle aRect( rDrawRect.nLeft+1, rDrawRect.nTop+1, rDrawRect.nLeft+33, rDrawRect.nBottom-1 ); 1363 1364 sal_Int32 nId = rUDEvt.GetItemId(); 1365 if( nId >= 0 && nId <= mpList->Count() ) 1366 { 1367 OutputDevice* pDevice = rUDEvt.GetDevice(); 1368 | 1214 MapMode aMode( MAP_100TH_MM ); 1215 Hatch aHatch( (HatchStyle) rXHatch.GetHatchStyle(), 1216 rXHatch.GetColor(), 1217 rUDEvt.GetDevice()->LogicToPixel( Point( rXHatch.GetDistance(), 0 ), aMode ).X(), 1218 (sal_uInt16)rXHatch.GetAngle() ); 1219 const Polygon aPolygon( aRect ); 1220 const PolyPolygon aPolypoly( aPolygon ); 1221 pDevice->DrawHatch( aPolypoly, aHatch ); --- 139 unchanged lines hidden (view full) --- 1361 const Rectangle& rDrawRect = rUDEvt.GetRect(); 1362 Rectangle aRect( rDrawRect.nLeft+1, rDrawRect.nTop+1, rDrawRect.nLeft+33, rDrawRect.nBottom-1 ); 1363 1364 sal_Int32 nId = rUDEvt.GetItemId(); 1365 if( nId >= 0 && nId <= mpList->Count() ) 1366 { 1367 OutputDevice* pDevice = rUDEvt.GetDevice(); 1368 |
1369 XGradient& rXGrad = mpList->GetGradient( rUDEvt.GetItemId() )->GetGradient(); | 1369 const XGradient& rXGrad = mpList->GetGradient( rUDEvt.GetItemId() )->GetGradient(); |
1370 Gradient aGradient( (GradientStyle) rXGrad.GetGradientStyle(), rXGrad.GetStartColor(), rXGrad.GetEndColor() ); 1371 aGradient.SetAngle( (sal_uInt16)rXGrad.GetAngle() ); 1372 aGradient.SetBorder( rXGrad.GetBorder() ); 1373 aGradient.SetOfsX( rXGrad.GetXOffset() ); 1374 aGradient.SetOfsY( rXGrad.GetYOffset() ); 1375 aGradient.SetStartIntensity( rXGrad.GetStartIntens() ); 1376 aGradient.SetEndIntensity( rXGrad.GetEndIntens() ); 1377 aGradient.SetSteps( 255 ); --- 933 unchanged lines hidden --- | 1370 Gradient aGradient( (GradientStyle) rXGrad.GetGradientStyle(), rXGrad.GetStartColor(), rXGrad.GetEndColor() ); 1371 aGradient.SetAngle( (sal_uInt16)rXGrad.GetAngle() ); 1372 aGradient.SetBorder( rXGrad.GetBorder() ); 1373 aGradient.SetOfsX( rXGrad.GetXOffset() ); 1374 aGradient.SetOfsY( rXGrad.GetYOffset() ); 1375 aGradient.SetStartIntensity( rXGrad.GetStartIntens() ); 1376 aGradient.SetEndIntensity( rXGrad.GetEndIntens() ); 1377 aGradient.SetSteps( 255 ); --- 933 unchanged lines hidden --- |