xtabhtch.cxx (97e8a929) | xtabhtch.cxx (a68b38df) |
---|---|
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 --- 95 unchanged lines hidden (view full) --- 104 if(!mpData) 105 { 106 const Point aZero(0, 0); 107 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 108 109 VirtualDevice* pVirDev = new VirtualDevice; 110 OSL_ENSURE(0 != pVirDev, "XDashList: no VirtualDevice created!" ); 111 pVirDev->SetMapMode(MAP_100TH_MM); | 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 --- 95 unchanged lines hidden (view full) --- 104 if(!mpData) 105 { 106 const Point aZero(0, 0); 107 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); 108 109 VirtualDevice* pVirDev = new VirtualDevice; 110 OSL_ENSURE(0 != pVirDev, "XDashList: no VirtualDevice created!" ); 111 pVirDev->SetMapMode(MAP_100TH_MM); |
112 const Size aSize(pVirDev->PixelToLogic(Size(getUiBitmapWidth(), getUiBitmapHeight()))); | 112 const Size aSize(pVirDev->PixelToLogic(rStyleSettings.GetListBoxPreviewDefaultPixelSize())); |
113 pVirDev->SetOutputSize(aSize); 114 pVirDev->SetDrawMode(rStyleSettings.GetHighContrastMode() 115 ? DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT 116 : DRAWMODE_DEFAULT); 117 pVirDev->SetBackground(rStyleSettings.GetFieldColor()); 118 119 SdrModel* pSdrModel = new SdrModel(); 120 OSL_ENSURE(0 != pSdrModel, "XDashList: no SdrModel created!" ); --- 146 unchanged lines hidden --- | 113 pVirDev->SetOutputSize(aSize); 114 pVirDev->SetDrawMode(rStyleSettings.GetHighContrastMode() 115 ? DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT 116 : DRAWMODE_DEFAULT); 117 pVirDev->SetBackground(rStyleSettings.GetFieldColor()); 118 119 SdrModel* pSdrModel = new SdrModel(); 120 OSL_ENSURE(0 != pSdrModel, "XDashList: no SdrModel created!" ); --- 146 unchanged lines hidden --- |