dlgctrl.cxx (3e407bd8) | dlgctrl.cxx (33b19716) |
---|---|
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 --- 1402 unchanged lines hidden (view full) --- 1411 { 1412 VirtualDevice aVirtualDevice; 1413 aVirtualDevice.SetOutputSizePixel(rSize); 1414 1415 if(rBitmapEx.IsTransparent()) 1416 { 1417 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 1418 | 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 --- 1402 unchanged lines hidden (view full) --- 1411 { 1412 VirtualDevice aVirtualDevice; 1413 aVirtualDevice.SetOutputSizePixel(rSize); 1414 1415 if(rBitmapEx.IsTransparent()) 1416 { 1417 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 1418 |
1419 if(rStyleSettings.GetUIPreviewUsesCheckeredBackground()) | 1419 if(rStyleSettings.GetPreviewUsesCheckeredBackground()) |
1420 { 1421 const Point aNull(0, 0); 1422 static const sal_uInt32 nLen(8); 1423 static const Color aW(COL_WHITE); 1424 static const Color aG(0xef, 0xef, 0xef); 1425 1426 aVirtualDevice.DrawCheckered(aNull, rSize, nLen, aW, aG); 1427 } --- 491 unchanged lines hidden (view full) --- 1919 { 1920 mpBufferDevice->SetDrawMode(GetDrawMode()); 1921 mpBufferDevice->SetSettings(GetSettings()); 1922 mpBufferDevice->SetAntialiasing(GetAntialiasing()); 1923 mpBufferDevice->SetOutputSizePixel(GetOutputSizePixel()); 1924 mpBufferDevice->SetMapMode(GetMapMode()); 1925 } 1926 | 1420 { 1421 const Point aNull(0, 0); 1422 static const sal_uInt32 nLen(8); 1423 static const Color aW(COL_WHITE); 1424 static const Color aG(0xef, 0xef, 0xef); 1425 1426 aVirtualDevice.DrawCheckered(aNull, rSize, nLen, aW, aG); 1427 } --- 491 unchanged lines hidden (view full) --- 1919 { 1920 mpBufferDevice->SetDrawMode(GetDrawMode()); 1921 mpBufferDevice->SetSettings(GetSettings()); 1922 mpBufferDevice->SetAntialiasing(GetAntialiasing()); 1923 mpBufferDevice->SetOutputSizePixel(GetOutputSizePixel()); 1924 mpBufferDevice->SetMapMode(GetMapMode()); 1925 } 1926 |
1927 mpBufferDevice->Erase(); | 1927 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 1928 1929 if(rStyleSettings.GetPreviewUsesCheckeredBackground()) 1930 { 1931 const Point aNull(0, 0); 1932 static const sal_uInt32 nLen(8); 1933 static const Color aW(COL_WHITE); 1934 static const Color aG(0xef, 0xef, 0xef); 1935 const bool bWasEnabled(mpBufferDevice->IsMapModeEnabled()); 1936 1937 mpBufferDevice->EnableMapMode(false); 1938 mpBufferDevice->DrawCheckered(aNull, mpBufferDevice->GetOutputSizePixel(), nLen, aW, aG); 1939 mpBufferDevice->EnableMapMode(bWasEnabled); 1940 } 1941 else 1942 { 1943 mpBufferDevice->Erase(); 1944 } |
1928} 1929 1930void SvxPreviewBase::LocalPostPaint() 1931{ 1932 // copy to front (in pixel mode) 1933 const bool bWasEnabledSrc(mpBufferDevice->IsMapModeEnabled()); 1934 const bool bWasEnabledDst(IsMapModeEnabled()); 1935 const Point aEmptyPoint; --- 286 unchanged lines hidden --- | 1945} 1946 1947void SvxPreviewBase::LocalPostPaint() 1948{ 1949 // copy to front (in pixel mode) 1950 const bool bWasEnabledSrc(mpBufferDevice->IsMapModeEnabled()); 1951 const bool bWasEnabledDst(IsMapModeEnabled()); 1952 const Point aEmptyPoint; --- 286 unchanged lines hidden --- |